ATLAS Offline Software
Loading...
Searching...
No Matches
TruthClassificationDecorator.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef DERIVATIONFRAMEWORK_TRUTHCLASSIFICATIONDECORATOR_H
6#define DERIVATIONFRAMEWORK_TRUTHCLASSIFICATIONDECORATOR_H
7
8#include <string>
9
15#include "GaudiKernel/ToolHandle.h"
16
18
19namespace DerivationFramework {
20
21 class TruthClassificationDecorator : public extends<AthAlgTool, IAugmentationTool> {
22 public:
23
24 using base_class::base_class;
25
26 virtual StatusCode initialize() override final;
27 virtual StatusCode finalize() override final;
28 virtual StatusCode addBranches(const EventContext& ctx) const override final;
29
30 private:
31 mutable std::atomic<unsigned int> m_ntotpart{};
33 {this, "ParticlesKey", "TruthParticles", "ReadHandleKey for input TruthParticleContainer"};
34 // Decorator keys
36 {this, "classifierParticleOrigin", m_particlesKey, "classifierParticleOrigin", "Particle origin decoration"};
38 {this, "classifierParticleType", m_particlesKey, "classifierParticleType", "Particle type decoration"};
40 {this, "classifierParticleOutCome", m_particlesKey, "classifierParticleOutCome", "Particle outcome decoration"};
42 {this, "Classification", m_particlesKey, "Classification", "Classification code decorator"};
43 PublicToolHandle<IMCTruthClassifier> m_classifier{this, "MCTruthClassifier", "MCTruthClassifier/MCTruthClassifier"};
44 };
45}
46
47#endif // DERIVATIONFRAMEWORK_TRUTHCLASSIFICATIONDECORATOR_H
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_originDecoratorKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_outcomeDecoratorKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_typeDecoratorKey
virtual StatusCode addBranches(const EventContext &ctx) const override final
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_classificationDecoratorKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_particlesKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
THE reconstruction tool.