ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
DerivationFramework
DerivationFrameworkMCTruth
DerivationFrameworkMCTruth
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
10
#include "
AthenaBaseComps/AthAlgTool.h
"
11
#include "
DerivationFrameworkInterfaces/IAugmentationTool.h
"
12
#include "
xAODTruth/TruthParticleContainer.h
"
13
#include "
StoreGate/ReadHandleKey.h
"
14
#include "
StoreGate/WriteDecorHandleKey.h
"
15
#include "GaudiKernel/ToolHandle.h"
16
17
class
IMCTruthClassifier
;
18
19
namespace
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
{};
32
SG::ReadHandleKey<xAOD::TruthParticleContainer>
m_particlesKey
33
{
this
,
"ParticlesKey"
,
"TruthParticles"
,
"ReadHandleKey for input TruthParticleContainer"
};
34
// Decorator keys
35
SG::WriteDecorHandleKey<xAOD::TruthParticleContainer>
m_originDecoratorKey
36
{
this
,
"classifierParticleOrigin"
,
m_particlesKey
,
"classifierParticleOrigin"
,
"Particle origin decoration"
};
37
SG::WriteDecorHandleKey<xAOD::TruthParticleContainer>
m_typeDecoratorKey
38
{
this
,
"classifierParticleType"
,
m_particlesKey
,
"classifierParticleType"
,
"Particle type decoration"
};
39
SG::WriteDecorHandleKey<xAOD::TruthParticleContainer>
m_outcomeDecoratorKey
40
{
this
,
"classifierParticleOutCome"
,
m_particlesKey
,
"classifierParticleOutCome"
,
"Particle outcome decoration"
};
41
SG::WriteDecorHandleKey<xAOD::TruthParticleContainer>
m_classificationDecoratorKey
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
AthAlgTool.h
TruthParticleContainer.h
IAugmentationTool.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
DerivationFramework::TruthClassificationDecorator
Definition
TruthClassificationDecorator.h:21
DerivationFramework::TruthClassificationDecorator::m_originDecoratorKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_originDecoratorKey
Definition
TruthClassificationDecorator.h:36
DerivationFramework::TruthClassificationDecorator::m_outcomeDecoratorKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_outcomeDecoratorKey
Definition
TruthClassificationDecorator.h:40
DerivationFramework::TruthClassificationDecorator::m_typeDecoratorKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_typeDecoratorKey
Definition
TruthClassificationDecorator.h:38
DerivationFramework::TruthClassificationDecorator::m_classifier
PublicToolHandle< IMCTruthClassifier > m_classifier
Definition
TruthClassificationDecorator.h:43
DerivationFramework::TruthClassificationDecorator::finalize
virtual StatusCode finalize() override final
Definition
TruthClassificationDecorator.cxx:36
DerivationFramework::TruthClassificationDecorator::addBranches
virtual StatusCode addBranches(const EventContext &ctx) const override final
Definition
TruthClassificationDecorator.cxx:44
DerivationFramework::TruthClassificationDecorator::m_classificationDecoratorKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_classificationDecoratorKey
Definition
TruthClassificationDecorator.h:42
DerivationFramework::TruthClassificationDecorator::m_ntotpart
std::atomic< unsigned int > m_ntotpart
Definition
TruthClassificationDecorator.h:31
DerivationFramework::TruthClassificationDecorator::initialize
virtual StatusCode initialize() override final
Definition
TruthClassificationDecorator.cxx:19
DerivationFramework::TruthClassificationDecorator::m_particlesKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_particlesKey
Definition
TruthClassificationDecorator.h:33
IMCTruthClassifier
Definition
IMCTruthClassifier.h:44
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition
StoreGate/StoreGate/WriteDecorHandleKey.h:90
DerivationFramework
THE reconstruction tool.
Definition
CascadeTools.h:16
Generated on
for ATLAS Offline Software by
1.17.0