ATLAS Offline Software
InDetTrackTruthOriginTool.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 /*
3  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
4 */
5 
6 #ifndef INDETTRACKSYSTEMATICSTOOLS_INDETTRACKTRUTHORIGINTOOL_H
7 #define INDETTRACKSYSTEMATICSTOOLS_INDETTRACKTRUTHORIGINTOOL_H
8 
10 #include "AsgTools/AsgTool.h"
13 #include <string>
14 
15 namespace InDet {
16 
25 
29 
30  public:
31 
32  InDetTrackTruthOriginTool (const std::string& name);
33  virtual ~InDetTrackTruthOriginTool();
34 
35  virtual StatusCode initialize() override;
36 
38  virtual const xAOD::TruthParticle* getTruth( const xAOD::TrackParticle* track ) const override;
39 
41  virtual int getTruthOrigin(const xAOD::TruthParticle* truth) const override;
42 
44  virtual int getTrackOrigin(const xAOD::TrackParticle* track) const override;
45 
47  virtual bool isFrom(const xAOD::TruthParticle* truth, int flav) const override;
48 
49  private:
50 
52  virtual bool isFromRec(const xAOD::TruthParticle* truth, int flav, int depth=0) const;
53 
55 
58 
60 
61 }; // class InDetTrackTruthOriginTool
62 
63 } // namespace InDet
64 
65 #endif
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition: AsgTool.h:47
egammaParameters::depth
@ depth
pointing depth of the shower as calculated in egammaqgcld
Definition: egammaParamDefs.h:276
InDet::InDetTrackTruthOriginTool::m_truthMatchProbabilityAuxName
std::string m_truthMatchProbabilityAuxName
Definition: InDetTrackTruthOriginTool.h:57
InDet::IInDetTrackTruthOriginTool
Definition: IInDetTrackTruthOriginTool.h:22
InDet::InDetTrackTruthOriginTool::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition: InDetTrackTruthOriginTool.cxx:35
ASG_TOOL_CLASS2
#define ASG_TOOL_CLASS2(CLASSNAME, INT1, INT2)
Definition: AsgToolMacros.h:77
InDet::InDetTrackTruthOriginTool::isFromRec
virtual bool isFromRec(const xAOD::TruthParticle *truth, int flav, int depth=0) const
recursion-safe(r) version of isFrom
Definition: InDetTrackTruthOriginTool.cxx:219
InDet
Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
InDet::InDetTrackTruthOriginTool::m_matchingProbabilityCut
float m_matchingProbabilityCut
Definition: InDetTrackTruthOriginTool.h:54
InDet::InDetTrackTruthOriginTool::m_truthParticleLinkName
std::string m_truthParticleLinkName
Definition: InDetTrackTruthOriginTool.h:56
asg::IAsgTool
Base class for the dual-use tool interface classes.
Definition: IAsgTool.h:41
InDet::InDetTrackTruthOriginTool
Definition: InDetTrackTruthOriginTool.h:24
InDet::InDetTrackTruthOriginTool::getTrackOrigin
virtual int getTrackOrigin(const xAOD::TrackParticle *track) const override
Computes the track origin.
Definition: InDetTrackTruthOriginTool.cxx:163
InDet::InDetTrackTruthOriginTool::m_isFullPileupTruth
bool m_isFullPileupTruth
Definition: InDetTrackTruthOriginTool.h:59
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
xAOD::TruthParticle_v1
Class describing a truth particle in the MC record.
Definition: TruthParticle_v1.h:37
InDet::InDetTrackTruthOriginTool::isFrom
virtual bool isFrom(const xAOD::TruthParticle *truth, int flav) const override
Check if a truth particle is from the specified origin (from B or D hadron, or tau)
Definition: InDetTrackTruthOriginTool.cxx:215
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
TrackParticle.h
InDet::InDetTrackTruthOriginTool::getTruth
virtual const xAOD::TruthParticle * getTruth(const xAOD::TrackParticle *track) const override
Safely access a track's linked truth particle, if available.
Definition: InDetTrackTruthOriginTool.cxx:40
xAOD::track
@ track
Definition: TrackingPrimitives.h:512
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43
IInDetTrackTruthOriginTool.h
AsgTool.h
TruthParticle.h
InDet::InDetTrackTruthOriginTool::getTruthOrigin
virtual int getTruthOrigin(const xAOD::TruthParticle *truth) const override
Computes the truth particle origin.
Definition: InDetTrackTruthOriginTool.cxx:66