Belle II Software development
CKFToSVDSeedFindlet Class Referenceabstract

Findlet for combining CDC tracks with SVD tracks. More...

#include <CKFToSVDSeedFindlet.h>

Inheritance diagram for CKFToSVDSeedFindlet:
Findlet<> CompositeProcessingSignalListener ProcessingSignalListener

Public Types

using IOTypes
 Types that should be served to apply on invocation.
 
using IOTypes
 Types that should be served to apply on invocation.
 
using IOVectors
 Vector types that should be served to apply on invocation.
 
using IOVectors
 Vector types that should be served to apply on invocation.
 

Public Member Functions

 CKFToSVDSeedFindlet ()
 Constructor, for setting module description and parameters.
 
 ~CKFToSVDSeedFindlet ()
 Default destructor.
 
void exposeParameters (ModuleParamList *moduleParamList, const std::string &prefix) override
 Expose the parameters (also of the sub findlets).
 
void apply () override
 Do the track merging.
 
void beginEvent () override
 Clear the object pools.
 
virtual std::string getDescription ()
 Brief description of the purpose of the concrete findlet.
 
virtual std::string getDescription ()
 Brief description of the purpose of the concrete 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
 Short hand for ToRangeImpl.
 
using ToVector
 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<>
 Parent class.
 

Private Attributes

unsigned int m_param_minimalHitRequirement = 2
 Minimal hit requirement for the results (counted in number of space points)
 
TrackLoader m_dataHandler
 Findlet for retrieving the cdc tracks and writing the result out.
 
SpacePointLoader m_hitsLoader
 Findlet for loading the space points.
 
StateCreatorWithReversal< CKFToSVDStatem_stateCreatorFromTracks
 Findlet for creating states out of tracks.
 
StateCreator< const SpacePoint, CKFToSVDStatem_stateCreatorFromHits
 Findlet for creating states out of hits.
 
RelationFromSVDTracksCreator m_relationCreator
 Relation Creator.
 
TreeSearcher< CKFToSVDState, SVDStateRejecter, CKFToSVDResultm_treeSearchFindlet
 Findlet doing the main work: the tree finding.
 
RecoTrackRelator m_recoTrackRelator
 Findlet transforming the hit results to track relations.
 
TrackFindingCDC::BestMatchSelector< const RecoTrack, const RecoTrackm_bestMatchSelector
 Greedy filter for the relations between SVD and CDC Reco Tracks.
 
RelationApplier m_relationApplier
 Copy the result relations to the store array.
 
std::vector< RecoTrack * > m_cdcRecoTrackVector
 Pointers to the CDC Reco tracks as a vector.
 
std::vector< const SpacePoint * > m_spacePointVector
 Pointers to the (const) SpacePoints as a vector.
 
std::vector< CKFToSVDStatem_seedStates
 States for the tracks.
 
std::vector< CKFToSVDStatem_states
 States for the hits.
 
std::vector< TrackFindingCDC::WeightedRelation< CKFToSVDState > > m_relations
 Relations between states.
 
std::vector< CKFToSVDResultm_results
 Vector for storing the results.
 
std::vector< TrackFindingCDC::WeightedRelation< const RecoTrack, const RecoTrack > > m_relationsCDCToSVD
 Relations between CDC tracks and SVD tracks.
 
std::vector< ProcessingSignalListener * > m_subordinaryProcessingSignalListeners
 References to subordinary signal processing listener contained in this findlet.
 
bool m_initialized
 Flag to keep track whether initialization happened before.
 
bool m_terminated
 Flag to keep track whether termination happened before.
 
std::string m_initializedAs
 Name of the type during initialisation.
 

Detailed Description

Findlet for combining CDC tracks with SVD tracks.

The idea is to use every fitted CDC track, extrapolate it to every SVD track and extrapolate/Kalman fit it with every hit of the track.

Then, a filter is applied to every CDC-SVD combination and the combinations are resolved using this filter information.

This module does only output relations - the combination has to be done afterwards.

Definition at line 47 of file CKFToSVDSeedFindlet.h.

Member Typedef Documentation

◆ IOTypes [1/2]

using IOTypes
inherited

Types that should be served to apply on invocation.

Definition at line 30 of file Findlet.h.

◆ IOTypes [2/2]

using IOTypes
inherited

Types that should be served to apply on invocation.

Definition at line 30 of file Findlet.h.

◆ IOVectors [1/2]

using IOVectors
inherited

Vector types that should be served to apply on invocation.

Definition at line 53 of file Findlet.h.

◆ IOVectors [2/2]

using IOVectors
inherited

Vector types that should be served to apply on invocation.

Definition at line 53 of file Findlet.h.

◆ Super

using Super = TrackFindingCDC::Findlet<>
private

Parent class.

Definition at line 49 of file CKFToSVDSeedFindlet.h.

◆ ToVector [1/2]

using ToVector
protectedinherited

Short hand for ToRangeImpl.

Definition at line 49 of file Findlet.h.

◆ ToVector [2/2]

using ToVector
protectedinherited

Short hand for ToRangeImpl.

Definition at line 49 of file Findlet.h.

Constructor & Destructor Documentation

◆ CKFToSVDSeedFindlet()

Constructor, for setting module description and parameters.

Definition at line 27 of file CKFToSVDSeedFindlet.cc.

28{
38}
RecoTrackRelator m_recoTrackRelator
Findlet transforming the hit results to track relations.
TrackLoader m_dataHandler
Findlet for retrieving the cdc tracks and writing the result out.
RelationFromSVDTracksCreator m_relationCreator
Relation Creator.
TreeSearcher< CKFToSVDState, SVDStateRejecter, CKFToSVDResult > m_treeSearchFindlet
Findlet doing the main work: the tree finding.
StateCreatorWithReversal< CKFToSVDState > m_stateCreatorFromTracks
Findlet for creating states out of tracks.
SpacePointLoader m_hitsLoader
Findlet for loading the space points.
RelationApplier m_relationApplier
Copy the result relations to the store array.
TrackFindingCDC::BestMatchSelector< const RecoTrack, const RecoTrack > m_bestMatchSelector
Greedy filter for the relations between SVD and CDC Reco Tracks.
StateCreator< const SpacePoint, CKFToSVDState > m_stateCreatorFromHits
Findlet for creating states out of hits.
void addProcessingSignalListener(ProcessingSignalListener *psl)

Member Function Documentation

◆ addProcessingSignalListener()

void addProcessingSignalListener ( ProcessingSignalListener * psl)
protectedinherited

Register a processing signal listener to be notified.

Definition at line 53 of file CompositeProcessingSignalListener.cc.

56{
58}
Interface for a minimal algorithm part that wants to expose some parameters to a module.
Definition Findlet.h:26

◆ apply()

void apply ( )
override

Do the track merging.

Definition at line 85 of file CKFToSVDSeedFindlet.cc.

86{
88 // Don't use RecoTracks that don't have CDC hits, which can happen in an SVD based tracking
89 // where the SVD standalone tracking is followed by the ToCDCCKF and the CDC standalone tracking.
90 const auto hasNoCDCHits = [](const RecoTrack * recoTrack) {
91 return recoTrack->getNumberOfCDCHits() == 0;
92 };
93 TrackFindingCDC::erase_remove_if(m_cdcRecoTrackVector, hasNoCDCHits);
94
96
97 if (m_spacePointVector.empty() or m_cdcRecoTrackVector.empty()) {
98 return;
99 }
100
103
105 B2DEBUG(29, "Created " << m_relations.size() << " relations.");
106
108 B2DEBUG(29, "Having found " << m_results.size() << " results before overlap check");
109
110 const auto hasLowHitNumber = [this](const CKFResult<RecoTrack, SpacePoint>& result) {
111 return result.getHits().size() < m_param_minimalHitRequirement;
112 };
113 TrackFindingCDC::erase_remove_if(m_results, hasLowHitNumber);
114 B2DEBUG(29, "After filtering: Having found " << m_results.size() << " results before overlap check");
115
119}
std::vector< TrackFindingCDC::WeightedRelation< const RecoTrack, const RecoTrack > > m_relationsCDCToSVD
Relations between CDC tracks and SVD tracks.
unsigned int m_param_minimalHitRequirement
Minimal hit requirement for the results (counted in number of space points)
std::vector< CKFToSVDState > m_states
States for the hits.
std::vector< const SpacePoint * > m_spacePointVector
Pointers to the (const) SpacePoints as a vector.
std::vector< RecoTrack * > m_cdcRecoTrackVector
Pointers to the CDC Reco tracks as a vector.
std::vector< CKFToSVDResult > m_results
Vector for storing the results.
std::vector< CKFToSVDState > m_seedStates
States for the tracks.
std::vector< TrackFindingCDC::WeightedRelation< CKFToSVDState > > m_relations
Relations between states.

◆ beginEvent()

void beginEvent ( )
overridevirtual

Clear the object pools.

Reimplemented from ProcessingSignalListener.

Definition at line 69 of file CKFToSVDSeedFindlet.cc.

70{
72
74 m_spacePointVector.clear();
75
76 m_seedStates.clear();
77 m_states.clear();
78 m_relations.clear();
79
80 m_results.clear();
81
82 m_relationsCDCToSVD.clear();
83}

◆ beginRun()

void beginRun ( )
overrideinherited

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

Definition at line 33 of file CompositeProcessingSignalListener.cc.

24{
27 psl->beginRun();
28 }
29}
void beginRun() override
Receive and dispatch signal for the beginning of a new run.
virtual void beginRun()
Receive signal for the beginning of a new run.

◆ endRun()

void endRun ( )
overrideinherited

Receive and dispatch signal for the end of the run.

Definition at line 39 of file CompositeProcessingSignalListener.cc.

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

◆ exposeParameters()

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

Expose the parameters (also of the sub findlets).

Reimplemented from CompositeProcessingSignalListener.

Definition at line 40 of file CKFToSVDSeedFindlet.cc.

41{
42 Super::exposeParameters(moduleParamList, prefix);
43
44 m_dataHandler.exposeParameters(moduleParamList, prefix);
45 m_hitsLoader.exposeParameters(moduleParamList, prefix);
46 m_stateCreatorFromTracks.exposeParameters(moduleParamList, prefix);
47 m_stateCreatorFromHits.exposeParameters(moduleParamList, prefix);
48 m_relationCreator.exposeParameters(moduleParamList, prefix);
49 m_treeSearchFindlet.exposeParameters(moduleParamList, prefix);
50 m_bestMatchSelector.exposeParameters(moduleParamList, prefix);
51 m_recoTrackRelator.exposeParameters(moduleParamList, prefix);
52 m_relationApplier.exposeParameters(moduleParamList, prefix);
53
54 moduleParamList->addParameter("minimalHitRequirement", m_param_minimalHitRequirement,
55 "Minimal Hit requirement for the results (counted in space points)",
57
58 moduleParamList->getParameter<std::string>("firstHighFilter").setDefaultValue("non_ip_crossing");
59 moduleParamList->getParameter<std::string>("advanceHighFilter").setDefaultValue("advance");
60 moduleParamList->getParameter<std::string>("secondHighFilter").setDefaultValue("all");
61 moduleParamList->getParameter<std::string>("updateHighFilter").setDefaultValue("fit");
62 moduleParamList->getParameter<std::string>("thirdHighFilter").setDefaultValue("all");
63
64 moduleParamList->getParameter<std::string>("hitsSpacePointsStoreArrayName").setDefaultValue("SVDSpacePoints");
65
66 moduleParamList->getParameter<bool>("endEarly").setDefaultValue(false);
67}
virtual void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix)
ModuleParam< T > & getParameter(const std::string &name) const
Returns a reference to a parameter.
void addParameter(const std::string &name, T &paramVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module list.

◆ getDescription() [1/2]

virtual std::string getDescription ( )
inlinevirtualinherited

Brief description of the purpose of the concrete findlet.

Reimplemented in CosmicsTrackMergerFindlet, FindletStoreArrayInput< TWrappedFindlet >, TrackFinder, TrackFinderAutomaton, and TrackFinderCosmics.

Definition at line 60 of file Findlet.h.

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

◆ getDescription() [2/2]

virtual std::string getDescription ( )
inlinevirtualinherited

Brief description of the purpose of the concrete findlet.

Reimplemented in CosmicsTrackMergerFindlet, FindletStoreArrayInput< TWrappedFindlet >, TrackFinder, TrackFinderAutomaton, and TrackFinderCosmics.

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 56 of file CompositeProcessingSignalListener.cc.

61{
63}

◆ initialize()

void initialize ( )
overrideinherited

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

Definition at line 30 of file CompositeProcessingSignalListener.cc.

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

◆ terminate()

void terminate ( )
overrideinherited

Receive and dispatch Signal for termination of the event processing.

Definition at line 42 of file CompositeProcessingSignalListener.cc.

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

Member Data Documentation

◆ m_bestMatchSelector

TrackFindingCDC::BestMatchSelector<const RecoTrack, const RecoTrack> m_bestMatchSelector
private

Greedy filter for the relations between SVD and CDC Reco Tracks.

Definition at line 88 of file CKFToSVDSeedFindlet.h.

◆ m_cdcRecoTrackVector

std::vector<RecoTrack*> m_cdcRecoTrackVector
private

Pointers to the CDC Reco tracks as a vector.

Definition at line 94 of file CKFToSVDSeedFindlet.h.

◆ m_dataHandler

TrackLoader m_dataHandler
private

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

Definition at line 74 of file CKFToSVDSeedFindlet.h.

◆ m_hitsLoader

SpacePointLoader m_hitsLoader
private

Findlet for loading the space points.

Definition at line 76 of file CKFToSVDSeedFindlet.h.

◆ m_initialized

bool m_initialized
privateinherited

Flag to keep track whether initialization happened 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_param_minimalHitRequirement

unsigned int m_param_minimalHitRequirement = 2
private

Minimal hit requirement for the results (counted in number of space points)

Definition at line 70 of file CKFToSVDSeedFindlet.h.

◆ m_recoTrackRelator

RecoTrackRelator m_recoTrackRelator
private

Findlet transforming the hit results to track relations.

Definition at line 86 of file CKFToSVDSeedFindlet.h.

◆ m_relationApplier

RelationApplier m_relationApplier
private

Copy the result relations to the store array.

Definition at line 90 of file CKFToSVDSeedFindlet.h.

◆ m_relationCreator

RelationFromSVDTracksCreator m_relationCreator
private

Relation Creator.

Definition at line 82 of file CKFToSVDSeedFindlet.h.

◆ m_relations

std::vector<TrackFindingCDC::WeightedRelation<CKFToSVDState> > m_relations
private

Relations between states.

Definition at line 102 of file CKFToSVDSeedFindlet.h.

◆ m_relationsCDCToSVD

std::vector<TrackFindingCDC::WeightedRelation<const RecoTrack, const RecoTrack> > m_relationsCDCToSVD
private

Relations between CDC tracks and SVD tracks.

Definition at line 106 of file CKFToSVDSeedFindlet.h.

◆ m_results

std::vector<CKFToSVDResult> m_results
private

Vector for storing the results.

Definition at line 104 of file CKFToSVDSeedFindlet.h.

◆ m_seedStates

std::vector<CKFToSVDState> m_seedStates
private

States for the tracks.

Definition at line 98 of file CKFToSVDSeedFindlet.h.

◆ m_spacePointVector

std::vector<const SpacePoint*> m_spacePointVector
private

Pointers to the (const) SpacePoints as a vector.

Definition at line 96 of file CKFToSVDSeedFindlet.h.

◆ m_stateCreatorFromHits

StateCreator<const SpacePoint, CKFToSVDState> m_stateCreatorFromHits
private

Findlet for creating states out of hits.

Definition at line 80 of file CKFToSVDSeedFindlet.h.

◆ m_stateCreatorFromTracks

StateCreatorWithReversal<CKFToSVDState> m_stateCreatorFromTracks
private

Findlet for creating states out of tracks.

Definition at line 78 of file CKFToSVDSeedFindlet.h.

◆ m_states

std::vector<CKFToSVDState> m_states
private

States for the hits.

Definition at line 100 of file CKFToSVDSeedFindlet.h.

◆ m_subordinaryProcessingSignalListeners

std::vector<ProcessingSignalListener*> m_subordinaryProcessingSignalListeners
privateinherited

References to subordinary signal processing listener contained in this findlet.

Definition at line 60 of file CompositeProcessingSignalListener.h.

◆ m_terminated

bool m_terminated
privateinherited

Flag to keep track whether termination happened before.

Definition at line 55 of file ProcessingSignalListener.h.

◆ m_treeSearchFindlet

Findlet doing the main work: the tree finding.

Definition at line 84 of file CKFToSVDSeedFindlet.h.


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