ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
DerivationFramework
DerivationFrameworkMCTruth
DerivationFrameworkMCTruth
HadronOriginDecorator.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
/*
6
* @file DerivationFrameworkTop/TopHeavyFlavorFilterAugmentation.h
7
* @date Apr. 2015
8
* @brief tool to add a variable to the TruthParticles corresponding to the HF hadrons origin flag
9
*/
10
11
12
#ifndef DerivationFrameworkMCTruth_HadronOriginDecorator_H
13
#define DerivationFrameworkMCTruth_HadronOriginDecorator_H
14
15
#include <string>
16
17
#include "
AthenaBaseComps/AthAlgTool.h
"
18
#include "GaudiKernel/ToolHandle.h"
19
#include "
StoreGate/ReadHandleKey.h
"
20
#include "
StoreGate/WriteDecorHandleKey.h
"
21
#include "
DerivationFrameworkInterfaces/IAugmentationTool.h
"
22
#include "
xAODTruth/TruthParticleContainer.h
"
23
#include "
DerivationFrameworkMCTruth/HadronOriginClassifier.h
"
24
25
namespace
DerivationFramework
{
26
27
class
HadronOriginDecorator
:
public
extends<AthAlgTool, IAugmentationTool> {
28
public
:
29
30
using
base_class::base_class;
31
32
virtual
StatusCode
initialize
()
override
final
;
33
virtual
StatusCode
addBranches
(
const
EventContext& ctx)
const
override
final
;
34
35
private
:
36
SG::ReadHandleKey<xAOD::TruthParticleContainer>
m_particlesKey
37
{
this
,
"TruthEventName"
,
"TruthParticles"
,
"ReadHandleKey for input TruthParticleContainer"
};
38
// Decorator keys
39
SG::WriteDecorHandleKey<xAOD::TruthParticleContainer>
m_originDecoratorKey
40
{
this
,
"classifierParticleOrigin"
,
m_particlesKey
,
"TopHadronOriginFlag"
,
"Top Hadron origin decoration"
};
41
PublicToolHandle<DerivationFramework::HadronOriginClassifier>
m_Tool
{
this
,
"ToolName"
,
""
};
42
43
44
};
45
46
}
47
48
49
#endif
AthAlgTool.h
TruthParticleContainer.h
HadronOriginClassifier.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::HadronOriginDecorator
Definition
HadronOriginDecorator.h:27
DerivationFramework::HadronOriginDecorator::m_Tool
PublicToolHandle< DerivationFramework::HadronOriginClassifier > m_Tool
Definition
HadronOriginDecorator.h:41
DerivationFramework::HadronOriginDecorator::m_particlesKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_particlesKey
Definition
HadronOriginDecorator.h:37
DerivationFramework::HadronOriginDecorator::initialize
virtual StatusCode initialize() override final
Definition
HadronOriginDecorator.cxx:10
DerivationFramework::HadronOriginDecorator::m_originDecoratorKey
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_originDecoratorKey
Definition
HadronOriginDecorator.h:40
DerivationFramework::HadronOriginDecorator::addBranches
virtual StatusCode addBranches(const EventContext &ctx) const override final
Definition
HadronOriginDecorator.cxx:18
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