Belle II Software development
CKFToCDCFindlet Class Referenceabstract

Main findlet of the ToCDCCKF module. More...

#include <CKFToCDCFindlet.h>

Inheritance diagram for CKFToCDCFindlet:
Findlet< const TrackFindingCDC::CDCWireHit > CompositeProcessingSignalListener ProcessingSignalListener

Public Types

using IOTypes = std::tuple< AIOTypes... >
 Types that should be served to apply on invokation.
 
using IOVectors = std::tuple< std::vector< AIOTypes >... >
 Vector types that should be served to apply on invokation.
 

Public Member Functions

 CKFToCDCFindlet ()
 Constructor, for setting module description and parameters.
 
 ~CKFToCDCFindlet () override
 Default desctructor.
 
void exposeParameters (ModuleParamList *moduleParamList, const std::string &prefix) override
 Expose the parameters of the sub findlets.
 
void apply (const std::vector< TrackFindingCDC::CDCWireHit > &wireHits) override
 Do the track/hit finding/merging.
 
void beginEvent () override
 Clear the object pools.
 
virtual std::string getDescription ()
 Brief description of the purpose of the concret findlet.
 
virtual void apply (ToVector< AIOTypes > &... ioVectors)=0
 Main function executing the algorithm.
 
void initialize () override
 Receive and dispatch signal before the start of the event processing.
 
void beginRun () override
 Receive and dispatch signal for the beginning of a new run.
 
void endRun () override
 Receive and dispatch signal for the end of the run.
 
void terminate () override
 Receive and dispatch Signal for termination of the event processing.
 

Protected Types

using ToVector = typename ToVectorImpl< T >::Type
 Short hand for ToRangeImpl.
 

Protected Member Functions

void addProcessingSignalListener (ProcessingSignalListener *psl)
 Register a processing signal listener to be notified.
 
int getNProcessingSignalListener ()
 Get the number of currently registered listeners.
 

Private Types

using Super = TrackFindingCDC::Findlet< const TrackFindingCDC::CDCWireHit >
 Parent class.
 

Private Attributes

TrackLoader m_trackHandler
 Findlet for retrieving the vxd tracks and writing the result out.
 
CDCCKFSeedCreator m_seedCreator
 Seed Creator.
 
StackTreeSearcher m_treeSearcher
 Tree Searcher.
 
CDCCKFResultFinalizer m_resultFinalizer
 Result Finalizer.
 
CDCCKFResultStorer m_resultStorer
 Result Storer.
 
std::vector< RecoTrack * > m_vxdRecoTrackVector
 Pointers to the CDC Reco tracks as a vector.
 
std::vector< CDCCKFPathm_paths
 Current list of paths.
 
std::vector< CDCCKFPathm_seeds
 Current list of seeds.
 
std::vector< CDCCKFResultm_results
 Current list of results.
 
std::vector< ProcessingSignalListener * > m_subordinaryProcessingSignalListeners
 References to subordinary signal processing listener contained in this findlet.
 
bool m_initialized = false
 Flag to keep track whether initialization happend before.
 
bool m_terminated = false
 Flag to keep track whether termination happend before.
 
std::string m_initializedAs
 Name of the type during initialisation.
 

Detailed Description

Main findlet of the ToCDCCKF module.

Definition at line 34 of file CKFToCDCFindlet.h.

Member Typedef Documentation

◆ IOTypes

using IOTypes = std::tuple<AIOTypes...>
inherited

Types that should be served to apply on invokation.

Definition at line 30 of file Findlet.h.

◆ IOVectors

using IOVectors = std::tuple< std::vector<AIOTypes>... >
inherited

Vector types that should be served to apply on invokation.

Definition at line 53 of file Findlet.h.

◆ Super

Parent class.

Definition at line 36 of file CKFToCDCFindlet.h.

◆ ToVector

using ToVector = typename ToVectorImpl<T>::Type
protectedinherited

Short hand for ToRangeImpl.

Definition at line 49 of file Findlet.h.

Constructor & Destructor Documentation

◆ CKFToCDCFindlet()

Constructor, for setting module description and parameters.

Definition at line 19 of file CKFToCDCFindlet.cc.

20{
26}
CDCCKFResultStorer m_resultStorer
Result Storer.
CDCCKFSeedCreator m_seedCreator
Seed Creator.
StackTreeSearcher m_treeSearcher
Tree Searcher.
CDCCKFResultFinalizer m_resultFinalizer
Result Finalizer.
TrackLoader m_trackHandler
Findlet for retrieving the vxd tracks and writing the result out.
void addProcessingSignalListener(ProcessingSignalListener *psl)
Register a processing signal listener to be notified.

Member Function Documentation

◆ addProcessingSignalListener()

void addProcessingSignalListener ( ProcessingSignalListener psl)
protectedinherited

Register a processing signal listener to be notified.

Definition at line 55 of file CompositeProcessingSignalListener.cc.

56{
58}
std::vector< ProcessingSignalListener * > m_subordinaryProcessingSignalListeners
References to subordinary signal processing listener contained in this findlet.

◆ apply()

void apply ( const std::vector< TrackFindingCDC::CDCWireHit > &  wireHits)
override

Do the track/hit finding/merging.

Definition at line 54 of file CKFToCDCFindlet.cc.

55{
58
59 const auto& wireHitPtrs = TrackFindingCDC::as_pointers<const TrackFindingCDC::CDCWireHit>(wireHits);
60
61 for (const auto& seed : m_seeds) {
62 B2DEBUG(29, "Starting new seed");
63 m_paths.clear();
64 m_paths.push_back(seed);
65 m_treeSearcher.apply(m_paths, wireHitPtrs);
67 }
68
70}
void apply(const std::vector< CDCCKFPath > &paths, std::vector< CDCCKFResult > &results) override
main method of the findlet, for a list of paths create a list of results.
void apply(const std::vector< CDCCKFResult > &results) override
Do the track/hit finding/merging.
void apply(const std::vector< RecoTrack * > &recoTracks, std::vector< CDCCKFPath > &seeds) override
Main method of the findlet, loop over reco tracks, create seeds for each of them.
std::vector< CDCCKFResult > m_results
Current list of results.
std::vector< CDCCKFPath > m_seeds
Current list of seeds.
std::vector< RecoTrack * > m_vxdRecoTrackVector
Pointers to the CDC Reco tracks as a vector.
std::vector< CDCCKFPath > m_paths
Current list of paths.
void apply(std::vector< CDCCKFPath > &paths, const std::vector< const TrackFindingCDC::CDCWireHit * > &wireHits) override
Main method to update the paths. Input: vector of the selected paths and a vector of CDC wirehits to ...
void apply(std::vector< RecoTrack * > &seeds) override
Load in the reco tracks and the hits.
Definition: TrackLoader.cc:68

◆ beginEvent()

void beginEvent ( )
overridevirtual

Clear the object pools.

Reimplemented from ProcessingSignalListener.

Definition at line 44 of file CKFToCDCFindlet.cc.

45{
47
49 m_paths.clear();
50 m_seeds.clear();
51 m_results.clear();
52}
void beginEvent() override
Receive and dispatch signal for the start of a new event.

◆ beginRun()

void beginRun ( )
overridevirtualinherited

Receive and dispatch signal for the beginning of a new run.

Reimplemented from ProcessingSignalListener.

Reimplemented in LayerRelationFilter< AFilter >, FourHitFilter, QualityIndicatorFilter, ThreeHitFilter, TwoHitVirtualIPFilter, TwoHitVirtualIPQIFilter, RecoTrackStorer, ROIFinder, SpacePointLoaderAndPreparer, and TrackCandidateResultRefiner.

Definition at line 23 of file CompositeProcessingSignalListener.cc.

24{
27 psl->beginRun();
28 }
29}
Interface for an algorithm part that needs to receive the module processing signals.
virtual void beginRun()
Receive signal for the beginning of a new run.

◆ endRun()

void endRun ( )
overridevirtualinherited

Receive and dispatch signal for the end of the run.

Reimplemented from ProcessingSignalListener.

Definition at line 39 of file CompositeProcessingSignalListener.cc.

40{
42 psl->endRun();
43 }
45}
virtual void endRun()
Receive signal for the end of the run.

◆ exposeParameters()

void exposeParameters ( ModuleParamList moduleParamList,
const std::string &  prefix 
)
overridevirtual

Expose the parameters of the sub findlets.

Reimplemented from Findlet< const TrackFindingCDC::CDCWireHit >.

Definition at line 28 of file CKFToCDCFindlet.cc.

29{
30 Super::exposeParameters(moduleParamList, prefix);
31
32 m_trackHandler.exposeParameters(moduleParamList, prefix);
33 m_seedCreator.exposeParameters(moduleParamList, prefix);
34 m_treeSearcher.exposeParameters(moduleParamList, prefix);
35 m_resultFinalizer.exposeParameters(moduleParamList, prefix);
36 m_resultStorer.exposeParameters(moduleParamList, prefix);
37
38 moduleParamList->getParameter<std::string>("statePreFilter").setDefaultValue("all");
39 moduleParamList->getParameter<std::string>("stateBasicFilter").setDefaultValue("rough");
40 moduleParamList->getParameter<std::string>("stateExtrapolationFilter").setDefaultValue("extrapolate_and_update");
41 moduleParamList->getParameter<std::string>("stateFinalFilter").setDefaultValue("distance");
42}
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose the parameters of the sub findlets.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose the parameters of the sub findlets.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose the parameters of the sub findlets.
virtual void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix)
Forward prefixed parameters of this findlet to the module parameter list.
Definition: Findlet.h:69
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose the parameters of the sub findlets.
Definition: TrackLoader.cc:24
ModuleParam< T > & getParameter(const std::string &name) const
Returns a reference to a parameter.

◆ getDescription()

virtual std::string getDescription ( )
inlinevirtualinherited

Brief description of the purpose of the concret findlet.

Definition at line 60 of file Findlet.h.

61 {
62 return "(no description)";
63 }

◆ getNProcessingSignalListener()

int getNProcessingSignalListener ( )
protectedinherited

Get the number of currently registered listeners.

Definition at line 60 of file CompositeProcessingSignalListener.cc.

61{
63}

◆ initialize()

void initialize ( )
overridevirtualinherited

Receive and dispatch signal before the start of the event processing.

Reimplemented from ProcessingSignalListener.

Reimplemented in UnionVarSet< AObject >, UnionVarSet< Object >, VariadicUnionVarSet< AVarSets >, ResultStorer< Belle2::CKFToPXDResult >, ResultStorer< Belle2::CKFToSVDResult >, BaseEventTimeExtractor< RecoTrack * >, BaseEventTimeExtractor< TrackFindingCDC::CDCWireHit & >, 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 >, StoreArrayLoader< const Belle2::SpacePoint >, StoreArrayLoader< DataStoreInputTypeRefType >, 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 >, RelationVarSet< ABaseVarSet >, QualityIndicatorFilter, TwoHitVirtualIPQIFilter, MultiHoughSpaceFastInterceptFinder, RawTrackCandCleaner< AHit >, RawTrackCandCleaner< Belle2::vxdHoughTracking::VXDHoughState >, RecoTrackStorer, ROIFinder, SingleHoughSpaceFastInterceptFinder, SpacePointLoaderAndPreparer, TrackCandidateOverlapResolver, and TrackCandidateResultRefiner.

Definition at line 15 of file CompositeProcessingSignalListener.cc.

16{
19 psl->initialize();
20 }
21}
virtual void initialize()
Receive signal before the start of the event processing.

◆ terminate()

void terminate ( )
overridevirtualinherited

Receive and dispatch Signal for termination of the event processing.

Reimplemented from ProcessingSignalListener.

Reimplemented in StereoHitTrackQuadTreeMatcher< Belle2::TrackFindingCDC::HyperHough >, StereoHitTrackQuadTreeMatcher< Belle2::TrackFindingCDC::QuadraticLegendre >, and StereoHitTrackQuadTreeMatcher< Belle2::TrackFindingCDC::Z0TanLambdaLegendre >.

Definition at line 47 of file CompositeProcessingSignalListener.cc.

48{
50 psl->terminate();
51 }
53}
virtual void terminate()
Receive Signal for termination of the event processing.

Member Data Documentation

◆ m_initialized

bool m_initialized = false
privateinherited

Flag to keep track whether initialization happend before.

Definition at line 52 of file ProcessingSignalListener.h.

◆ m_initializedAs

std::string m_initializedAs
privateinherited

Name of the type during initialisation.

Definition at line 58 of file ProcessingSignalListener.h.

◆ m_paths

std::vector<CDCCKFPath> m_paths
private

Current list of paths.

Definition at line 71 of file CKFToCDCFindlet.h.

◆ m_resultFinalizer

CDCCKFResultFinalizer m_resultFinalizer
private

Result Finalizer.

Definition at line 63 of file CKFToCDCFindlet.h.

◆ m_results

std::vector<CDCCKFResult> m_results
private

Current list of results.

Definition at line 75 of file CKFToCDCFindlet.h.

◆ m_resultStorer

CDCCKFResultStorer m_resultStorer
private

Result Storer.

Definition at line 65 of file CKFToCDCFindlet.h.

◆ m_seedCreator

CDCCKFSeedCreator m_seedCreator
private

Seed Creator.

Definition at line 59 of file CKFToCDCFindlet.h.

◆ m_seeds

std::vector<CDCCKFPath> m_seeds
private

Current list of seeds.

Definition at line 73 of file CKFToCDCFindlet.h.

◆ m_subordinaryProcessingSignalListeners

std::vector<ProcessingSignalListener*> m_subordinaryProcessingSignalListeners
privateinherited

References to subordinary signal processing listener contained in this findlet.

Definition at line 52 of file CompositeProcessingSignalListener.h.

◆ m_terminated

bool m_terminated = false
privateinherited

Flag to keep track whether termination happend before.

Definition at line 55 of file ProcessingSignalListener.h.

◆ m_trackHandler

TrackLoader m_trackHandler
private

Findlet for retrieving the vxd tracks and writing the result out.

Definition at line 57 of file CKFToCDCFindlet.h.

◆ m_treeSearcher

StackTreeSearcher m_treeSearcher
private

Tree Searcher.

Definition at line 61 of file CKFToCDCFindlet.h.

◆ m_vxdRecoTrackVector

std::vector<RecoTrack*> m_vxdRecoTrackVector
private

Pointers to the CDC Reco tracks as a vector.

Definition at line 69 of file CKFToCDCFindlet.h.


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