#include <TruthClassificationDecorator.h>
|
std::atomic< unsigned int > | m_ntotpart |
|
SG::ReadHandleKey< xAOD::TruthParticleContainer > | m_particlesKey {this, "ParticlesKey", "TruthParticles", "ReadHandleKey for input TruthParticleContainer"} |
|
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > | m_linkDecoratorKey {this, "originalTruthParticle", m_particlesKey, "originalTruthParticle", "Link to the original truth particle"} |
|
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > | m_originDecoratorKey {this, "classifierParticleOrigin", m_particlesKey, "classifierParticleOrigin", "Particle origin decoration"} |
|
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > | m_typeDecoratorKey {this, "classifierParticleType", m_particlesKey, "classifierParticleType", "Particle type decoration"} |
|
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > | m_outcomeDecoratorKey {this, "classifierParticleOutCome", m_particlesKey, "classifierParticleOutCome", "Particle outcome decoration"} |
|
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > | m_classificationDecoratorKey {this, "Classification", m_particlesKey, "Classification", "Classification code decorator"} |
|
ToolHandle< IMCTruthClassifier > | m_classifier |
|
◆ TruthClassificationDecorator()
DerivationFramework::TruthClassificationDecorator::TruthClassificationDecorator |
( |
const std::string & |
t, |
|
|
const std::string & |
n, |
|
|
const IInterface * |
p |
|
) |
| |
◆ ~TruthClassificationDecorator()
DerivationFramework::TruthClassificationDecorator::~TruthClassificationDecorator |
( |
| ) |
|
◆ addBranches()
StatusCode DerivationFramework::TruthClassificationDecorator::addBranches |
( |
| ) |
const |
|
virtual |
Definition at line 60 of file TruthClassificationDecorator.cxx.
64 const EventContext& ctx = Gaudi::Hive::currentContext();
68 if (!truthParticles.isValid()) {
70 return StatusCode::FAILURE;
73 unsigned int nParticles = truthParticles->size();
83 for (
unsigned int i=0;
i<nParticles; ++
i) {
85 auto classification =
m_classifier->particleTruthClassifier((*truthParticles)[
i], &
info);
86 unsigned int particleOutCome =
info.particleOutCome;
89 unsigned int particleOrigin = classification.second;
91 originDecorator(*((*truthParticles)[
i])) = particleOrigin;
92 outcomeDecorator(*((*truthParticles)[
i])) = particleOutCome;
94 classificationDecorator(*((*truthParticles)[
i])) =
result;
97 return StatusCode::SUCCESS;
◆ finalize()
StatusCode DerivationFramework::TruthClassificationDecorator::finalize |
( |
| ) |
|
◆ initialize()
StatusCode DerivationFramework::TruthClassificationDecorator::initialize |
( |
| ) |
|
◆ m_classificationDecoratorKey
◆ m_classifier
ToolHandle<IMCTruthClassifier> DerivationFramework::TruthClassificationDecorator::m_classifier |
|
private |
◆ m_linkDecoratorKey
◆ m_ntotpart
std::atomic<unsigned int> DerivationFramework::TruthClassificationDecorator::m_ntotpart |
|
mutableprivate |
◆ m_originDecoratorKey
◆ m_outcomeDecoratorKey
◆ m_particlesKey
◆ m_typeDecoratorKey
The documentation for this class was generated from the following files: