ATLAS Offline Software
Loading...
Searching...
No Matches
xAODTruthReader.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 XAODCREATORALGS_XAODTRUTHREADER_H
6#define XAODCREATORALGS_XAODTRUTHREADER_H
7
9
12
13namespace xAODReader {
14
15
20 public:
21
23 xAODTruthReader(const std::string& name, ISvcLocator* svcLoc);
24
26 virtual StatusCode initialize();
27
29 virtual StatusCode execute(const EventContext& ctx) const;
30
31
32 private:
33
36 this, "xAODTruthEventContainerKey", "TruthEvents", "The input TruthEventContainer"};
37 // SG::ReadHandleKey<xAOD::TruthPileupEventContainer> m_xaodTruthPUEventContainerKey{
38 // this, "xAODTruthPileupEventContainerKey", "TruthPileupEvents", "The input TruthEventContainer for pileup"};
39 Gaudi::Property<bool> m_doPUEventPrintout{this, "DoPUEventPrintout", false};
40
42 Gaudi::Property<bool> m_do4momPtEtaPhi{this, "Do4momPtEtaPhi", false};
43
44
45 static void printEvent(const xAOD::TruthEventBase* evt, bool do4momPtEtaPhi);
46 static void printVertex(const xAOD::TruthVertex* vtx, bool do4momPtEtaPhi);
47 static void printParticle(const xAOD::TruthParticle* part, bool do4momPtEtaPhi);
48
49 }; // class xAODTruthReader
50
51
52} // namespace xAODReader
53
54#endif // XAODCREATORALGS_XAODTRUTHREADER_H
An algorithm that can be simultaneously executed in multiple threads.
Property holding a SG store/key/clid from which a ReadHandle is made.
virtual StatusCode initialize()
Function initialising the algorithm.
static void printEvent(const xAOD::TruthEventBase *evt, bool do4momPtEtaPhi)
SG::ReadHandleKey< xAOD::TruthEventContainer > m_xaodTruthEventContainerKey
The keys for the input xAOD truth containers.
Gaudi::Property< bool > m_doPUEventPrintout
xAODTruthReader(const std::string &name, ISvcLocator *svcLoc)
Regular algorithm constructor.
static void printParticle(const xAOD::TruthParticle *part, bool do4momPtEtaPhi)
Gaudi::Property< bool > m_do4momPtEtaPhi
Flag to printout in pt,eta,phi instead of px,py,pz.
static void printVertex(const xAOD::TruthVertex *vtx, bool do4momPtEtaPhi)
virtual StatusCode execute(const EventContext &ctx) const
Function executing the algorithm.
TruthEventBase_v1 TruthEventBase
Typedef to implementation.
TruthVertex_v1 TruthVertex
Typedef to implementation.
Definition TruthVertex.h:15
TruthParticle_v1 TruthParticle
Typedef to implementation.