9#include <cdc/modules/cdcCalibrationCollector/CDCDeadBoardDetectorModule.h>
33 auto m_BoardIDs =
new TH1F(
"CDCboardIDs",
"CDC board IDs", 299, 0.5, 299.5);
44 const int nEntries =
m_rawCDCs.getEntries();
46 for (
int i = 0; i < nEntries; ++i) {
47 const int nEntriesRawCDC =
m_rawCDCs[i]->GetNumEntries();
48 for (
int j = 0; j < nEntriesRawCDC; ++j) {
49 int MaxNumOfCh =
m_rawCDCs[i]->GetMaxNumOfCh(j);
51 for (
int iFiness = 0; iFiness < MaxNumOfCh; ++iFiness) {
52 int* ibuf = (
int*)
m_rawCDCs[i]->GetDetectorBuffer(j, iFiness);
53 const int nWord =
m_rawCDCs[i]->GetDetectorNwords(j, iFiness);
54 const int c_headearWords = 3;
55 if (nWord < c_headearWords) {
58 unsigned int boardID = (ibuf[0] & 0x01ff);
59 if ((boardID > 0) && (boardID < 300)) {
StoreArray< RawCDC > m_rawCDCs
Input array for CDC Raw.
void collect() override
Event action (main routine).
CDCDeadBoardDetectorModule()
Constructor of the module.
void prepare() override
Initializes the Module.
virtual ~CDCDeadBoardDetectorModule()
Destructor of the module.
void registerObject(const std::string &name, T *obj)
Register object with a name, takes ownership, do not access the pointer beyond prepare()
T * getObjectPtr(const std::string &name)
Calls the CalibObjManager to get the requested stored collector data.
CalibrationCollectorModule()
Constructor. Sets the default prefix for calibration dataobjects.
void setDescription(const std::string &description)
Sets the description of the module.
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
@ c_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.