ATLAS Offline Software
RootTruthParticleCnvTool.h
Go to the documentation of this file.
1 
3 /*
4  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef MCPARTICLEEVENTTPCNV_ROOTTRUTHPARTICLECNVTOOL_H
8 #define MCPARTICLEEVENTTPCNV_ROOTTRUTHPARTICLECNVTOOL_H
9 
11 #include "Gaudi/Property.h"
12 
14  : public implements<ITruthParticleCnvTool>
15 {
16 public:
19 
21  virtual StatusCode execute() const override;
22  virtual StatusCode execute (const EventContext& ctx) const override;
23 
32  virtual
33  StatusCode convert( const McEventCollection* mcEvts,
34  const unsigned int genEvtIndex,
35  TruthParticleContainer* mcParts,
36  const ITruthParticleVisitor* visitor ) const override;
37 
39 
42  double chargeFromPdgId( int pdgId ) const;
43 
46  virtual StatusCode setProperty( const std::string& s ) override;
47  virtual StatusCode setProperty( const std::string& name, const Gaudi::Details::PropertyBase& p ) override;
48  virtual StatusCode setPropertyRepr( const std::string& n, const std::string& r ) override;
49 
50  virtual StatusCode getProperty( Gaudi::Details::PropertyBase* p ) const override;
51  virtual const Gaudi::Details::PropertyBase& getProperty( std::string_view name ) const override;
52  virtual StatusCode getProperty( std::string_view n, std::string& v ) const override;
53  virtual const std::vector<Gaudi::Details::PropertyBase*>& getProperties( ) const override;
54  virtual bool hasProperty(std::string_view name) const override;
56 
59  virtual const std::string& type() const override;
60  virtual const IInterface* parent() const override;
61  virtual StatusCode configure() override;
62  virtual StatusCode initialize() override;
63  virtual StatusCode sysInitialize() override;
64  virtual StatusCode reinitialize() override;
65  virtual StatusCode sysReinitialize() override;
66  virtual StatusCode start() override;
67  virtual StatusCode sysStart() override;
68  virtual StatusCode restart() override;
69  virtual StatusCode sysRestart() override;
70  virtual StatusCode stop() override;
71  virtual StatusCode sysStop() override;
72  virtual StatusCode finalize() override;
73  virtual StatusCode sysFinalize() override;
74  virtual StatusCode terminate() override;
75  virtual Gaudi::StateMachine::State FSMState() const override;
77 
80  virtual const std::string& name() const override;
82 
83 };
84 
85 #endif // not MCPARTICLEEVENTTPCNV_ROOTTRUTHPARTICLECNVTOOL_H
RootTruthParticleCnvTool::sysRestart
virtual StatusCode sysRestart() override
Definition: RootTruthParticleCnvTool.cxx:164
beamspotman.r
def r
Definition: beamspotman.py:676
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
ITruthParticleCnvTool.h
RootTruthParticleCnvTool::restart
virtual StatusCode restart() override
Definition: RootTruthParticleCnvTool.cxx:163
RootTruthParticleCnvTool::convert
virtual StatusCode convert(const McEventCollection *mcEvts, const unsigned int genEvtIndex, TruthParticleContainer *mcParts, const ITruthParticleVisitor *visitor) const override
Converts a McEventCollection into an TruthParticleContainer (ie: converts it into an AOD compliant co...
Definition: RootTruthParticleCnvTool.cxx:27
RootTruthParticleCnvTool::name
virtual const std::string & name() const override
Definition: RootTruthParticleCnvTool.cxx:181
RootTruthParticleCnvTool::reinitialize
virtual StatusCode reinitialize() override
Definition: RootTruthParticleCnvTool.cxx:159
RootTruthParticleCnvTool::FSMState
virtual Gaudi::StateMachine::State FSMState() const override
Definition: RootTruthParticleCnvTool.cxx:170
RootTruthParticleCnvTool::parent
virtual const IInterface * parent() const override
Definition: RootTruthParticleCnvTool.cxx:155
RootTruthParticleCnvTool
Definition: RootTruthParticleCnvTool.h:15
RootTruthParticleCnvTool::setPropertyRepr
virtual StatusCode setPropertyRepr(const std::string &n, const std::string &r) override
Definition: RootTruthParticleCnvTool.cxx:134
RootTruthParticleCnvTool::stop
virtual StatusCode stop() override
Definition: RootTruthParticleCnvTool.cxx:165
TruthParticleContainer
Definition: PhysicsAnalysis/TruthParticleID/McParticleEvent/McParticleEvent/TruthParticleContainer.h:42
RootTruthParticleCnvTool::start
virtual StatusCode start() override
Definition: RootTruthParticleCnvTool.cxx:161
RootTruthParticleCnvTool::getProperty
virtual StatusCode getProperty(Gaudi::Details::PropertyBase *p) const override
Definition: RootTruthParticleCnvTool.cxx:135
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
ITruthParticleVisitor
Definition: ITruthParticleVisitor.h:30
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
MuonR4::State
CalibratedSpacePoint::State State
Definition: SpacePointCalibrator.cxx:24
RootTruthParticleCnvTool::terminate
virtual StatusCode terminate() override
Definition: RootTruthParticleCnvTool.cxx:169
RootTruthParticleCnvTool::sysStop
virtual StatusCode sysStop() override
Definition: RootTruthParticleCnvTool.cxx:166
McEventCollection
This defines the McEventCollection, which is really just an ObjectVector of McEvent objects.
Definition: McEventCollection.h:33
RootTruthParticleCnvTool::configure
virtual StatusCode configure() override
Definition: RootTruthParticleCnvTool.cxx:156
RootTruthParticleCnvTool::type
virtual const std::string & type() const override
Definition: RootTruthParticleCnvTool.cxx:154
RootTruthParticleCnvTool::chargeFromPdgId
double chargeFromPdgId(int pdgId) const
Helper method to get the charge of a particle given its PDG Id.
Definition: RootTruthParticleCnvTool.cxx:120
RootTruthParticleCnvTool::finalize
virtual StatusCode finalize() override
Definition: RootTruthParticleCnvTool.cxx:167
RootTruthParticleCnvTool::sysFinalize
virtual StatusCode sysFinalize() override
Definition: RootTruthParticleCnvTool.cxx:168
python.PyAthena.v
v
Definition: PyAthena.py:154
RootTruthParticleCnvTool::getProperties
virtual const std::vector< Gaudi::Details::PropertyBase * > & getProperties() const override
Definition: RootTruthParticleCnvTool.cxx:142
RootTruthParticleCnvTool::sysReinitialize
virtual StatusCode sysReinitialize() override
Definition: RootTruthParticleCnvTool.cxx:160
RootTruthParticleCnvTool::execute
virtual StatusCode execute() const override
A hook for Athena algorithms.
Definition: RootTruthParticleCnvTool.cxx:23
RootTruthParticleCnvTool::initialize
virtual StatusCode initialize() override
Definition: RootTruthParticleCnvTool.cxx:157
RootTruthParticleCnvTool::sysInitialize
virtual StatusCode sysInitialize() override
Definition: RootTruthParticleCnvTool.cxx:158
RootTruthParticleCnvTool::hasProperty
virtual bool hasProperty(std::string_view name) const override
Definition: RootTruthParticleCnvTool.cxx:143
RootTruthParticleCnvTool::setProperty
virtual StatusCode setProperty(const std::string &s) override
Definition: RootTruthParticleCnvTool.cxx:131
RootTruthParticleCnvTool::sysStart
virtual StatusCode sysStart() override
Definition: RootTruthParticleCnvTool.cxx:162