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 = 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

 CKFToSVDSeedFindlet ()
 Constructor, for setting module description and parameters.
 
 ~CKFToSVDSeedFindlet ()
 Default desctructor.
 
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 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<>
 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 = 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

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

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

using Super = TrackFindingCDC::Findlet<>
private

Parent class.

Definition at line 49 of file CKFToSVDSeedFindlet.h.

◆ ToVector

using ToVector = typename ToVectorImpl<T>::Type
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 25 of file CKFToSVDSeedFindlet.cc.

26{
36}
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)
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 ( )
override

Do the track merging.

Definition at line 83 of file CKFToSVDSeedFindlet.cc.

84{
87
88 if (m_spacePointVector.empty() or m_cdcRecoTrackVector.empty()) {
89 return;
90 }
91
94
96 B2DEBUG(29, "Created " << m_relations.size() << " relations.");
97
99 B2DEBUG(29, "Having found " << m_results.size() << " results before overlap check");
100
101 const auto hasLowHitNumber = [this](const CKFResult<RecoTrack, SpacePoint>& result) {
102 return result.getHits().size() < m_param_minimalHitRequirement;
103 };
104 TrackFindingCDC::erase_remove_if(m_results, hasLowHitNumber);
105 B2DEBUG(29, "After filtering: Having found " << m_results.size() << " results before overlap check");
106
110}
Object for temporary storage of a CKF tree search result.
Definition: CKFResult.h:30
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.
void apply(const std::vector< CKFToSVDResult > &results, std::vector< TrackFindingCDC::WeightedRelation< const RecoTrack, const RecoTrack > > &relationsCDCToSVD) final
Create relations between tracks from the results (applying a filter)
void apply(const std::vector< TrackFindingCDC::WeightedRelation< const RecoTrack, const RecoTrack > > &relationsCDCToSVD) final
Copy the relations to the store array.
void apply(std::vector< CKFToSVDState > &seedStates, std::vector< CKFToSVDState > &states, std::vector< TrackFindingCDC::WeightedRelation< CKFToSVDState > > &relations) final
Create relations between seeds and hits or hits and hits.
void apply(std::vector< const SpacePoint * > &spacePoints) final
Do the space point retrieval.
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 67 of file CKFToSVDSeedFindlet.cc.

68{
70
72 m_spacePointVector.clear();
73
74 m_seedStates.clear();
75 m_states.clear();
76 m_relations.clear();
77
78 m_results.clear();
79
80 m_relationsCDCToSVD.clear();
81}
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 (also of the sub findlets).

Reimplemented from Findlet<>.

Definition at line 38 of file CKFToSVDSeedFindlet.cc.

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

◆ getDescription()

virtual std::string getDescription ( )
inlinevirtualinherited

Brief description of the purpose of the concret findlet.

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

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_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 = 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_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 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_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: