#include <TrackMeasurementThinning.h>
- Author
- David Salek -at- cern.ch
Definition at line 32 of file TrackMeasurementThinning.h.
◆ TrackMeasurementThinning()
DerivationFramework::TrackMeasurementThinning::TrackMeasurementThinning |
( |
const std::string & |
t, |
|
|
const std::string & |
n, |
|
|
const IInterface * |
p |
|
) |
| |
◆ ~TrackMeasurementThinning()
DerivationFramework::TrackMeasurementThinning::~TrackMeasurementThinning |
( |
| ) |
|
|
virtualdefault |
◆ doThinning()
StatusCode DerivationFramework::TrackMeasurementThinning::doThinning |
( |
| ) |
const |
|
overridevirtual |
Check that the current event passes this filter.
Definition at line 57 of file TrackMeasurementThinning.cxx.
59 const EventContext& ctx = Gaudi::Hive::currentContext();
66 unsigned int nClusters =
clusters->size();
67 if (nClusters==0)
return StatusCode::SUCCESS;
70 std::vector<bool>
mask;
71 mask.assign(nClusters,
false);
76 std::vector<int>
entries = m_parser->evaluateAsVector();
80 ATH_MSG_ERROR(
"Sizes incompatible! Are you sure your selection string used the same collection as the input collection??");
81 return StatusCode::FAILURE;
88 unsigned int n_pass=0;
89 for (
unsigned int i=0;
i<nClusters; ++
i) {
90 if (
mask[
i]) ++n_pass;
97 return StatusCode::SUCCESS;
◆ finalize()
StatusCode DerivationFramework::TrackMeasurementThinning::finalize |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
StatusCode DerivationFramework::TrackMeasurementThinning::initialize |
( |
| ) |
|
|
overridevirtual |
◆ m_npass
std::atomic<unsigned int> DerivationFramework::TrackMeasurementThinning::m_npass {} |
|
mutableprivate |
◆ m_ntot
std::atomic<unsigned int> DerivationFramework::TrackMeasurementThinning::m_ntot {} |
|
mutableprivate |
◆ m_selectionString
Gaudi::Property<std::string> DerivationFramework::TrackMeasurementThinning::m_selectionString { this, "SelectionString", "", ""} |
|
private |
◆ m_SGKey
◆ m_streamName
StringProperty DerivationFramework::TrackMeasurementThinning::m_streamName { this, "StreamName", "", "Name of the stream being thinned" } |
|
private |
The documentation for this class was generated from the following files: