Belle II Software development
CKFToCDCFromEclFindlet Class Referenceabstract

Main findlet of the ToCDCCKF module. More...

#include <CKFToCDCFromEclFindlet.h>

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

Public Types

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

Public Member Functions

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

CDCCKFEclSeedCreator m_seedCreator
 Findlet for retrieving the ecl showers and creating recoTracks out of it.
 
StackTreeSearcher m_treeSearcher
 Tree Searcher.
 
CDCCKFResultFinalizer m_resultFinalizer
 Result Finalizer.
 
CDCCKFResultStorer m_resultStorer
 Result Storer.
 
CDCCKFDuplicateRemover m_duplicateRemover
 Showers from Bremsstrahlung might lead to duplicate tracks.
 
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 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

Main findlet of the ToCDCCKF module.

Definition at line 32 of file CKFToCDCFromEclFindlet.h.

Member Typedef Documentation

◆ IOTypes

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

Types that should be served to apply on invocation.

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 invocation.

Definition at line 53 of file Findlet.h.

◆ Super

Parent class.

Definition at line 34 of file CKFToCDCFromEclFindlet.h.

◆ ToVector

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

Short hand for ToRangeImpl.

Definition at line 49 of file Findlet.h.

Constructor & Destructor Documentation

◆ CKFToCDCFromEclFindlet()

Constructor, for setting module description and parameters.

Definition at line 24 of file CKFToCDCFromEclFindlet.cc.

25{
31}
CDCCKFResultStorer m_resultStorer
Result Storer.
StackTreeSearcher m_treeSearcher
Tree Searcher.
CDCCKFResultFinalizer m_resultFinalizer
Result Finalizer.
CDCCKFDuplicateRemover m_duplicateRemover
Showers from Bremsstrahlung might lead to duplicate tracks.
CDCCKFEclSeedCreator m_seedCreator
Findlet for retrieving the ecl showers and creating recoTracks out of it.
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 69 of file CKFToCDCFromEclFindlet.cc.

70{
71 const auto& wireHitPtrs = TrackFindingCDC::as_pointers<const TrackFindingCDC::CDCWireHit>(wireHits);
72
73 // create the seed objects
75
76 // find the paths
77 for (const auto& seed : m_seeds) {
78 B2DEBUG(29, "Starting new seed");
79 m_paths.clear();
80 m_paths.push_back(seed);
81 m_treeSearcher.apply(m_paths, wireHitPtrs);
83 }
84
85 // remove duplicate tracks (additional seeds from Bremsstrahlung)
87
88 // and store output
90}
void apply(std::vector< CDCCKFResult > &results) override
main method of the findlet, merges and filters paths
void apply(std::vector< CDCCKFPath > &seeds) override
Load in the reco tracks and the hits.
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.
std::vector< CDCCKFResult > m_results
Current list of results.
std::vector< CDCCKFPath > m_seeds
Current list of seeds.
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 ...

◆ beginEvent()

void beginEvent ( )
overridevirtual

Clear the object pools.

Reimplemented from ProcessingSignalListener.

Definition at line 53 of file CKFToCDCFromEclFindlet.cc.

54{
56
57 // Prepare the Translators (necessary to create CDCRecoHits)
61 true);
62
63 // Clear all vectors
64 m_paths.clear();
65 m_seeds.clear();
66 m_results.clear();
67}
static void setTranslators(CDC::ADCCountTranslatorBase *const adcCountTranslator, CDC::CDCGeometryTranslatorBase *const cdcGeometryTranslator, CDC::TDCCountTranslatorBase *const tdcCountTranslator, bool useTrackTime=false, bool cosmics=false)
Setter for the Translators.
Definition: CDCRecoHit.cc:33
This class simply assumes a linear translation through (0,0)
This class uses the realistic detector geometry (the one after alignment procedure) for the translati...
Translator mirroring the realistic Digitization.
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 33 of file CKFToCDCFromEclFindlet.cc.

34{
35 Super::exposeParameters(moduleParamList, prefix);
36
37 m_seedCreator.exposeParameters(moduleParamList, prefix);
38 m_treeSearcher.exposeParameters(moduleParamList, prefix);
39 m_resultFinalizer.exposeParameters(moduleParamList, prefix);
40 m_resultStorer.exposeParameters(moduleParamList, prefix);
41 m_duplicateRemover.exposeParameters(moduleParamList, prefix);
42
43 moduleParamList->getParameter<std::string>("statePreFilter").setDefaultValue("all");
44 moduleParamList->getParameter<std::string>("stateBasicFilter").setDefaultValue("rough_eclSeed");
45 moduleParamList->getParameter<std::string>("stateExtrapolationFilter").setDefaultValue("extrapolate_and_update");
46 moduleParamList->getParameter<std::string>("stateFinalFilter").setDefaultValue("distance");
47
48 moduleParamList->getParameter<std::string>("badTracksFilter").setDefaultValue("seedCharge");
49 moduleParamList->getParameter<std::string>("duplicateTrackFilter").setDefaultValue("hitDistance");
50 moduleParamList->getParameter<std::string>("duplicateSeedFilter").setDefaultValue("duplicateHits");
51}
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.
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
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 concrete 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_duplicateRemover

CDCCKFDuplicateRemover m_duplicateRemover
private

Showers from Bremsstrahlung might lead to duplicate tracks.

Definition at line 63 of file CKFToCDCFromEclFindlet.h.

◆ m_initialized

bool m_initialized = false
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_paths

std::vector<CDCCKFPath> m_paths
private

Current list of paths.

Definition at line 67 of file CKFToCDCFromEclFindlet.h.

◆ m_resultFinalizer

CDCCKFResultFinalizer m_resultFinalizer
private

Result Finalizer.

Definition at line 59 of file CKFToCDCFromEclFindlet.h.

◆ m_results

std::vector<CDCCKFResult> m_results
private

Current list of results.

Definition at line 71 of file CKFToCDCFromEclFindlet.h.

◆ m_resultStorer

CDCCKFResultStorer m_resultStorer
private

Result Storer.

Definition at line 61 of file CKFToCDCFromEclFindlet.h.

◆ m_seedCreator

CDCCKFEclSeedCreator m_seedCreator
private

Findlet for retrieving the ecl showers and creating recoTracks out of it.

Definition at line 55 of file CKFToCDCFromEclFindlet.h.

◆ m_seeds

std::vector<CDCCKFPath> m_seeds
private

Current list of seeds.

Definition at line 69 of file CKFToCDCFromEclFindlet.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 happened before.

Definition at line 55 of file ProcessingSignalListener.h.

◆ m_treeSearcher

StackTreeSearcher m_treeSearcher
private

Tree Searcher.

Definition at line 57 of file CKFToCDCFromEclFindlet.h.


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