ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
DerivationFramework
DerivationFrameworkMuons
src
MuonTruthClassifierFallback.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef DERIVATIONFRAMEWORK_MuonTruthClassifierFallback_H
5
#define DERIVATIONFRAMEWORK_MuonTruthClassifierFallback_H
6
7
#include <string>
8
#include <vector>
9
10
// Gaudi & Athena basics
11
#include "
AthenaBaseComps/AthAlgTool.h
"
12
#include "
DerivationFrameworkInterfaces/IAugmentationTool.h
"
13
#include "GaudiKernel/ToolHandle.h"
14
#include "
MCTruthClassifier/IMCTruthClassifier.h
"
15
#include "
StoreGate/ReadHandleKey.h
"
16
#include "
StoreGate/WriteDecorHandleKey.h
"
17
#include "
xAODBase/IParticleContainer.h
"
18
#include "
xAODTruth/TruthEventContainer.h
"
19
#include "
xAODTruth/TruthPileupEventContainer.h
"
20
21
namespace
DerivationFramework
{
22
class
MuonTruthClassifierFallback
:
public
extends<AthAlgTool, IAugmentationTool> {
23
public
:
24
25
using
base_class::base_class;
26
27
// Athena algtool's Hooks
28
virtual
StatusCode
initialize
()
override
;
29
30
virtual
StatusCode
addBranches
(
const
EventContext& ctx)
const override
;
31
32
private
:
33
SG::ReadHandleKey<xAOD::IParticleContainer>
m_containerKey
{
this
,
"ContainerKey"
,
""
,
"Key of the container to be decorated"
};
34
SG::ReadHandleKey<xAOD::TruthEventContainer>
m_truthSGKey
{
this
,
"TruthSGKey"
,
"TruthEvents"
,
"Key of the truth event container"
};
35
SG::ReadHandleKey<xAOD::TruthPileupEventContainer>
m_truthPileupSGKey
{
this
,
"TruthPileupContainerKey"
,
"TruthPileupEvents"
,
36
"Key of the pile-up event container"
};
37
SG::ReadHandleKey<xAOD::TruthParticleContainer>
m_truthMuonSGKey
{
this
,
"TruthMuonContainerKey"
,
"MuonTruthParticles"
,
""
};
38
39
// FIXME These WriteDecorHandles are not being used. The
40
// Decorators defined at the top of the .cxx are (incorrectly)
41
// used instead.
42
SG::WriteDecorHandleKey<xAOD::IParticleContainer>
m_Truth_dR_Key
{
43
this
,
"dRDecoration"
,
m_containerKey
,
"MCTFallback_dR"
};
44
SG::WriteDecorHandleKey<xAOD::IParticleContainer>
m_Truth_type_Key
{
45
this
,
"typeDecoration"
,
m_containerKey
,
"MCTFallback_truthType"
};
46
SG::WriteDecorHandleKey<xAOD::IParticleContainer>
m_Truth_origin_Key
{
47
this
,
"originDecoration"
,
m_containerKey
,
"MCTFallback_truthOrigin"
};
48
SG::WriteDecorHandleKey<xAOD::IParticleContainer>
m_Truth_PU_dR_Key
{
49
this
,
"dRDecorationPU"
,
m_containerKey
,
"MCTFallbackPU_dR"
};
50
SG::WriteDecorHandleKey<xAOD::IParticleContainer>
m_Truth_PU_type_Key
{
51
this
,
"typeDecorationPU"
,
m_containerKey
,
"MCTFallbackPU_truthType"
};
52
SG::WriteDecorHandleKey<xAOD::IParticleContainer>
m_Truth_PU_origin_Key
{
53
this
,
"originDecorationPU"
,
m_containerKey
,
"MCTFallbackPU_truthOrigin"
};
54
55
Gaudi::Property<float>
m_minPt
{
this
,
"MinPt"
, 2500};
56
57
ToolHandle<IMCTruthClassifier>
m_mcTruthClassifier
{
this
,
"MCTruthClassifierTool"
,
""
,
"Handle of the MC truth classifier"
};
58
};
59
}
// namespace DerivationFramework
60
#endif
//
AthAlgTool.h
IAugmentationTool.h
IMCTruthClassifier.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.
TruthEventContainer.h
TruthPileupEventContainer.h
DerivationFramework::MuonTruthClassifierFallback
Definition
MuonTruthClassifierFallback.h:22
DerivationFramework::MuonTruthClassifierFallback::m_mcTruthClassifier
ToolHandle< IMCTruthClassifier > m_mcTruthClassifier
Definition
MuonTruthClassifierFallback.h:57
DerivationFramework::MuonTruthClassifierFallback::m_minPt
Gaudi::Property< float > m_minPt
Definition
MuonTruthClassifierFallback.h:55
DerivationFramework::MuonTruthClassifierFallback::m_truthPileupSGKey
SG::ReadHandleKey< xAOD::TruthPileupEventContainer > m_truthPileupSGKey
Definition
MuonTruthClassifierFallback.h:35
DerivationFramework::MuonTruthClassifierFallback::m_truthSGKey
SG::ReadHandleKey< xAOD::TruthEventContainer > m_truthSGKey
Definition
MuonTruthClassifierFallback.h:34
DerivationFramework::MuonTruthClassifierFallback::m_Truth_type_Key
SG::WriteDecorHandleKey< xAOD::IParticleContainer > m_Truth_type_Key
Definition
MuonTruthClassifierFallback.h:44
DerivationFramework::MuonTruthClassifierFallback::initialize
virtual StatusCode initialize() override
Definition
MuonTruthClassifierFallback.cxx:27
DerivationFramework::MuonTruthClassifierFallback::m_Truth_origin_Key
SG::WriteDecorHandleKey< xAOD::IParticleContainer > m_Truth_origin_Key
Definition
MuonTruthClassifierFallback.h:46
DerivationFramework::MuonTruthClassifierFallback::addBranches
virtual StatusCode addBranches(const EventContext &ctx) const override
Definition
MuonTruthClassifierFallback.cxx:49
DerivationFramework::MuonTruthClassifierFallback::m_Truth_dR_Key
SG::WriteDecorHandleKey< xAOD::IParticleContainer > m_Truth_dR_Key
Definition
MuonTruthClassifierFallback.h:42
DerivationFramework::MuonTruthClassifierFallback::m_Truth_PU_dR_Key
SG::WriteDecorHandleKey< xAOD::IParticleContainer > m_Truth_PU_dR_Key
Definition
MuonTruthClassifierFallback.h:48
DerivationFramework::MuonTruthClassifierFallback::m_containerKey
SG::ReadHandleKey< xAOD::IParticleContainer > m_containerKey
Definition
MuonTruthClassifierFallback.h:33
DerivationFramework::MuonTruthClassifierFallback::m_Truth_PU_origin_Key
SG::WriteDecorHandleKey< xAOD::IParticleContainer > m_Truth_PU_origin_Key
Definition
MuonTruthClassifierFallback.h:52
DerivationFramework::MuonTruthClassifierFallback::m_truthMuonSGKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthMuonSGKey
Definition
MuonTruthClassifierFallback.h:37
DerivationFramework::MuonTruthClassifierFallback::m_Truth_PU_type_Key
SG::WriteDecorHandleKey< xAOD::IParticleContainer > m_Truth_PU_type_Key
Definition
MuonTruthClassifierFallback.h:50
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
IParticleContainer.h
Generated on
for ATLAS Offline Software by
1.17.0