9#include <svd/modules/svdReconstruction/SVDDataFormatCheckModule.h>
29 "SVDEventInfo name",
string(
""));
31 "ShaperDigits collection name",
string(
"SVDShaperDigits"));
33 "DAQDiagnostics collection name",
string(
"SVDDAQDiagnostics"));
35 "maximum number of problematic events to display WARNING",
int(10));
39SVDDataFormatCheckModule::~SVDDataFormatCheckModule()
57 B2DEBUG(29,
" COLLECTIONS:");
86 bool isProblematic =
false;
113 isProblematic =
true;
115 B2WARNING(
"SVDDataFormatCheck: the event " << evtNumber <<
" of exp " <<
m_expNumber <<
", run " <<
m_runNumber <<
116 " is apparently taken with 3-sample mode, this is not expected. [daqMode = " << daqMode <<
"]");
121 isProblematic =
true;
123 B2WARNING(
"SVDDataFormatCheck: the event " << evtNumber <<
" of exp " <<
m_expNumber <<
", run " <<
m_runNumber <<
124 " is apparently taken with 1-sample mode, this is not expected. [daqMode = " << daqMode <<
"]");
132 isProblematic =
true;
134 B2WARNING(
"SVDDataFormatCheck: the event " << evtNumber <<
" of exp " <<
m_expNumber <<
", run " <<
m_runNumber <<
135 " is apparently taken as Local Run, this is not expected. [evtType = " << evtType <<
"]");
145 isProblematic =
true;
147 B2WARNING(
"SVDDataFormatCheck: the event " << evtNumber <<
" of exp " <<
m_expNumber <<
", run " <<
m_runNumber <<
148 " is apparently not taken as ZeroSuppressed, this is not expected. [runType = " << runType <<
"]");
153 if (triggerBin > 3) {
155 isProblematic =
true;
157 B2WARNING(
"SVDDataFormatCheck: the event " << evtNumber <<
" of exp " <<
m_expNumber <<
", run " <<
m_runNumber <<
158 " is apparently not with an unexpected trigger bin = " << triggerBin);
173 B2RESULT(
"SVDDataFormatCheck counters:");
179 B2RESULT(
"total number of NOT zero-suppressed strips = " <<
m_nNoZSEvts);
181 B2RESULT(
"total number of strips with wrong TB = " <<
m_nBadTBEvts);
183 B2RESULT(
"total number of 1-sample strips = " <<
m_n1samples);
184 B2RESULT(
"total number of 3-sample strips = " <<
m_n3samples);
185 B2RESULT(
"total number of 6-sample strips = " <<
m_n6samples);
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...
Class to store SVD mode information.
baseType getRunType() const
Get the runMode id.
baseType getEventType() const
Get the eventMode id.
baseType getTriggerBin() const
Get the triggerBin id.
baseType getDAQMode() const
Get the daqMode id.
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.