ATLAS Offline Software
PhysicsAnalysis
TrackingID
InDetTrackSystematicsTools
InDetTrackSystematicsTools
IInDetTrackTruthOriginTool.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_IINDETTRACKTRUTHORIGINTOOL_H
7
#define INDETTRACKSYSTEMATICSTOOLS_IINDETTRACKTRUTHORIGINTOOL_H
8
9
#include "
AsgTools/IAsgTool.h
"
10
#include "
xAODTracking/TrackParticle.h
"
11
#include "
xAODTruth/TruthParticle.h
"
12
13
namespace
InDet
{
14
22
class
IInDetTrackTruthOriginTool
:
public
virtual
asg::IAsgTool
{
23
24
ASG_TOOL_INTERFACE
(
InDet::IInDetTrackTruthOriginTool
)
25
public
:
26
27
virtual
StatusCode
initialize
() = 0;
28
30
virtual
const
xAOD::TruthParticle
*
getTruth
(
const
xAOD::TrackParticle
*
track
)
const
= 0;
31
33
virtual
int
getTruthOrigin
(
const
xAOD::TruthParticle
* truth)
const
= 0;
34
36
virtual
int
getTrackOrigin
(
const
xAOD::TrackParticle
*
track
)
const
= 0;
37
39
virtual
bool
isFrom
(
const
xAOD::TruthParticle
* truth,
int
flav)
const
= 0;
40
41
};
// class IInDetTrackTruthOriginTool
42
43
}
// namespace InDet
44
45
#endif
InDet::IInDetTrackTruthOriginTool
Definition:
IInDetTrackTruthOriginTool.h:22
InDet
Primary Vertex Finder.
Definition:
VP1ErrorUtils.h:36
asg::IAsgTool
Base class for the dual-use tool interface classes.
Definition:
IAsgTool.h:41
InDet::IInDetTrackTruthOriginTool::isFrom
virtual bool isFrom(const xAOD::TruthParticle *truth, int flav) const =0
Check if a truth particle is from the specified origin (from B or D hadron, or tau)
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::IInDetTrackTruthOriginTool::getTrackOrigin
virtual int getTrackOrigin(const xAOD::TrackParticle *track) const =0
Computes the track origin.
ASG_TOOL_INTERFACE
#define ASG_TOOL_INTERFACE(CLASSNAME)
Definition:
AsgToolMacros.h:40
IAsgTool.h
InDet::IInDetTrackTruthOriginTool::getTruthOrigin
virtual int getTruthOrigin(const xAOD::TruthParticle *truth) const =0
Computes the truth particle origin.
TrackParticle.h
InDet::IInDetTrackTruthOriginTool::getTruth
virtual const xAOD::TruthParticle * getTruth(const xAOD::TrackParticle *track) const =0
Safely access a track's linked truth particle, if available.
InDet::IInDetTrackTruthOriginTool::initialize
virtual StatusCode initialize()=0
xAOD::track
@ track
Definition:
TrackingPrimitives.h:512
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition:
TrackParticle_v1.h:43
TruthParticle.h
Generated on Thu Nov 7 2024 21:16:41 for ATLAS Offline Software by
1.8.18