ATLAS Offline Software
Loading...
Searching...
No Matches
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"
12
13namespace InDet {
14
21
23
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
#define ASG_TOOL_INTERFACE(CLASSNAME)
This class determines the truth origin of a track.
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)
virtual const xAOD::TruthParticle * getTruth(const xAOD::TrackParticle *track) const =0
Safely access a track's linked truth particle, if available.
virtual int getTrackOrigin(const xAOD::TrackParticle *track) const =0
Computes the track origin.
virtual int getTruthOrigin(const xAOD::TruthParticle *truth) const =0
Computes the truth particle origin.
virtual StatusCode initialize()=0
Base class for the dual-use tool interface classes.
Definition IAsgTool.h:41
Primary Vertex Finder.
TrackParticle_v1 TrackParticle
Reference the current persistent version:
TruthParticle_v1 TruthParticle
Typedef to implementation.