Belle II Software development
ProcessingSignalListener Class Reference

Interface for an algorithm part that needs to receive the module processing signals. More...

#include <ProcessingSignalListener.h>

Inheritance diagram for ProcessingSignalListener:
Advancer CompositeProcessingSignalListener BaseVarSet< AVarNames::Object > BaseVarSet< Relation< const ABaseVarSet::Object > > BaseVarSet< FirstType< AVarSets... >::Object > BaseVarSet< Object > Filter< std::pair< const std::vector< TrackFindingCDC::WithWeight< const AState * > >, AState * > > Filter< Relation< CKFToPXDState > > Filter< Relation< CKFToSVDState > > Filter< Relation< const CellularRecoTrack > > Filter< ATruthVarSet::Object > Filter< CDCSegmentPair > Filter< Relation< const CDCFacet > > Filter< Relation< const CDCSegmentPair > > Filter< Relation< const CDCSegment2D > > Filter< Relation< const CDCSegmentTriple > > Filter< Relation< const CDCTrack > > Filter< Relation< CDCWireHit > > Filter< AVarSet::Object > Filter< Relation< AObject > > Filter< CDCSegmentTriple > Filter< Relation< VXDHoughState > > Findlet< AIOTypes... > Findlet< RecoTrack * > Findlet< CDCCKFResult > Findlet< CDCCKFPath > Findlet< const CDCCKFPath, CDCCKFResult > Findlet< const CDCCKFResult > Findlet< RecoTrack *const, CDCCKFPath > Findlet< CDCCKFState, const CDCCKFState, const TrackFindingCDC::CDCWireHit *const > Findlet< const CDCCKFState, CDCCKFState > Findlet< AState, AState, TrackFindingCDC::WeightedRelation< AState > > Findlet< const TrackFindingCDC::CDCWireHit > Findlet<> Findlet< const SVDCluster, const SVDCluster, std::pair< VxdID, std::pair< long, long > >, std::pair< VxdID, std::pair< long, long > > > Findlet< const DATCONSVDDigit, SVDCluster > Findlet< const std::pair< VxdID, std::pair< long, long > >, std::pair< double, double > > Findlet< const TrackFindingCDC::WithWeight< const AState * >, TrackFindingCDC::WithWeight< AState * > > Findlet< AFilter::Object, AFilter::Object > Findlet< const std::pair< VxdID, long >, const std::pair< VxdID, long > > Findlet< const CKFToSVDResult, TrackFindingCDC::WeightedRelation< const RecoTrack, const RecoTrack > > Findlet< const TrackFindingCDC::WeightedRelation< const RecoTrack, const RecoTrack > > Findlet< CKFToSVDState, CKFToSVDState, TrackFindingCDC::WeightedRelation< CKFToSVDState > > Findlet< AResult > Findlet< DATCONSVDDigit, DATCONSVDDigit > Findlet< const SpacePoint * > Findlet< const AResult, const SpacePoint *const > Findlet< CDCCKFPath, const TrackFindingCDC::CDCWireHit *const > Findlet< AnObject *const, AState > Findlet< RecoTrack *const, AState > Findlet< RecoTrack *, RecoTrack * > Findlet< const std::pair< double, double >, const std::pair< double, double >, std::pair< VxdID, long >, std::pair< VxdID, long > > Findlet< WeightedRelation< ACollectorItem, const ACollectionItem > & > Findlet< CDCWireHit & > Findlet< const CDCWireHit, const CDCTrack > Findlet< const CDCSegment2D, CDCAxialSegmentPair > Findlet< const ECLCluster *const, const CDCWireHit *const, CDCTrack > Findlet< const CDCWireHit, CDCTrack > Findlet< const CDCWireHit *const, CDCTrack > Findlet< const CDCSegment2D, CDCTrack > Findlet< CDCTrack &, const CDCWireHit *const > Findlet< WeightedRelation< ACollectorItem, const ACollectionItem > > Findlet< CDCTrack & > Findlet< const CDCWireHit > Findlet< const CDCSegment2D > Findlet< CDCWireHitCluster & > Findlet< CDCWireHit &, CDCWireHitCluster > Findlet< CDCWireHit &, CDCWireHitCluster, CDCWireHitCluster > Findlet< const CDCWireHitCluster, CDCWireHitCluster > Findlet< ACellHolder *const, WeightedRelation< ACellHolder > const, std::vector< ACellHolder * > > Findlet< const CDCWireHitCluster, CDCFacet > Findlet< ACollectorItem, const ACollectionItem, WeightedRelation< ACollectorItem, const ACollectionItem > > Findlet< CDCWireHit &, CDCTrack & > Findlet< CDCWireHit &, CDCRLWireHit > Findlet< CDCSegment2D & > Findlet< const CDCFacet, const WeightedRelation< const CDCFacet >, CDCSegment2D > Findlet< const CDCWireHit, CDCSegment2D > Findlet< CDCWireHitCluster &, CDCSegment2D > Findlet< const CDCSegment2D, CDCSegment2D > Findlet< const CDCSegment2D, CDCSegmentPair > Findlet< WeightedRelation< CDCTrack, const CDCSegment2D > &, CDCTrack &, const CDCSegment2D > Findlet< CDCSegment2D &, CDCTrack & > Findlet< const CDCSegment2D, const CDCAxialSegmentPair, CDCSegmentTriple > Findlet< WeightedRelation< CDCTrack, const CDCRLWireHit > & > Findlet< CDCTrack, const CDCRLWireHit, WeightedRelation< CDCTrack, const CDCRLWireHit > > Findlet< IOType * > Findlet< IOType > Findlet< Belle2::TrackFindingCDC::CDCWireHit *const, WeightedRelation< Belle2::TrackFindingCDC::CDCWireHit > const, Belle2::TrackFindingCDC::CDCWireHitCluster > Findlet< const CDCTrack, const CDCTrack, CDCTrack > Findlet< const CDCSegmentPair, const WeightedRelation< const CDCSegmentPair >, CDCTrack > Findlet< const CDCSegmentTriple, const WeightedRelation< const CDCSegmentTriple >, CDCTrack > Findlet< const CDCSegment2D, CDCTrack & > Findlet< const CDCTrack, CDCTrack > Findlet< const AState *const, const Relation< AState >, std::vector< const AState * > > Findlet< AObject *const, WeightedRelation< AObject > > Findlet< const AState *const, const WeightedRelation< AState >, std::vector< const AState * > > Findlet< CDCWireHit > Findlet< const AState, AState, const TrackFindingCDC::WeightedRelation< AState >, AResult > Findlet< VXDHoughState, const VxdID, VXDHoughState * > Findlet< VXDHoughState, std::vector< VXDHoughState * > > Findlet< const TrackFindingCDC::WithWeight< const AHit * >, TrackFindingCDC::WithWeight< AHit * > > Findlet< const SpacePointTrackCand > Findlet< std::vector< AHit * >, SpacePointTrackCand > Findlet< SpacePointTrackCand, const SpacePoint *const > Findlet< AHit *, TrackFindingCDC::WeightedRelation< AHit > > Findlet< AHit *, const TrackFindingCDC::WeightedRelation< AHit >, AResult > Findlet< const SpacePoint *, VXDHoughState > Findlet< SpacePointTrackCand > Findlet< SpacePointTrackCand, SpacePointTrackCand > Findlet< RecoTrack *const, Belle2::CKFToPXDState > Findlet< const Belle2::SpacePoint *const, Belle2::CKFToPXDState > Findlet< Belle2::CKFToPXDState, Belle2::CKFToPXDState, TrackFindingCDC::WeightedRelation< Belle2::CKFToPXDState > > Findlet< const Belle2::CKFToPXDState, Belle2::CKFToPXDState, const TrackFindingCDC::WeightedRelation< Belle2::CKFToPXDState >, Belle2::CKFToPXDResult > Findlet< const Belle2::CKFToPXDResult, const SpacePoint *const > Findlet< Belle2::CKFToPXDResult > Findlet< RecoTrack *const, Belle2::CKFToSVDState > Findlet< const Belle2::SpacePoint *const, Belle2::CKFToSVDState > Findlet< Belle2::CKFToSVDState, Belle2::CKFToSVDState, TrackFindingCDC::WeightedRelation< Belle2::CKFToSVDState > > Findlet< const Belle2::CKFToSVDState, Belle2::CKFToSVDState, const TrackFindingCDC::WeightedRelation< Belle2::CKFToSVDState >, Belle2::CKFToSVDResult > Findlet< const Belle2::CKFToSVDResult, const SpacePoint *const > Findlet< Belle2::CKFToSVDResult > Findlet< WeightedRelation< const Belle2::RecoTrack, const const Belle2::RecoTrack > > Findlet< const Belle2::TrackFindingCDC::WithAutomatonCell *const, WeightedRelation< const Belle2::TrackFindingCDC::WithAutomatonCell > > Findlet< WeightedRelation< Belle2::RecoTrack *, const Belle2::RecoTrack * > > Findlet< WeightedRelation< Belle2::RecoTrack *, const Belle2::RecoTrack * > & > Findlet< const Belle2::SpacePoint * > Findlet< DataStoreInputTypeRefType * > Findlet< WeightedRelation< Belle2::TrackFindingCDC::CDCTrack, const Belle2::TrackFindingCDC::CDCRLWireHit > > Findlet< const Belle2::TrackFindingCDC::CDCFacet *const, WeightedRelation< const Belle2::TrackFindingCDC::CDCFacet > > Findlet< Belle2::TrackFindingCDC::CDCFacet > Findlet< const Belle2::TrackFindingCDC::CDCSegment2D *const, WeightedRelation< const Belle2::TrackFindingCDC::CDCSegment2D > > Findlet< WeightedRelation< Belle2::TrackFindingCDC::CDCTrack, const Belle2::TrackFindingCDC::CDCRecoHit3D > > Findlet< Belle2::TrackFindingCDC::CDCTrack, const Belle2::TrackFindingCDC::CDCSegment2D, WeightedRelation< Belle2::TrackFindingCDC::CDCTrack, const Belle2::TrackFindingCDC::CDCSegment2D > > Findlet< WeightedRelation< Belle2::TrackFindingCDC::CDCTrack, const Belle2::TrackFindingCDC::CDCSegment2D > > Findlet< Belle2::TrackFindingCDC::CDCWireHit > Findlet< Belle2::TrackFindingCDC::CDCSegment2D > Findlet< Belle2::TrackFindingCDC::CDCTrack > Findlet< const Belle2::TrackFindingCDC::CDCSegmentPair *const, WeightedRelation< const Belle2::TrackFindingCDC::CDCSegmentPair > > Findlet< Belle2::TrackFindingCDC::CDCSegmentPair > Findlet< const Belle2::TrackFindingCDC::CDCSegmentTriple *const, WeightedRelation< const Belle2::TrackFindingCDC::CDCSegmentTriple > > Findlet< Belle2::TrackFindingCDC::CDCSegmentTriple > Findlet< const Belle2::TrackFindingCDC::CDCTrack *const, WeightedRelation< const Belle2::TrackFindingCDC::CDCTrack > > Findlet< AHit *, const TrackFindingCDC::WeightedRelation< AHit >, Result > Findlet< std::vector< Belle2::vxdHoughTracking::VXDHoughState * >, SpacePointTrackCand > Findlet< Belle2::vxdHoughTracking::VXDHoughState *, TrackFindingCDC::WeightedRelation< Belle2::vxdHoughTracking::VXDHoughState > > Findlet< Belle2::vxdHoughTracking::VXDHoughState *, const TrackFindingCDC::WeightedRelation< Belle2::vxdHoughTracking::VXDHoughState >, Result > BaseVarSet< AObject > Filter< AObject > Findlet< AIOTypes >

Public Member Functions

 ProcessingSignalListener ()
 Allow default construction.
 
 ProcessingSignalListener (const ProcessingSignalListener &)=delete
 Disallow copies.
 
ProcessingSignalListeneroperator= (const ProcessingSignalListener &)=delete
 Disallow assignment.
 
virtual ~ProcessingSignalListener ()
 Make destructor of interface virtual.
 
virtual void initialize ()
 Receive signal before the start of the event processing.
 
virtual void beginRun ()
 Receive signal for the beginning of a new run.
 
virtual void beginEvent ()
 Receive signal for the start of a new event.
 
virtual void endRun ()
 Receive signal for the end of the run.
 
virtual void terminate ()
 Receive Signal for termination of the event processing.
 

Private Attributes

bool m_initialized = false
 Flag to keep track whether initialization happened before.
 
bool m_terminated = false
 Flag to keep track whether termination happened before.
 
std::string m_initializedAs
 Name of the type during initialisation.
 

Detailed Description

Interface for an algorithm part that needs to receive the module processing signals.

Definition at line 20 of file ProcessingSignalListener.h.

Constructor & Destructor Documentation

◆ ~ProcessingSignalListener()

Make destructor of interface virtual.

Definition at line 21 of file ProcessingSignalListener.cc.

22{
23 if (m_initialized) {
24 B2DEBUG(20, "Processing signal listener " << m_initializedAs << " was not terminated after initialization");
25 }
26}
bool m_initialized
Flag to keep track whether initialization happened before.
std::string m_initializedAs
Name of the type during initialisation.

Member Function Documentation

◆ beginEvent()

void beginEvent ( )
virtual

Receive signal for the start of a new event.

Reimplemented in TruthAxialSegmentPairVarSet, TruthSegmentVarSet, BestMatchedTruthVarSet, TruthTrackVarSet, MonopoleStereoHitFinder, MonopoleStereoHitFinderQuadratic, SegmentFinderFacetAutomaton, SegmentTrackCombiner, StereoHitFinder, TrackFinderSegmentPairAutomaton, TrackFinderSegmentTripleAutomaton, TrackFinderAutomaton, AxialTrackCreatorMCTruth, CDCMCCloneLookUpFiller, SegmentCreatorMCTruth, WireHitMCMultiLoopBlocker, CDCCKFStateCreator, CKFToCDCFindlet, CKFToCDCFromEclFindlet, SpacePointTagger< AResult, ACluster >, SpacePointTagger< Belle2::CKFToPXDResult, Belle2::PXDCluster >, SpacePointTagger< Belle2::CKFToSVDResult, Belle2::SVDCluster >, CKFToPXDFindlet, CKFToSVDFindlet, CKFToSVDSeedFindlet, DATCONFPGAFindlet, BaseEventTimeExtractor< AIOTypes >, BaseEventTimeExtractor< RecoTrack * >, BaseEventTimeExtractor< TrackFindingCDC::CDCWireHit & >, SharingHitsMatcher< ACollectorItem, ACollectionItem >, SharingHitsMatcher< Belle2::TrackFindingCDC::CDCTrack, Belle2::TrackFindingCDC::CDCSegment2D >, MCSymmetric< BaseAxialSegmentPairFilter >, MCSymmetric< BaseFacetFilter >, MCSymmetric< BaseFacetRelationFilter >, MCSymmetric< BaseSegmentPairFilter >, MCSymmetric< BaseSegmentPairRelationFilter >, MCSymmetric< BaseSegmentRelationFilter >, MCSymmetric< BaseSegmentTripleFilter >, MCSymmetric< BaseSegmentTripleRelationFilter >, MCSymmetric< BaseTrackRelationFilter >, BkgTruthClusterVarSet, SegmentTrackTruthVarSet, StereoHitTruthVarSet, StoreVectorSwapper< IOType, a_alwaysWrite >, StoreVectorSwapper< Belle2::TrackFindingCDC::CDCFacet >, StoreVectorSwapper< Belle2::TrackFindingCDC::CDCWireHit, true >, StoreVectorSwapper< Belle2::TrackFindingCDC::CDCSegment2D >, StoreVectorSwapper< Belle2::TrackFindingCDC::CDCTrack >, StoreVectorSwapper< Belle2::TrackFindingCDC::CDCSegmentPair >, StoreVectorSwapper< Belle2::TrackFindingCDC::CDCSegmentTriple >, CompositeProcessingSignalListener, RecoTrackStorer, ROIFinder, SVDHoughTracking, and FindletStoreArrayInput< TWrappedFindlet >.

Definition at line 45 of file ProcessingSignalListener.cc.

46{
47 if (not m_initialized) {
48 B2DEBUG(20, typeid(*this).name() << " was not initialized");
49 }
50}

◆ beginRun()

◆ endRun()

void endRun ( )
virtual

Receive signal for the end of the run.

Reimplemented in CompositeProcessingSignalListener.

Definition at line 52 of file ProcessingSignalListener.cc.

53{
54 if (not m_initialized) {
55 B2DEBUG(20, typeid(*this).name() << " was not initialized");
56 }
57}

◆ initialize()

void initialize ( )
virtual

Receive signal before the start of the event processing.

Reimplemented in Advancer, RelationApplier, RelationFromSVDTracksCreator, CosmicsTrackMergerFindlet, CDCTrackingEventLevelMdstInfoFillerFromHitsFindlet, CDCTrackingEventLevelMdstInfoFillerFromSegmentsFindlet, TruthAxialSegmentPairVarSet, FilterVarSet< AFilter >, Chi2FacetFilter, Chi2FacetRelationFilter, MCFacetRelationFilter, TruthSegmentVarSet, MCSegmentPairRelationFilter, MCSegmentTripleFilter, MCSegmentTripleRelationFilter, BestMatchedTruthVarSet, TruthTrackVarSet, CutsFromDBWireHitFilter, AxialStraightTrackFinder, AsicBackgroundLibraryCreator, AsicBackgroundDetector, AxialStraightTrackCreator, AxialTrackCreatorHitHough, AxialTrackCreatorHitLegendre, AxialTrackCreatorMCTruth, AxialTrackCreatorSegmentHough, HitReclaimer, SegmentAliasResolver, SegmentCreatorMCTruth, SegmentOrienter, TrackExporter, TrackOrienter, WireHitCreator, WireHitMCMultiLoopBlocker, UnionVarSet< AObject >, UnionVarSet< Object >, VariadicUnionVarSet< AVarSets >, CDCCKFEclSeedCreator, CDCCKFResultStorer, ResultStorer< AResult >, ResultStorer< Belle2::CKFToPXDResult >, ResultStorer< Belle2::CKFToSVDResult >, TrackLoader, LayerPXDRelationFilter< AFilter, APrefilter >, PXDResultVarSet, SVDResultVarSet, DATCONSVDClusterizer, DATCONSVDClusterLoaderAndPreparer, FastInterceptFinder2DFPGA, ROICalculator, SVDShaperDigitConverter, ToPXDExtrapolator, BaseEventTimeExtractor< AIOTypes >, BaseEventTimeExtractor< RecoTrack * >, BaseEventTimeExtractor< TrackFindingCDC::CDCWireHit & >, StoreArrayMerger, StereoHitTrackQuadTreeMatcher< AQuadTree >, StereoHitTrackQuadTreeMatcher< Belle2::TrackFindingCDC::HyperHough >, StereoHitTrackQuadTreeMatcher< Belle2::TrackFindingCDC::QuadraticLegendre >, StereoHitTrackQuadTreeMatcher< Belle2::TrackFindingCDC::Z0TanLambdaLegendre >, OnVarSet< Filter< ATruthVarSet::Object > >, OnVarSet< Filter< AVarSet::Object > >, OnVarSet< BaseFacetFilter >, OnVarSet< BaseFacetRelationFilter >, OnVarSet< BaseAxialSegmentPairFilter >, OnVarSet< BaseSegmentRelationFilter >, OnVarSet< BaseTrackRelationFilter >, OnVarSet< BaseSegmentPairRelationFilter >, MCSymmetric< BaseAxialSegmentPairFilter >, MCSymmetric< BaseFacetFilter >, MCSymmetric< BaseFacetRelationFilter >, MCSymmetric< BaseSegmentPairFilter >, MCSymmetric< BaseSegmentPairRelationFilter >, MCSymmetric< BaseSegmentRelationFilter >, MCSymmetric< BaseSegmentTripleFilter >, MCSymmetric< BaseSegmentTripleRelationFilter >, MCSymmetric< BaseTrackRelationFilter >, BkgTruthClusterVarSet, SegmentTrackTruthVarSet, StereoHitTruthVarSet, CDCWireHitVarSet, BridgingWireHitRelationFilter, StoreArrayLoader< IOType >, StoreArrayLoader< const Belle2::SpacePoint >, StoreArrayLoader< DataStoreInputTypeRefType >, StoreVectorSwapper< IOType, a_alwaysWrite >, StoreVectorSwapper< Belle2::TrackFindingCDC::CDCFacet >, StoreVectorSwapper< Belle2::TrackFindingCDC::CDCWireHit, true >, StoreVectorSwapper< Belle2::TrackFindingCDC::CDCSegment2D >, StoreVectorSwapper< Belle2::TrackFindingCDC::CDCTrack >, StoreVectorSwapper< Belle2::TrackFindingCDC::CDCSegmentPair >, StoreVectorSwapper< Belle2::TrackFindingCDC::CDCSegmentTriple >, TrackQualityEstimator, SegmentFitter, CompositeProcessingSignalListener, RelationVarSet< ABaseVarSet >, QualityIndicatorFilter, TwoHitVirtualIPQIFilter, MultiHoughSpaceFastInterceptFinder, RawTrackCandCleaner< AHit >, RawTrackCandCleaner< Belle2::vxdHoughTracking::VXDHoughState >, RecoTrackStorer, ROIFinder, SingleHoughSpaceFastInterceptFinder, SpacePointLoaderAndPreparer, TrackCandidateOverlapResolver, TrackCandidateResultRefiner, and HitBasedT0Extractor.

Definition at line 28 of file ProcessingSignalListener.cc.

29{
30 if (m_initialized) {
31 B2DEBUG(20, typeid(*this).name() << " has been initialized before");
32 printBacktrace(LogConfig::c_Debug, 10);
33 }
34 m_initializedAs = typeid(*this).name();
35 m_initialized = true;
36}
@ c_Debug
Debug: for code development.
Definition: LogConfig.h:26

◆ terminate()

void terminate ( )
virtual

Receive Signal for termination of the event processing.

Reimplemented in AsicBackgroundLibraryCreator, AxialTrackCreatorHitHough, AxialTrackCreatorSegmentHough, StereoHitTrackQuadTreeMatcher< AQuadTree >, StereoHitTrackQuadTreeMatcher< Belle2::TrackFindingCDC::HyperHough >, StereoHitTrackQuadTreeMatcher< Belle2::TrackFindingCDC::QuadraticLegendre >, StereoHitTrackQuadTreeMatcher< Belle2::TrackFindingCDC::Z0TanLambdaLegendre >, and CompositeProcessingSignalListener.

Definition at line 59 of file ProcessingSignalListener.cc.

60{
61 if (m_terminated) {
62 B2DEBUG(20, typeid(*this).name() << " has been terminated before");
63 printBacktrace(LogConfig::c_Debug, 10);
64 }
65 m_terminated = true;
66
67 if (not m_initialized) {
68 B2DEBUG(20, typeid(*this).name() << " was not initialized before termination");
69 printBacktrace(LogConfig::c_Debug, 10);
70 }
71 m_initialized = false;
72}
bool m_terminated
Flag to keep track whether termination happened before.

Member Data Documentation

◆ m_initialized

bool m_initialized = false
private

Flag to keep track whether initialization happened before.

Definition at line 52 of file ProcessingSignalListener.h.

◆ m_initializedAs

std::string m_initializedAs
private

Name of the type during initialisation.

Definition at line 58 of file ProcessingSignalListener.h.

◆ m_terminated

bool m_terminated = false
private

Flag to keep track whether termination happened before.

Definition at line 55 of file ProcessingSignalListener.h.


The documentation for this class was generated from the following files: