Deletes fake tracks that have been rejected by a filter.
More...
#include <TrackQualityEstimator.h>
|
using | IOTypes |
| Types that should be served to apply on invocation.
|
|
using | IOVectors |
| Vector types that should be served to apply on invocation.
|
|
|
| TrackQualityEstimator (const std::string &defaultFilterName="mva") |
| Constructor adding the filter as a subordinary processing signal listener.
|
|
std::string | getDescription () final |
| Short description of the findlet.
|
|
void | exposeParameters (ModuleParamList *moduleParamList, const std::string &prefix) final |
| Expose the parameters to a module.
|
|
void | initialize () override |
| Receive and dispatch signal before the start of the event processing.
|
|
void | apply (std::vector< CDCTrack > &tracks) final |
| Main algorithm.
|
|
virtual void | apply (ToVector< AIOTypes > &... ioVectors)=0 |
| Main function executing the algorithm.
|
|
void | beginRun () override |
| Receive and dispatch signal for the beginning of a new run.
|
|
void | beginEvent () override |
| Receive and dispatch signal for the start of a new event.
|
|
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.
|
|
|
using | ToVector |
| Short hand for ToRangeImpl.
|
|
Deletes fake tracks that have been rejected by a filter.
Definition at line 28 of file TrackQualityEstimator.h.
◆ IOTypes
Types that should be served to apply on invocation.
Definition at line 30 of file Findlet.h.
◆ IOVectors
Vector types that should be served to apply on invocation.
Definition at line 53 of file Findlet.h.
◆ Super
◆ ToVector
Short hand for ToRangeImpl.
Definition at line 49 of file Findlet.h.
◆ TrackQualityEstimator()
Constructor adding the filter as a subordinary processing signal listener.
Definition at line 24 of file TrackQualityEstimator.cc.
26{
29}
void addProcessingSignalListener(ProcessingSignalListener *psl)
ChooseableFilter< TrackQualityFilterFactory > m_trackQualityFilter
Reference to the filter to be used to filter.
CDCMCCloneLookUpFiller m_mcCloneLookUpFiller
Findlet to fill CDCTracks into lookup table (singleton) with clone information.
◆ addProcessingSignalListener()
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.
◆ apply()
void apply |
( |
std::vector< CDCTrack > & | tracks | ) |
|
|
final |
Main algorithm.
Definition at line 59 of file TrackQualityEstimator.cc.
60{
61
63 for (CDCTrack& track : tracks) {
65 track.setQualityIndicator(qualityIndicator);
66 }
67
69 auto reject = [this](const CDCTrack & track) {
70 const double qualityIndicator = track.getQualityIndicator();
72 track.forwardTakenFlag(false);
73 }
74 return std::isnan(qualityIndicator);
75 };
76 erase_remove_if(tracks, reject);
77 }
78}
bool m_param_resetTakenFlag
Reset taken flag for deleted tracks so that hits can be used by subsequent TFs.
bool m_param_deleteTracks
Delete tracks below threshold instead of just assigning quality indicator.
bool m_needsTruthInformation
Store output of needsTruthInformation from filter in member variable.
◆ beginEvent()
Receive and dispatch signal for the start of a new event.
Definition at line 36 of file CompositeProcessingSignalListener.cc.
32{
36 }
37}
void beginEvent() override
Receive and dispatch signal for the start of a new event.
virtual void beginEvent()
Receive signal for the start of a new event.
◆ beginRun()
Receive and dispatch signal for the beginning of a new run.
Definition at line 33 of file CompositeProcessingSignalListener.cc.
24{
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()
Receive and dispatch signal for the end of the run.
Definition at line 39 of file CompositeProcessingSignalListener.cc.
40{
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 ) |
|
finalvirtual |
Expose the parameters to a module.
Reimplemented from CompositeProcessingSignalListener.
Definition at line 43 of file TrackQualityEstimator.cc.
44{
47
48 moduleParamList->
addParameter(prefixed(prefix,
"deleteTracks"),
50 "Delete tracks below cut instead of just assigning quality indicator.",
52
53 moduleParamList->
addParameter(prefixed(prefix,
"resetTakenFlag"),
55 "Reset taken flag for deleted tracks so that hits can be used by subsequent TFs.",
57}
void addParameter(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module list.
◆ getDescription()
std::string getDescription |
( |
| ) |
|
|
finalvirtual |
Short description of the findlet.
Reimplemented from Findlet< CDCTrack & >.
Definition at line 38 of file TrackQualityEstimator.cc.
39{
40 return "Set the quality indicator for CDC tracks and, if desired, delete tracks with a too low quality value.";
41}
◆ getNProcessingSignalListener()
int getNProcessingSignalListener |
( |
| ) |
|
|
protectedinherited |
◆ initialize()
◆ terminate()
Receive and dispatch Signal for termination of the event processing.
Definition at line 42 of file CompositeProcessingSignalListener.cc.
48{
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.
◆ m_initialized
◆ m_initializedAs
std::string m_initializedAs |
|
privateinherited |
◆ m_mcCloneLookUpFiller
◆ m_needsTruthInformation
bool m_needsTruthInformation = false |
|
private |
◆ m_param_deleteTracks
bool m_param_deleteTracks = false |
|
private |
Delete tracks below threshold instead of just assigning quality indicator.
Definition at line 58 of file TrackQualityEstimator.h.
◆ m_param_resetTakenFlag
bool m_param_resetTakenFlag = false |
|
private |
Reset taken flag for deleted tracks so that hits can be used by subsequent TFs.
Definition at line 61 of file TrackQualityEstimator.h.
◆ m_subordinaryProcessingSignalListeners
◆ m_terminated
◆ m_trackQualityFilter
The documentation for this class was generated from the following files: