Findlet to finalize CKF Paths in terms of final result.
More...
#include <CDCCKFResultFinalizer.h>
|
using | IOTypes |
| Types that should be served to apply on invocation.
|
|
using | IOVectors |
| Vector types that should be served to apply on invocation.
|
|
|
void | exposeParameters (ModuleParamList *moduleParamList, const std::string &prefix) override |
| Expose the parameters of the sub findlets.
|
|
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.
|
|
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 | 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.
|
|
|
using | Super |
| Type of the base class.
|
|
Findlet to finalize CKF Paths in terms of final result.
Definition at line 30 of file CDCCKFResultFinalizer.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.
◆ CDCCKFResultFinalizer()
◆ 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()
main method of the findlet, for a list of paths create a list of results.
Definition at line 44 of file CDCCKFResultFinalizer.h.
45 {
46 if (paths.empty()) {
47 return;
48 }
49
51 TrackFindingCDC::Weight bestWeight = -NAN;
52
53 for (const CDCCKFPath& path : paths) {
54 const TrackFindingCDC::Weight weight = m_filter(path);
55 if (weight <= bestWeight) {
56 continue;
57 }
58 bestWeight = weight;
59 bestElement = &path;
60 }
61
62 if (bestElement and not std::isnan(bestWeight)) {
63 results.push_back(*bestElement);
64 }
65 }
std::vector< CDCCKFState > CDCCKFPath
Shortcut for the collection of CDC CKF-algorithm states.
◆ 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 ) |
|
inlineoverridevirtual |
◆ 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 |
◆ initialize()
Receive and dispatch signal before the start of the event processing.
Definition at line 30 of file CompositeProcessingSignalListener.cc.
16{
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()
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_filter
◆ m_initialized
◆ m_initializedAs
std::string m_initializedAs |
|
privateinherited |
◆ m_subordinaryProcessingSignalListeners
◆ m_terminated
The documentation for this class was generated from the following file: