#include <VSITrackParticleThinning.h>
|
std::atomic< unsigned int > | m_ntot {} |
|
std::atomic< unsigned int > | m_npass {} |
|
StringProperty | m_streamName { this, "StreamName", "", "Name of the stream being thinned" } |
|
SG::ThinningHandleKey< xAOD::TrackParticleContainer > | m_inDetSGKey { this, "InDetTrackParticlesKey", "InDetTrackParticles", "" } |
|
StringProperty | m_selectionString { this, "SelectionString", "", "" } |
|
StringProperty | m_trackSelectionString { this, "TrackSelectionString", "", "" } |
|
StringArrayProperty | m_augVerStrings { this, "AugVerStrings", {""}, "List of augVerStrings to consider" } |
|
Definition at line 29 of file VSITrackParticleThinning.h.
◆ VSITrackParticleThinning()
DerivationFramework::VSITrackParticleThinning::VSITrackParticleThinning |
( |
const std::string & |
t, |
|
|
const std::string & |
n, |
|
|
const IInterface * |
p |
|
) |
| |
◆ ~VSITrackParticleThinning()
DerivationFramework::VSITrackParticleThinning::~VSITrackParticleThinning |
( |
| ) |
|
|
virtual |
◆ doThinning()
StatusCode DerivationFramework::VSITrackParticleThinning::doThinning |
( |
| ) |
const |
|
overridevirtual |
Definition at line 58 of file VSITrackParticleThinning.cxx.
61 const EventContext& ctx = Gaudi::Hive::currentContext();
68 unsigned int nTracks = importedTrackParticles->size();
69 if (nTracks==0)
return StatusCode::SUCCESS;
72 std::vector<bool>
mask;
73 mask.assign(nTracks,
false);
77 for (
const auto trkIt: *importedTrackParticles ) {
80 if (
acc.withDefault (*trkIt,
false)) {
81 int index = trkIt->index();
93 ATH_MSG_ERROR(
"Sizes incompatible! Are you sure your track selection string used tracks??");
94 return StatusCode::FAILURE;
99 if (!
mask[
i])
continue;
107 unsigned int n_pass=0;
108 for (
unsigned int i=0;
i<nTracks; ++
i) {
109 if (
mask[
i]) ++n_pass;
115 importedTrackParticles.keep (
mask);
118 return StatusCode::SUCCESS;
◆ finalize()
StatusCode DerivationFramework::VSITrackParticleThinning::finalize |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
StatusCode DerivationFramework::VSITrackParticleThinning::initialize |
( |
| ) |
|
|
overridevirtual |
◆ m_augVerStrings
StringArrayProperty DerivationFramework::VSITrackParticleThinning::m_augVerStrings { this, "AugVerStrings", {""}, "List of augVerStrings to consider" } |
|
private |
◆ m_inDetSGKey
◆ m_npass
std::atomic<unsigned int> DerivationFramework::VSITrackParticleThinning::m_npass {} |
|
mutableprivate |
◆ m_ntot
std::atomic<unsigned int> DerivationFramework::VSITrackParticleThinning::m_ntot {} |
|
mutableprivate |
◆ m_selectionString
StringProperty DerivationFramework::VSITrackParticleThinning::m_selectionString { this, "SelectionString", "", "" } |
|
private |
◆ m_streamName
StringProperty DerivationFramework::VSITrackParticleThinning::m_streamName { this, "StreamName", "", "Name of the stream being thinned" } |
|
private |
◆ m_trackSelectionString
StringProperty DerivationFramework::VSITrackParticleThinning::m_trackSelectionString { this, "TrackSelectionString", "", "" } |
|
private |
The documentation for this class was generated from the following files:
StringProperty m_selectionString
StringArrayProperty m_augVerStrings
std::atomic< unsigned int > m_npass
std::atomic< unsigned int > m_ntot
SG::ThinningHandleKey< xAOD::TrackParticleContainer > m_inDetSGKey
StringProperty m_trackSelectionString