 |
Belle II Software
release-05-02-19
|
12 #include <tracking/trackFindingCDC/findlets/base/Findlet.h>
13 #include <tracking/trackFindingCDC/utilities/Algorithms.h>
14 #include <tracking/ckf/cdc/entities/CDCCKFPath.h>
16 #include <tracking/ckf/cdc/filters/pathPairs/CDCPathPairFilterFactory.h>
17 #include <tracking/trackFindingCDC/filters/base/ChooseableFilter.icc.h>
18 #include <tracking/trackFindingCDC/utilities/StringManipulation.h>
19 #include <framework/core/ModuleParamList.h>
26 class CDCCKFPathSelector :
public TrackFindingCDC::Findlet<CDCCKFPath> {
37 moduleParamList->
addParameter(TrackFindingCDC::prefixed(prefix,
"maximalCandidatesInFlight"),
40 m_filter.exposeParameters(moduleParamList, prefix);
44 void apply(std::vector<CDCCKFPath>& newPaths)
override
49 std::sort(newPaths.begin(), newPaths.end(), pathComparison);
void apply(std::vector< CDCCKFPath > &newPaths) override
main method of the findlet, out of all paths "newPaths" select the best N=m_maximalCandidatesInFlight
Convenvience wrapper to setup a Chooseable filter from a specific factory object.
void addProcessingSignalListener(ProcessingSignalListener *psl)
Register a processing signal listener to be notified.
void addParameter(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module list.
Abstract base class for different kinds of events.
std::vector< CDCCKFState > CDCCKFPath
Shortcut for the collection of CDC CKF-algorithm states.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose the parameters of the sub findlets.
The Module parameter list class.
TrackFindingCDC::ChooseableFilter< CDCPathPairFilterFactory > m_filter
Filter to order paths.
size_t m_maximalCandidatesInFlight
Maximum number of paths to select.