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

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

Main findlet of the ToCDCCKF module.

Definition at line 32 of file CKFToCDCFromEclFindlet.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

Parent class.

Definition at line 34 of file CKFToCDCFromEclFindlet.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

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

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 ( 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}
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.

◆ 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)
58 CDCRecoHit::setTranslators(new CDC::LinearGlobalADCCountTranslator(),
59 new CDC::RealisticCDCGeometryTranslator(true),
60 new CDC::RealisticTDCCountTranslator(true),
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

◆ 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 of the sub findlets.

Reimplemented from CompositeProcessingSignalListener.

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}
virtual void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix)
ModuleParam< T > & getParameter(const std::string &name) const
Returns a reference to a parameter.

◆ getDescription() [1/2]

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 }

◆ getDescription() [2/2]

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