9 #include <hlt/modules/onlineEventT0/OnlineEventT0CreatorModule.h>
18 setDescription(
"Module to write the EventT0s computed on HLT");
20 setPropertyFlags(c_ParallelProcessingCertified);
35 B2DEBUG(20,
"EventT0 object not created, cannot write OnlineEventT0");
40 B2DEBUG(20,
"OnlineEventT0 object already present, do nothing");
45 auto eclHypos =
m_eventT0->getTemporaryEventT0s(Const::EDetector::ECL);
46 if (eclHypos.size() == 0) {
47 B2DEBUG(20,
"No ECL EventT0 available");
52 m_onlineEventT0.appendNew(eclBestT0->eventT0, eclBestT0->eventT0Uncertainty, Const::EDetector::ECL);
56 auto cdcHypos =
m_eventT0->getTemporaryEventT0s(Const::EDetector::CDC);
57 if (cdcHypos.size() == 0) {
58 B2DEBUG(20,
"No CDC EventT0 available");
61 const auto& cdcBestT0 = cdcHypos.back();
62 m_onlineEventT0.appendNew(cdcBestT0.eventT0, cdcBestT0.eventT0Uncertainty, Const::EDetector::CDC);
66 auto topHypos =
m_eventT0->getTemporaryEventT0s(Const::EDetector::TOP);
67 if (topHypos.size() == 0) {
68 B2DEBUG(20,
"No TOP EventT0 available");
71 const auto& topBestT0 = topHypos.back();
72 m_onlineEventT0.appendNew(topBestT0.eventT0, topBestT0.eventT0Uncertainty, Const::EDetector::TOP);
Module to write the EventT0s computed on HLT.
StoreObjPtr< EventT0 > m_eventT0
StoreArray of EventT0.
void initialize() override
initialize: check DataStore content
void event() override
This method is called for each event.
StoreArray< OnlineEventT0 > m_onlineEventT0
StoreArray of OnlineEventT0.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.
Structure for storing the extracted event t0s together with its detector and its uncertainty.