 |
Belle II Software
release-05-01-25
|
10 #include <tracking/trackFindingCDC/findlets/minimal/TrackRejecter.h>
12 #include <tracking/trackFindingCDC/eventdata/tracks/CDCTrack.h>
14 #include <tracking/trackFindingCDC/filters/base/ChooseableFilter.icc.h>
16 #include <tracking/trackFindingCDC/utilities/StringManipulation.h>
17 #include <tracking/trackFindingCDC/utilities/Algorithms.h>
19 #include <framework/core/ModuleParamList.templateDetails.h>
22 using namespace TrackFindingCDC;
28 : m_trackFilter(defaultFilterName)
35 return "Deletes fake tracks that have been rejected by a filter";
41 moduleParamList->
addParameter(prefixed(prefix,
"deleteRejected"),
43 "Delete the rejected tracks instead of marking them as background.",
49 auto reject = [
this](
CDCTrack & track) {
51 track->setCellWeight(filterWeight);
52 if (std::isnan(filterWeight)) {
53 track->setBackgroundFlag();
54 track->setTakenFlag();
62 erase_remove_if(tracks, reject);
64 std::for_each(tracks.begin(), tracks.end(), reject);
Class representing a sequence of three dimensional reconstructed hits.
Convenvience wrapper to setup a Chooseable filter from a specific factory object.
void addProcessingSignalListener(ProcessingSignalListener *psl)
Register a processing signal listener to be notified.
bool m_param_deleteRejected
Parameter : Switch to delete the tracks instead of marking them as background.
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::string getDescription() final
Short description of the findlet.
ChooseableFilter< TrackFilterFactory > m_trackFilter
Reference to the filter to be used to filter.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
TrackRejecter(const std::string &defaultFilterName="all")
Constructor adding the filter as a subordinary processing signal listener.
Filter can delegate to a filter chosen and set up at run time by parameters.
The Module parameter list class.
void apply(std::vector< CDCTrack > &tracks) final
Main algorithm.