8#include <tracking/trackFindingCDC/findlets/minimal/WireHitBackgroundBlocker.h>
10#include <tracking/trackFindingCDC/eventdata/hits/CDCWireHit.h>
12#include <tracking/trackFindingCDC/utilities/StringManipulation.h>
14#include <framework/core/ModuleParamList.templateDetails.h>
19using namespace TrackFindingCDC;
23 return "Marks hits as background based on simple heuristics.";
27 const std::string& prefix)
29 moduleParamList->
addParameter(prefixed(prefix,
"blockNegativeDriftLength"),
31 "Switch to drop wire hits with negative "
32 "drift lengths from output",
35 moduleParamList->
addParameter(prefixed(prefix,
"noiseChargeDeposit"),
37 "Threshold energy below which the hit is considered "
38 "to be electronic noise",
45 bool markAsBackground =
false;
48 if (wireHit.getRefDriftLength() < 0) {
49 markAsBackground =
true;
54 markAsBackground =
true;
57 if (markAsBackground) {
58 wireHit->setBackgroundFlag();
59 wireHit->setTakenFlag();
The Module parameter list class.
Class representing a hit wire in the central drift chamber.
void apply(std::vector< CDCWireHit > &wireHits) final
Main algorithm marking hit as background.
double m_param_noiseChargeDeposit
Parameter : Threshold below, which hits are consider electronic noise background.
std::string getDescription() final
Short description of the findlet.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
bool m_param_blockNegativeDriftLength
Parameter : Switch to drop negative drift lengths from the created wire hits.
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.