8#include <tracking/trackFindingCDC/findlets/minimal/ClusterBackgroundDetector.h>
10#include <tracking/trackFindingCDC/eventdata/segments/CDCWireHitCluster.h>
11#include <tracking/trackFindingCDC/eventdata/hits/CDCWireHit.h>
17using namespace TrackFindingCDC;
26 return "Marks clusters as background if the used filter detects them as such";
30 const std::string& prefix)
39 if (std::isnan(clusterWeight)) {
41 cluster.setBackgroundFlag(
true);
43 wireHit->getAutomatonCell().setBackgroundFlag();
44 wireHit->getAutomatonCell().setTakenFlag();
The Module parameter list class.
An aggregation of CDCWireHits.
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.
ClusterBackgroundDetector()
Constructor adding the filter as a subordinary processing signal listener.
std::string getDescription() final
Short description of the findlet.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
ChooseableClusterFilter m_clusterFilter
Chooseable cluster filter to be used to filter background.
void apply(std::vector< CDCWireHitCluster > &outputClusters) final
Main algorithm applying the cluster background detection.
void addProcessingSignalListener(ProcessingSignalListener *psl)
Register a processing signal listener to be notified.
Abstract base class for different kinds of events.