#include <ViewContainerThinning.h>
|
| StringProperty | m_streamName { this, "StreamName", "", "Name of the stream being thinned" } |
| SG::ThinningHandleKey< xAOD::TrackParticleContainer > | m_trackParticleKey { this, "TrackParticleKey", "", "" } |
| SG::ThinningHandleKey< xAOD::CaloClusterContainer > | m_caloClusterKey { this, "CaloClusterKey", "", "" } |
| SG::ThinningHandleKey< xAOD::TruthParticleContainer > | m_truthParticleKey { this, "TruthParticleKey", "", "" } |
| SG::ReadHandleKey< xAOD::TrackParticleContainer > | m_trackParticleViewKey { this, "TrackParticleViewKey", "", "" } |
| SG::ReadHandleKey< xAOD::CaloClusterContainer > | m_caloClusterViewKey { this, "CaloClusterViewKey", "", "" } |
| SG::ReadHandleKey< xAOD::TruthParticleContainer > | m_truthParticleViewKey { this, "TruthParticleViewKey", "", "" } |
Definition at line 32 of file ViewContainerThinning.h.
◆ doThinning()
| StatusCode DerivationFramework::ViewContainerThinning::doThinning |
( |
const EventContext & | ctx | ) |
const |
|
overridevirtual |
Definition at line 75 of file ViewContainerThinning.cxx.
76 {
77
80 }
81
84 }
85
88 }
89 return StatusCode::SUCCESS;
90 }
#define ATH_CHECK
Evaluate an expression and check for errors.
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackParticleViewKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthParticleViewKey
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_caloClusterViewKey
SG::ThinningHandleKey< xAOD::CaloClusterContainer > m_caloClusterKey
SG::ThinningHandleKey< xAOD::TruthParticleContainer > m_truthParticleKey
StatusCode doThinningT(const EventContext &ctx, const SG::ThinningHandleKey< T > &key, const SG::ReadHandleKey< T > &viewKey) const
SG::ThinningHandleKey< xAOD::TrackParticleContainer > m_trackParticleKey
◆ doThinningT()
Definition at line 31 of file ViewContainerThinning.cxx.
34 {
35
36 SG::ThinningHandle<T> sourceCont (key, ctx);
37 SG::ReadHandle<T> viewCont (viewKey, ctx);
38
39 std::vector<bool> masks;
40 masks.assign( sourceCont->size(), false);
41
42 for( const auto* part: *viewCont){
43 masks[
part->index() ] =
true;
44 }
45
46 sourceCont.keep (masks);
47 return StatusCode::SUCCESS;
48 }
◆ finalize()
| StatusCode DerivationFramework::ViewContainerThinning::finalize |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
| StatusCode DerivationFramework::ViewContainerThinning::initialize |
( |
| ) |
|
|
overridevirtual |
◆ m_caloClusterKey
◆ m_caloClusterViewKey
◆ m_streamName
| StringProperty DerivationFramework::ViewContainerThinning::m_streamName { this, "StreamName", "", "Name of the stream being thinned" } |
|
protected |
◆ m_trackParticleKey
◆ m_trackParticleViewKey
◆ m_truthParticleKey
◆ m_truthParticleViewKey
The documentation for this class was generated from the following files: