ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
D3PDMaker
egammaD3PDAnalysis
src
egammaTruthAlg.h
Go to the documentation of this file.
1
// This file's extension implies that it's C, but it's really -*- C++ -*-.
2
/*
3
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
4
*/
11
12
13
#ifndef EGAMMAD3PDANALYSIS_EGAMMATRUTHALG_H
14
#define EGAMMAD3PDANALYSIS_EGAMMATRUTHALG_H
15
16
17
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
18
#include "
xAODTruth/TruthParticle.h
"
19
#include "
xAODTruth/TruthParticleContainer.h
"
20
#include "
RecoToolInterfaces/IParticleCaloExtensionTool.h
"
21
#include "
StoreGate/ReadHandleKey.h
"
22
#include "
StoreGate/WriteHandleKey.h
"
23
24
#include "GaudiKernel/ToolHandle.h"
25
#include <string>
26
27
28
namespace
D3PD
{
29
30
34
class
egammaTruthAlg
35
:
public
AthReentrantAlgorithm
36
{
37
public
:
43
egammaTruthAlg
(
const
std::string& name,
44
ISvcLocator* svcloc);
45
46
48
virtual
StatusCode
initialize
()
override
;
49
50
52
virtual
StatusCode
execute
(
const
EventContext& ctx)
const override
;
53
54
55
private
:
62
bool
isAccepted
(
const
xAOD::TruthParticle
& tp,
63
const
xAOD::TruthParticleContainer
& cont,
64
float
& iso)
const
;
65
66
72
float
computeIso
(
const
xAOD::TruthParticle
& tp,
73
const
xAOD::TruthParticleContainer
& cont)
const
;
74
75
84
StatusCode
findImpact
(
const
xAOD::TruthParticle
& tp,
85
float
& etaCalo,
86
float
& phiCalo,
87
float
& depthCalo)
const
;
88
89
91
std::string
m_auxPrefix
;
92
94
SG::ReadHandleKey<xAOD::TruthParticleContainer>
m_inputKey
95
{
this
,
"InputKey"
,
""
,
"SG key for the input container."
};
96
98
SG::WriteHandleKey<xAOD::TruthParticleContainer>
m_outputKey
99
{
this
,
"OutputKey"
,
""
,
"SG key for the output container."
};
100
102
float
m_electronPtMin
;
103
105
float
m_photonPtMin
;
106
108
float
m_etaMax
;
109
111
float
m_isoCone
;
112
114
float
m_photonEtIsoMax
;
115
117
ToolHandle<Trk::IParticleCaloExtensionTool>
m_exten
118
{
this
,
"ParticleCaloExtensionTool"
,
""
,
"Extrapolator to calorimeter."
};
119
};
120
121
122
}
// namespace D3PD
123
124
125
#endif
// not EGAMMAD3PDANALYSIS_EGAMMATRUTHALG_H
AthReentrantAlgorithm.h
TruthParticleContainer.h
TruthParticle.h
IParticleCaloExtensionTool.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
D3PD::egammaTruthAlg::m_photonEtIsoMax
float m_photonEtIsoMax
Property: Maximum isolation cone energy allowed to keep a photon.
Definition
egammaTruthAlg.h:114
D3PD::egammaTruthAlg::computeIso
float computeIso(const xAOD::TruthParticle &tp, const xAOD::TruthParticleContainer &cont) const
Compute isolation around a particle.
Definition
egammaTruthAlg.cxx:168
D3PD::egammaTruthAlg::m_outputKey
SG::WriteHandleKey< xAOD::TruthParticleContainer > m_outputKey
Property: Name of the output container.
Definition
egammaTruthAlg.h:99
D3PD::egammaTruthAlg::m_electronPtMin
float m_electronPtMin
Property: Minimum pt for electrons.
Definition
egammaTruthAlg.h:102
D3PD::egammaTruthAlg::m_etaMax
float m_etaMax
Property: Maximum eta.
Definition
egammaTruthAlg.h:108
D3PD::egammaTruthAlg::egammaTruthAlg
egammaTruthAlg(const std::string &name, ISvcLocator *svcloc)
Standard Gaudi algorithm constructor.
Definition
egammaTruthAlg.cxx:41
D3PD::egammaTruthAlg::m_inputKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_inputKey
Property: Name of the input container.
Definition
egammaTruthAlg.h:95
D3PD::egammaTruthAlg::m_isoCone
float m_isoCone
Property: Isolation cone width.
Definition
egammaTruthAlg.h:111
D3PD::egammaTruthAlg::m_auxPrefix
std::string m_auxPrefix
Property: Prefix to add to aux data items.
Definition
egammaTruthAlg.h:91
D3PD::egammaTruthAlg::findImpact
StatusCode findImpact(const xAOD::TruthParticle &tp, float &etaCalo, float &phiCalo, float &depthCalo) const
Find the impact of a particle in the calorimeter.
Definition
egammaTruthAlg.cxx:191
D3PD::egammaTruthAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Standard Gaudi execute method.
Definition
egammaTruthAlg.cxx:78
D3PD::egammaTruthAlg::isAccepted
bool isAccepted(const xAOD::TruthParticle &tp, const xAOD::TruthParticleContainer &cont, float &iso) const
Test to see if we accept a particle.
Definition
egammaTruthAlg.cxx:120
D3PD::egammaTruthAlg::m_exten
ToolHandle< Trk::IParticleCaloExtensionTool > m_exten
Property: Extrapolation tool to calorimeter.
Definition
egammaTruthAlg.h:118
D3PD::egammaTruthAlg::initialize
virtual StatusCode initialize() override
Standard Gaudi initialize method.
Definition
egammaTruthAlg.cxx:64
D3PD::egammaTruthAlg::m_photonPtMin
float m_photonPtMin
Property: Minimum pt for photons.
Definition
egammaTruthAlg.h:105
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
D3PD
Block filler tool for noisy FEB information.
Definition
CaloCellDetailsFillerTool.cxx:29
xAOD::TruthParticle
TruthParticle_v1 TruthParticle
Typedef to implementation.
Definition
Event/xAOD/xAODTruth/xAODTruth/TruthParticle.h:15
xAOD::TruthParticleContainer
TruthParticleContainer_v1 TruthParticleContainer
Declare the latest version of the truth particle container.
Definition
Event/xAOD/xAODTruth/xAODTruth/TruthParticleContainer.h:17
Generated on
for ATLAS Offline Software by
1.17.0