 |
Belle II Software
release-05-01-25
|
10 #include <tracking/trackFindingCDC/findlets/minimal/WireHitBackgroundBlocker.h>
12 #include <tracking/trackFindingCDC/eventdata/hits/CDCWireHit.h>
14 #include <tracking/trackFindingCDC/utilities/StringManipulation.h>
16 #include <framework/core/ModuleParamList.templateDetails.h>
21 using namespace TrackFindingCDC;
25 return "Marks hits as background based on simple heuristics.";
29 const std::string& prefix)
31 moduleParamList->
addParameter(prefixed(prefix,
"blockNegativeDriftLength"),
33 "Switch to drop wire hits with negative "
34 "drift lengths from output",
37 moduleParamList->
addParameter(prefixed(prefix,
"noiseChargeDeposit"),
39 "Threshold energy below which the hit is considered "
40 "to be electronic noise",
47 bool markAsBackground =
false;
50 if (wireHit.getRefDriftLength() < 0) {
51 markAsBackground =
true;
56 markAsBackground =
true;
59 if (markAsBackground) {
60 wireHit->setBackgroundFlag();
61 wireHit->setTakenFlag();
bool m_param_blockNegativeDriftLength
Parameter : Switch to drop negative drift lengths from the created wire hits.
void apply(std::vector< CDCWireHit > &wireHits) final
Main algorithm marking hit as background.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
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.
Class representing a hit wire in the central drift chamber.
The Module parameter list class.
double m_param_noiseChargeDeposit
Parameter : Threshold below, which hits are consider electronic noise background.