#include <SV1TrackThinning.h>
Definition at line 25 of file SV1TrackThinning.h.
◆ SV1TrackThinning()
DerivationFramework::SV1TrackThinning::SV1TrackThinning |
( |
const std::string & |
t, |
|
|
const std::string & |
n, |
|
|
const IInterface * |
p |
|
) |
| |
◆ ~SV1TrackThinning()
DerivationFramework::SV1TrackThinning::~SV1TrackThinning |
( |
| ) |
|
◆ doThinning()
StatusCode DerivationFramework::SV1TrackThinning::doThinning |
( |
| ) |
const |
|
overridevirtual |
Definition at line 65 of file SV1TrackThinning.cxx.
67 const EventContext& ctx = Gaudi::Hive::currentContext();
74 unsigned int nTracks = importedTrackParticles->size();
75 if (nTracks==0)
return StatusCode::SUCCESS;
78 std::vector<bool>
mask;
79 mask.assign(nTracks,
false);
85 return StatusCode::FAILURE;
88 unsigned int nJets(importedJets->size());
89 std::vector<const xAOD::Jet*> jetToCheck; jetToCheck.clear();
93 std::vector<int>
entries = m_parser->evaluateAsVector();
97 ATH_MSG_ERROR(
"Sizes incompatible! Are you sure your selection string used jets??");
98 return StatusCode::FAILURE;
101 for (
unsigned int i=0;
i<nJets; ++
i)
if (
entries[
i]==1) jetToCheck.push_back((*importedJets)[
i]);
110 const std::vector< ElementLink<xAOD::TrackParticleContainer> >& SV1_trackParticleLinks =
115 int index = (*tp)->index();
122 const std::vector< ElementLink<xAOD::TrackParticleContainer> >& SV1_trackParticleLinks =
127 int index = (*tp)->index();
134 for (
unsigned int i=0;
i<nTracks; ++
i) {
139 importedTrackParticles.keep (
mask);
141 return StatusCode::SUCCESS;
◆ finalize()
StatusCode DerivationFramework::SV1TrackThinning::finalize |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
StatusCode DerivationFramework::SV1TrackThinning::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 38 of file SV1TrackThinning.cxx.
46 return StatusCode::FAILURE;
47 }
else {
ATH_MSG_INFO(
"Inner detector track particles associated with objects in " <<
m_jetSGKey <<
" will be retained in this format with the rest being thinned away");}
53 return StatusCode::SUCCESS;
◆ m_inDetSGKey
◆ m_jetSGKey
std::string DerivationFramework::SV1TrackThinning::m_jetSGKey |
|
private |
◆ m_npass
std::atomic<unsigned int> DerivationFramework::SV1TrackThinning::m_npass |
|
private |
◆ m_ntot
std::atomic<unsigned int> DerivationFramework::SV1TrackThinning::m_ntot |
|
mutableprivate |
◆ m_selectionString
std::string DerivationFramework::SV1TrackThinning::m_selectionString |
|
private |
◆ m_streamName
StringProperty DerivationFramework::SV1TrackThinning::m_streamName { this, "StreamName", "", "Name of the stream being thinned" } |
|
private |
The documentation for this class was generated from the following files: