ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
AnalysisCommon
ParticleJetTools
ParticleJetTools
CopyTruthParticles.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef COPYTRUTHPARTICLES_H
6
#define COPYTRUTHPARTICLES_H
7
8
#include "
AsgTools/AsgTool.h
"
9
#include "
AsgTools/PropertyWrapper.h
"
10
#include "
JetInterface/IJetExecuteTool.h
"
11
#include "
xAODTruth/TruthParticleContainer.h
"
12
#include "
xAODTruth/TruthEventContainer.h
"
13
#include "
AthContainers/ConstDataVector.h
"
14
#include "
AsgDataHandles/ReadHandleKey.h
"
15
#include "
AsgDataHandles/WriteHandleKey.h
"
16
17
// Do I need IAsgTool? I need AsgTool for the eventStore()
18
class
CopyTruthParticles
:
public
IJetExecuteTool
,
public
asg::AsgTool
{
19
ASG_TOOL_INTERFACE
(
CopyTruthParticles
)
20
ASG_TOOL_CLASS
(
CopyTruthParticles
,
IJetExecuteTool
)
21
public
:
22
24
CopyTruthParticles
(
const
std::string& name);
25
27
28
virtual
int
execute
()
const
;
29
30
virtual
StatusCode
initialize
();
32
33
35
virtual
bool
classify
(
const
xAOD::TruthParticle
* tp)
const
= 0;
36
37
38
protected
:
40
Gaudi::Property<float>
m_ptmin
{
this
,
"PtMin"
, 0. ,
"Minimum pT of particles to be accepted for tagging (in MeV)"
};
41
43
SG::ReadHandleKey<xAOD::TruthEventContainer>
m_truthEventKey
{
this
,
"TruthEventKey"
,
"TruthEvents"
,
"SG Key for input truth event container"
};
44
46
SG::WriteHandleKey<ConstDataVector<xAOD::TruthParticleContainer>
>
m_outTruthPartKey
{
this
,
"OutputName"
,
"TagInputs"
,
"Name of the resulting TruthParticle collection"
};
47
48
};
49
50
51
#endif
ASG_TOOL_INTERFACE
#define ASG_TOOL_INTERFACE(CLASSNAME)
Definition
AsgToolMacros.h:40
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition
AsgToolMacros.h:68
AsgTool.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.
ConstDataVector.h
DataVector adapter that acts like it holds const pointers.
TruthParticleContainer.h
IJetExecuteTool.h
PropertyWrapper.h
TruthEventContainer.h
CopyTruthParticles::m_outTruthPartKey
SG::WriteHandleKey< ConstDataVector< xAOD::TruthParticleContainer > > m_outTruthPartKey
Key for output truth particles.
Definition
CopyTruthParticles.h:46
CopyTruthParticles::classify
virtual bool classify(const xAOD::TruthParticle *tp) const =0
Classifier function(s).
CopyTruthParticles::CopyTruthParticles
CopyTruthParticles(const std::string &name)
Constructor.
Definition
CopyTruthParticles.cxx:15
CopyTruthParticles::initialize
virtual StatusCode initialize()
Dummy implementation of the initialisation function.
Definition
CopyTruthParticles.cxx:18
CopyTruthParticles::m_ptmin
Gaudi::Property< float > m_ptmin
Minimum pT for particle selection (in MeV).
Definition
CopyTruthParticles.h:40
CopyTruthParticles::execute
virtual int execute() const
Method to be called for each event.
Definition
CopyTruthParticles.cxx:26
CopyTruthParticles::m_truthEventKey
SG::ReadHandleKey< xAOD::TruthEventContainer > m_truthEventKey
Key for input truth event.
Definition
CopyTruthParticles.h:43
IJetExecuteTool
IJetExecuteTool is a dual-use tool interface for generic tools, i.e. those that behave like algorithm...
Definition
IJetExecuteTool.h:19
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
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition
AsgTool.h:47
xAOD::TruthParticle
TruthParticle_v1 TruthParticle
Typedef to implementation.
Definition
Event/xAOD/xAODTruth/xAODTruth/TruthParticle.h:15
Generated on
for ATLAS Offline Software by
1.17.0