|
ATLAS Offline Software
|
Go to the documentation of this file.
8 #ifndef XAODCREATORALGS_TRACKPARTICLECREATOR_H
9 #define XAODCREATORALGS_TRACKPARTICLECREATOR_H
16 #include "GaudiKernel/ToolHandle.h"
73 ToolHandle<Trk::ITrackParticleCreatorTool>
m_particleCreator{
this,
"TrackParticleCreator",
"Trk::TrackParticleCreatorTool/TrackParticleCreatorTool" };
78 "MCTruthClassifier/MCTruthClassifier",
79 " MCTruthClassifier Instance to use "
83 ToolHandle<xAODMaker::ITrackCollectionCnvTool>
m_TrackCollectionCnvTool{
this,
"TrackCollectionCnvTool",
"xAODMaker::TrackCollectionCnvTool/TrackCollectionCnvTool"};
84 ToolHandle<xAODMaker::IRecTrackParticleContainerCnvTool>
86 "RecTrackParticleContainerCnvTool" };
113 ToolHandle<GenericMonitoringTool >
m_monTool {
this,
"MonTool",
"",
"Monitoring tool" };
126 template<
typename CONT,
typename TRUTHCONT,
typename CONVTOOL>
143 const EventContext& ctx);
149 #endif // XAODCREATORALGS_TRACKPARTICLECREATOR_H
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_xaodTruthLinkKey
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_xaodTruthOriginKey
ToolHandle< ITrackParticleMonitoring > m_trackMonitoringTool
virtual StatusCode initialize()
Function initialising the algorithm.
Gaudi::Property< bool > m_augmentObservedTracks
xAOD::TrackParticle * createParticle(xAOD::TrackParticleContainer &xaod, const Rec::TrackParticleContainer &container, const Rec::TrackParticle &tp)
ToolHandle< IMCTruthClassifier > m_truthClassifier
ToolHandle to truth classifier.
Gaudi::Property< bool > m_convertAODTrackParticles
toggle on converting AOD track particles to xAOD
SG::WriteHandleKey< xAOD::TrackParticleContainer > m_xaodTrackParticlesout
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_xaodTruthMatchProbKey
SG::ReadHandleKey< ObservedTrackMap > m_tracksMap
An algorithm that can be simultaneously executed in multiple threads.
std::map< int, std::tuple< Trk::Track *, double, xAOD::RejectionStep, xAOD::RejectionReason, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, float, float, int, std::vector< xAOD::RejectionStep >, std::vector< xAOD::RejectionReason > > > ObservedTrackMap
Algorithm creating xAOD::TrackParticles from TrackParticles.
SG::ReadHandleKey< Rec::TrackParticleContainer > m_aod
SG::ReadHandleKey< TrackTruthCollection > m_trackTruth
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Property< bool > m_addTruthLink
toggle on adding truth links
SG::ReadHandleKey< TrackParticleTruthCollection > m_aodTruth
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_xaodTruthTypeKey
virtual StatusCode execute(const EventContext &ctx) const
Function executing the algorithm.
ToolHandle< xAODMaker::ITrackCollectionCnvTool > m_TrackCollectionCnvTool
Gaudi::Property< bool > m_doMonitoring
int convert(const CONT &, const TRUTHCONT &, CONVTOOL &tool, SG::WriteHandle< xAOD::TrackParticleContainer > &, const xAODTruthParticleLinkVector *, const xAOD::Vertex *primaryVertex=nullptr, const ObservedTrackMap *obs_track_map=0) const
ToolHandle< GenericMonitoringTool > m_monTool
ToolHandle< xAODMaker::IRecTrackParticleContainerCnvTool > m_RecTrackParticleContainerCnvTool
SG::ReadHandleKey< xAODTruthParticleLinkVector > m_truthParticleLinkVec
Gaudi::Property< bool > m_convertTracks
toggle on converting tracks to xAOD
SG::ReadHandleKey< TrackCollection > m_tracks
Class describing a Vertex.
Maintain a set of objects, one per slot.
ToolHandle< Trk::ITrackParticleCreatorTool > m_particleCreator
The key for the input TrackParticleTruthCollection.
SG::ReadHandleKey< xAOD::VertexContainer > m_primaryVertexContainer
TrackParticleCnvAlg(const std::string &name, ISvcLocator *svcLoc)
Regular algorithm constructor.
SG::WriteHandleKey< xAOD::TrackParticleContainer > m_xaodout
Class describing a TrackParticle.