#include <JetLargeD0TrackParticleThinning.h>
|
std::atomic< unsigned int > | m_ntot {} |
|
std::atomic< unsigned int > | m_npass {} |
|
SG::ReadHandleKey< xAOD::JetContainer > | m_jetKey { this, "JetKey", "", ""} |
|
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", "", "" } |
|
◆ JetLargeD0TrackParticleThinning()
DerivationFramework::JetLargeD0TrackParticleThinning::JetLargeD0TrackParticleThinning |
( |
const std::string & |
t, |
|
|
const std::string & |
n, |
|
|
const IInterface * |
p |
|
) |
| |
◆ ~JetLargeD0TrackParticleThinning()
DerivationFramework::JetLargeD0TrackParticleThinning::~JetLargeD0TrackParticleThinning |
( |
| ) |
|
|
virtual |
◆ doThinning()
StatusCode DerivationFramework::JetLargeD0TrackParticleThinning::doThinning |
( |
| ) |
const |
|
overridevirtual |
Definition at line 68 of file JetLargeD0TrackParticleThinning.cxx.
70 const EventContext& ctx = Gaudi::Hive::currentContext();
78 unsigned int nTracks = importedTrackParticles->size();
79 if (nTracks==0)
return StatusCode::SUCCESS;
82 std::vector<bool>
mask;
83 mask.assign(nTracks,
false);
89 if (!importedJets.isValid()) {
91 return StatusCode::FAILURE;
93 unsigned int nJets(importedJets->size());
94 std::vector<const xAOD::Jet*> jetToCheck; jetToCheck.clear();
102 ATH_MSG_ERROR(
"Sizes incompatible! Are you sure your selection string used jets??");
103 return StatusCode::FAILURE;
106 for (
unsigned int i=0;
i<nJets; ++
i)
if (
entries[
i]==1) jetToCheck.push_back((*importedJets)[
i]);
116 const std::vector< ElementLink<DataVector<xAOD::IParticle> > > &jetTrackLinks = ghostTrackLRT( **jetIt );
117 for (
const auto &jetTrkIt : jetTrackLinks) {
124 for (std::vector<const xAOD::Jet*>::const_iterator jetIt=jetToCheck.begin(); jetIt!=jetToCheck.end(); ++jetIt) {
125 const std::vector< ElementLink<DataVector<xAOD::IParticle> > > &jetTrackLinks = ghostTrackLRT( **jetIt );
126 for (
const auto &jetTrkIt : jetTrackLinks) {
140 ATH_MSG_ERROR(
"Sizes incompatible! Are you sure your track selection string used tracks??");
141 return StatusCode::FAILURE;
151 unsigned int n_pass=0;
152 for (
unsigned int i=0;
i<nTracks; ++
i) {
153 if (
mask[
i]) ++n_pass;
158 importedTrackParticles.keep (
mask);
160 return StatusCode::SUCCESS;
◆ finalize()
StatusCode DerivationFramework::JetLargeD0TrackParticleThinning::finalize |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
StatusCode DerivationFramework::JetLargeD0TrackParticleThinning::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 39 of file JetLargeD0TrackParticleThinning.cxx.
47 return StatusCode::FAILURE;
50 ATH_MSG_INFO(
"Inner detector track particles associated with objects in " <<
m_jetKey.key() <<
" will be retained in this format with the rest being thinned away");
57 return StatusCode::SUCCESS;
◆ m_inDetSGKey
◆ m_jetKey
◆ m_npass
std::atomic<unsigned int> DerivationFramework::JetLargeD0TrackParticleThinning::m_npass {} |
|
mutableprivate |
◆ m_ntot
std::atomic<unsigned int> DerivationFramework::JetLargeD0TrackParticleThinning::m_ntot {} |
|
mutableprivate |
◆ m_selectionString
StringProperty DerivationFramework::JetLargeD0TrackParticleThinning::m_selectionString { this, "SelectionString", "", "" } |
|
private |
◆ m_streamName
StringProperty DerivationFramework::JetLargeD0TrackParticleThinning::m_streamName { this, "StreamName", "", "Name of the stream being thinned" } |
|
private |
◆ m_trackSelectionString
StringProperty DerivationFramework::JetLargeD0TrackParticleThinning::m_trackSelectionString { this, "TrackSelectionString", "", "" } |
|
private |
The documentation for this class was generated from the following files:
std::atomic< unsigned int > m_npass
SG::ReadHandleKey< xAOD::JetContainer > m_jetKey
SG::ThinningHandleKey< xAOD::TrackParticleContainer > m_inDetSGKey
std::atomic< unsigned int > m_ntot
Class describing a TrackParticle.