 |
Belle II Software
release-05-02-19
|
12 #include <cdc/modules/cdcDQM/CDCDQMModule.h>
17 #include <framework/datastore/StoreArray.h>
20 #include <framework/database/DBObjPtr.h>
24 #include <TDirectory.h>
47 addParam(
"MinHits",
m_minHits,
"Include only events with more than MinHits hits in ARICH", 0);
58 TDirectory* oldDir = gDirectory;
62 m_hNEvents =
new TH1F(
"hNEvents",
"hNEvents", 10, 0, 10);
63 m_hNEvents->GetXaxis()->SetBinLabel(1,
"number of events");
64 m_hOcc =
new TH1F(
"hOcc",
"hOccupancy", 150, 0, 1.5);
65 m_hADC =
new TH2F(
"hADC",
"hADC", 300, 0, 300, 1000, 0, 1000);
66 m_hADCTOTCut =
new TH2F(
"hADCTOTCut",
"hADCTOTCut", 300, 0, 300, 1000, 0, 1000);
67 m_hTDC =
new TH2F(
"hTDC",
"hTDC", 300, 0, 300, 1000, 4200, 5200);
68 m_hHit =
new TH2F(
"hHit",
"hHit", 56, 0, 56, 400, 0, 400);
79 m_cdcHits.isOptional();
80 m_cdcRawHits.isOptional();
81 m_trgSummary.isOptional();
100 const int nWires = 14336;
113 for (
const auto& raw : m_cdcRawHits) {
114 int bid = raw.getBoardId();
115 int adc = raw.getFADC();
116 int tdc = raw.getTDC();
117 int tot = raw.getTOT();
123 if (adc > 50 && tot > 1) {
127 for (
const auto& hit : m_cdcHits) {
128 int lay = hit.getICLayer();
129 int wire = hit.getIWire();
void terminate() override
Termination action.
void setDescription(const std::string &description)
Sets the description of the module.
TH2F * m_hADC
Histogram of ADC for all boards (0-299)
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
@ c_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
TH1F * m_hOcc
Histogram of occupancy.
@ TTYP_RAND
random trigger events
void event() override
Event processor.
void beginRun() override
Called when entering a new run.
virtual ~CDCDQMModule()
Destructor.
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
void endRun() override
End-of-run action.
Long64_t m_nEvents
Number of events processed.
int m_minHits
Minimum hits for processing.
void defineHisto() override
Histogram definitions.
Abstract base class for different kinds of events.
Type-safe access to single objects in the data store.
TH1F * m_hNEvents
Histogram of num.
TH2F * m_hHit
Histogram of hits for all layers (0-55)
TH2F * m_hTDC
Histogram of TDC for all boards (0-299)
void setReturnValue(int value)
Sets the return value for this module as integer.
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
void initialize() override
Initialize the Module.
Accessor to arrays stored in the data store.
TH2F * m_hADCTOTCut
Histogram of ADC with tot cut for all boards (0-299)
int getEntries() const
Get the number of objects in the array.
HistoModule.h is supposed to be used instead of Module.h for the modules with histogram definitions t...
bool isValid() const
Check whether the object was created.