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