11#include <framework/core/HistoModule.h>
12#include <framework/datastore/StoreArray.h>
13#include <framework/datastore/StoreObjPtr.h>
54 void event() override final;
73 mutable int nStripsU = 0;
HistoModule.h is supposed to be used instead of Module.h for the modules with histogram definitions t...
The SVD dose-monitoring DQM module.
TH1F * h_nEvtsVsTime1
Hist of the total evts in each time bin (1D, time since inj.
unsigned int m_eventFilter
Bitmask for event type selection, see EEventType .
void initialize() override final
Overrides HistoModule::initialize.
TH2F * h_bunchNumVsNHits
Hist of bunch number vs number of fired strips (copied from SVDDQMInjection).
static const std::vector< SensorGroup > c_sensorGroups
List of interesting groups of sensors to average over.
StoreArray< RawFTSW > m_rawTTD
Input: DAQ status.
std::vector< TH1F * > m_groupNHits1U
Hists of the number of hits in each time bin (1D) per sensor group, U-side.
void defineHisto() override final
Overrides HistoModule::defineHisto.
StoreObjPtr< TRGSummary > m_trgSummary
Input: trigger type.
SVDDQMDoseModule()
Default constructor, defines parameters.
static constexpr double c_defaultOccuMax
Default maximum of the instantaneous occupancy histograms.
static constexpr double c_revolutionTime
Beam revolution time in microseconds (approximated).
void event() override final
Overrides HistoModule::event.
static constexpr double c_globalClock
Approximated global clock frequency in MHz.
double m_noInjectionTime
After this time (in microseconds) from last injection the event falls in the "No Injection" category.
std::vector< int > m_trgTypes
Trigger types to accept (all if the vector is empty).
std::string m_histogramDirectoryName
Name of the histograms' directory in the ROOT file.
std::vector< TH2F * > m_groupNHitsU
Hists of the number of hits in each time bin per sensor group, U-side.
StoreArray< SVDShaperDigit > m_digits
Input: raw hits.
std::vector< TH1F * > m_groupOccupanciesU
Hists of the instantaneous occupancy per sensor group (see c_sensorGroups), U-side.
TH2F * h_nEvtsVsTime
Hist of the total evts in each time bin (time since inj.
EEventType
Bits definition for the bitmask that selects the events to put in the histograms.
void beginRun() override final
Overrides HistoModule::beginRun.
static constexpr double c_defaultOccuMin
Default minimum of the instantaneous occupancy histograms.
std::string m_SVDShaperDigitsName
Name of the StoreArray of SVDShaperDigit to use.
static const int c_defaultNBins
Default number of bins of the instantaneous occupancy histograms.
Accessor to arrays stored in the data store.
Type-safe access to single objects in the data store.
Class to uniquely identify a any structure of the PXD and SVD.
Abstract base class for different kinds of events.
A struct to define non-trivial histograms in a human-readable way.
double xMin
The lower limit for the instantaneous occupancy histo.
double xMax
The upper limit for the instantaneous occupancy histo.
std::function< bool(const VxdID &)> contains
Function that says if a sensor is in this group.
const char * titleSuffix
The title will be "SVD Instantaneous Occupancy @titleSuffix @side;Occupancy [%];Count / bin".
const char * nameSuffix
The name will be "SVDInstOccupancy_@nameSuffix@side".
int nBins
The number of bins for the instantaneous occupancy histo.