ATLAS Offline Software
TrackParticleTruthAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRACKPARTICLETRUTHALG_H
6 #define TRACKPARTICLETRUTHALG_H
7 
8 
10 #include "GaudiKernel/ToolHandle.h"
17 
19 public:
20  TrackParticleTruthAlg(const std::string &name,ISvcLocator *pSvcLocator);
21 
22  virtual StatusCode initialize() override;
23  virtual StatusCode execute() override;
24  virtual StatusCode finalize() override;
25 
26 private:
27 
31  std::string m_particleName;
32  SG::ReadHandleKey<xAODTruthParticleLinkVector> m_truthParticleLinkVecKey;//std::string m_truthLinkVecName; /// link vector to map HepMC onto xAOD truth
33  SG::ReadHandleKey<TrackTruthCollection> m_truthTracksKey;//std::string m_truthName; /// Track(Particle)TruthCollection input name
34 
35 
36  ToolHandle<IMCTruthClassifier> m_truthClassifier;
37 };
38 
39 #endif/*TRACKTRUTHSELECTOR_H*/
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer >
TrackParticleTruthAlg::TrackParticleTruthAlg
TrackParticleTruthAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: TrackParticleTruthAlg.cxx:16
TrackParticleTruthAlg::m_particlesTypeKey
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_particlesTypeKey
Definition: TrackParticleTruthAlg.h:29
SG::ReadHandleKey< xAODTruthParticleLinkVector >
TrackParticleTruthAlg::m_truthTracksKey
SG::ReadHandleKey< TrackTruthCollection > m_truthTracksKey
Definition: TrackParticleTruthAlg.h:33
TrackParticleTruthAlg::m_particlesLinkKey
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_particlesLinkKey
Definition: TrackParticleTruthAlg.h:28
TrackParticleTruthAlg::m_particlesOriginKey
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_particlesOriginKey
Definition: TrackParticleTruthAlg.h:30
AthAlgorithm.h
IMCTruthClassifier.h
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
TrackTruthCollection.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TrackParticleTruthAlg::m_truthParticleLinkVecKey
SG::ReadHandleKey< xAODTruthParticleLinkVector > m_truthParticleLinkVecKey
TrackParticle input name.
Definition: TrackParticleTruthAlg.h:32
TrackParticleTruthAlg::execute
virtual StatusCode execute() override
Definition: TrackParticleTruthAlg.cxx:57
AthAlgorithm
Definition: AthAlgorithm.h:47
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
TrackParticleTruthAlg
Definition: TrackParticleTruthAlg.h:18
TrackParticleTruthAlg::finalize
virtual StatusCode finalize() override
Definition: TrackParticleTruthAlg.cxx:52
TrackParticleTruthAlg::m_truthClassifier
ToolHandle< IMCTruthClassifier > m_truthClassifier
Definition: TrackParticleTruthAlg.h:36
TrackParticleTruthAlg::m_particleName
std::string m_particleName
Definition: TrackParticleTruthAlg.h:31
TrackParticleTruthAlg::initialize
virtual StatusCode initialize() override
Definition: TrackParticleTruthAlg.cxx:36
TrackParticleContainer.h