ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODTruthCnv
src
HepMCTruthReader.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 HEPMCTRUTHREADER_H
6
#define HEPMCTRUTHREADER_H
7
8
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
9
10
#include "
AtlasHepMC/GenEvent_fwd.h
"
11
#include "
AtlasHepMC/GenVertex_fwd.h
"
12
#include "
AtlasHepMC/GenParticle_fwd.h
"
13
#include "
StoreGate/ReadHandleKey.h
"
14
15
#include "
GeneratorObjects/McEventCollection.h
"
16
17
20
class
HepMCTruthReader
:
public
AthReentrantAlgorithm
{
21
public
:
22
24
HepMCTruthReader
(
const
std::string& name, ISvcLocator* svcLoc);
25
27
virtual
StatusCode
initialize
();
28
30
virtual
StatusCode
execute
(
const
EventContext& ctx)
const
;
31
32
33
private
:
34
36
SG::ReadHandleKey<McEventCollection>
m_hepMCContainerKey
{
37
this
,
"HepMCContainerKey"
,
"GEN_EVENT"
,
"The input McEvenCollection"
};
38
40
Gaudi::Property<bool>
m_do4momPtEtaPhi
{
this
,
"Do4momPtEtaPhi"
,
false
};
41
42
static
void
printEvent
(
const
HepMC::GenEvent
* evt,
bool
do4momPtEtaPhi);
43
static
void
printVertex
(
const
HepMC::ConstGenVertexPtr
& vtx,
bool
do4momPtEtaPhi );
44
static
void
printParticle
(
const
HepMC::ConstGenParticlePtr
& part,
bool
do4momPtEtaPhi);
45
46
};
// class HepMCTruthReader
47
48
49
50
#endif
// HEPMCTRUTHREADER_H
AthReentrantAlgorithm.h
GenEvent_fwd.h
GenParticle_fwd.h
GenVertex_fwd.h
McEventCollection.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
HepMCTruthReader::printVertex
static void printVertex(const HepMC::ConstGenVertexPtr &vtx, bool do4momPtEtaPhi)
Definition
HepMCTruthReader.cxx:81
HepMCTruthReader::initialize
virtual StatusCode initialize()
Function initialising the algorithm.
Definition
HepMCTruthReader.cxx:25
HepMCTruthReader::HepMCTruthReader
HepMCTruthReader(const std::string &name, ISvcLocator *svcLoc)
Regular algorithm constructor.
Definition
HepMCTruthReader.cxx:20
HepMCTruthReader::m_do4momPtEtaPhi
Gaudi::Property< bool > m_do4momPtEtaPhi
Flag to printout in pt,eta,phi instead of px,py,pz.
Definition
HepMCTruthReader.h:40
HepMCTruthReader::printEvent
static void printEvent(const HepMC::GenEvent *evt, bool do4momPtEtaPhi)
Definition
HepMCTruthReader.cxx:67
HepMCTruthReader::m_hepMCContainerKey
SG::ReadHandleKey< McEventCollection > m_hepMCContainerKey
The key of the input HepMC truth container.
Definition
HepMCTruthReader.h:36
HepMCTruthReader::printParticle
static void printParticle(const HepMC::ConstGenParticlePtr &part, bool do4momPtEtaPhi)
Definition
HepMCTruthReader.cxx:178
HepMCTruthReader::execute
virtual StatusCode execute(const EventContext &ctx) const
Function executing the algorithm.
Definition
HepMCTruthReader.cxx:35
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
HepMC::ConstGenParticlePtr
HepMC3::ConstGenParticlePtr ConstGenParticlePtr
Definition
GenParticle.h:20
HepMC::ConstGenVertexPtr
HepMC3::ConstGenVertexPtr ConstGenVertexPtr
Definition
GenVertex.h:24
HepMC::GenEvent
HepMC3::GenEvent GenEvent
Definition
GenEvent.h:39
Generated on
for ATLAS Offline Software by
1.17.0