10#include <reconstruction/modules/EventsOfDoomBuster/EventsOfDoomBusterModule.h>
13#include <framework/logging/Logger.h>
22Module that flags an event destined for doom at reconstruction,
23* based on the size of selected hits/digits containers after the unpacking.
24* This is meant to be registered in the path *after* the unpacking, but *before* reconstruction.
42 B2FATAL(
"EventsOfDoom parameters are not available.");
52 B2DEBUG(20,
"Event: " <<
m_eventInfo->getEvent() <<
" - nCDCHits: " << nCDCHits <<
", nSVDShaperDigits: " << nSVDShaperDigits);
58 B2ERROR(
"Skip event --> Too much occupancy from CDC for reconstruction!" <<
62 LogVar(
"nCDCHits", nCDCHits) <<
67 B2ERROR(
"Skip event --> Too much occupancy from SVD for reconstruction!" <<
71 LogVar(
"nSVDShaperDigits", nSVDShaperDigits) <<
virtual ~EventsOfDoomBusterModule() final
Default Destructor.
uint32_t m_nCDCHitsMax
The max number of CDC hits for an event to be kept for reconstruction.
void initialize() final
Module initializer.
void beginRun() final
Called when entering a new run.
uint32_t m_nSVDShaperDigitsMax
The max number of SVD shaper digits for an event to be kept for reconstruction.
StoreObjPtr< EventMetaData > m_eventInfo
Event Meta Data Store ObjPtr.
void event() final
Flag each event.
DBObjPtr< EventsOfDoomParameters > m_eventsOfDoomParameters
EventsOfDoomParameters Database OjbPtr.
StoreArray< SVDShaperDigit > m_svdShaperDigits
SVDShaperDigits StoreArray.
StoreArray< CDCHit > m_cdcHits
CDCHits StoreArray.
EventsOfDoomBusterModule()
Module constructor.
void setDescription(const std::string &description)
Sets the description of the module.
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
void setReturnValue(int value)
Sets the return value for this module as integer.
@ 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 variables with their name which were sent to the logging service.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.