9#include <tracking/modules/trackFinderCDC/CDCTrackingEventLevelMdstInfoFiller.h>
12using namespace TrackFindingCDC;
16REG_MODULE(CDCTrackingEventLevelMdstInfoFillerFromHits);
17REG_MODULE(CDCTrackingEventLevelMdstInfoFillerFromSegments);
22 return "This module adds additional global event level information based on hits about CDC track finding results to the MDST object EventLevelTrackingInfo";
33 int nhitTotal = inputWireHits.size();
46 int nSignal = nTaken - nBg;
48 B2ASSERT(
"More background than taken CDC Wire hits", nSignal >= 0);
50 int nRest = nhitTotal - nSignal;
52 int nRestCleaned = nhitTotal - nTaken;
57 B2DEBUG(20,
"Total " << nhitTotal <<
" taken " << nTaken <<
" background " << nBg <<
" signal " << nTaken - nBg <<
58 " Not assigned " << nRestCleaned);
64 return "This module adds additional global event level information based on 2D segments about CDC track finding results to the MDST object EventLevelTrackingInfo";
85 B2DEBUG(20,
"Total number of segments =" << inputWireHitSegments.size() <<
" Taken " << nTaken <<
" BG " << nBg);
Cell used by the cellular automata.
bool hasBackgroundFlag() const
Gets the current state of the do not use flag marker flag.
bool hasTakenFlag() const
Gets the current state of the taken marker flag.
A reconstructed sequence of two dimensional hits in one super layer.
StoreObjPtr< EventLevelTrackingInfo > m_eventLevelTrackingInfo
Access to the EventLevelTrackingInfo object in the datastore.
void initialize() final
Called at the beginning of the event processing.
std::string getDescription() final
Getter for the module description.
void apply(const std::vector< CDCWireHit > &inputWireHits) final
Main method to make the heavy lifting.
StoreObjPtr< EventLevelTrackingInfo > m_eventLevelTrackingInfo
Access to the EventLevelTrackingInfo object in the datastore.
void initialize() final
Called at the beginning of the event processing.
std::string getDescription() final
Getter for the module description.
void apply(const std::vector< CDCSegment2D > &inputSegment2Ds) final
Main method to make the heavy lifting.
Class representing a hit wire in the central drift chamber.
void initialize() override
Receive and dispatch signal before the start of the event processing.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.