8 #include <tracking/trackFindingCDC/findlets/minimal/WireHitBackgroundDetector.h>
10 #include <tracking/trackFindingCDC/eventdata/hits/CDCWireHit.h>
12 #include <framework/core/ModuleParamList.templateDetails.h>
17 using namespace TrackFindingCDC;
27 return "Marks hits as background based on the result of a filter.";
31 const std::string& prefix)
42 if (std::isnan(wireHitWeight)) {
43 wireHit->setBackgroundFlag();
44 wireHit->setTakenFlag();
45 wireHit->setBadADCOrTOTFlag();
The Module parameter list class.
Class representing a hit wire in the central drift chamber.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the set of parameters of the filter to the module parameter list.
void addProcessingSignalListener(ProcessingSignalListener *psl)
Register a processing signal listener to be notified.
void apply(std::vector< CDCWireHit > &wireHits) final
Main algorithm marking hit as background.
WireHitBackgroundDetector()
Default constructor.
std::string getDescription() final
Short description of the findlet.
ChooseableWireHitFilter m_wireHitFilter
Chooseable WireHit filter to be used to filter background.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
Abstract base class for different kinds of events.