8#include <tracking/trackFindingCDC/findlets/minimal/WireHitBackgroundDetector.h>
10#include <tracking/trackFindingCDC/eventdata/hits/CDCWireHit.h>
12#include <framework/core/ModuleParamList.templateDetails.h>
15using namespace TrackFindingCDC;
25 return "Marks hits as background based on the result of a filter.";
29 const std::string& prefix)
37 std::vector<CDCWireHit*> wireHitsPtr(wireHits.size());
38 for (
size_t iHit = 0; iHit < wireHits.size(); iHit += 1) {
39 wireHitsPtr[iHit] = &wireHits[iHit];
44 for (
size_t iHit = 0; iHit < probs.size(); iHit += 1) {
45 if (std::isnan(probs[iHit])) {
46 wireHits[iHit]->setTakenFlag();
47 wireHits[iHit]->setBackgroundFlag();
48 wireHits[iHit]->setBadADCOrTOTFlag();
The Module parameter list class.
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.