ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
graphics
VP1
VP1Systems
VP1TrackSystems
VP1TrackSystems
TrackHandle_TruthTrack.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
7
// //
8
// Header file for class TrackHandle_TruthTrack //
9
// //
10
// Description: Handle for truth tracks based on HepMC //
11
// records and sim. hits. //
12
// //
13
// Author: Thomas H. Kittelmann (Thomas.Kittelmann@cern.ch) //
14
// Initial version: March 2008 //
15
// //
17
18
#ifndef TRACKHANDLE_TRUTHTRACK_H
19
#define TRACKHANDLE_TRUTHTRACK_H
20
21
#include "
VP1TrackSystems/TrackHandleBase.h
"
22
#include "
VP1TrackSystems/SimHitHandleBase.h
"
23
24
#include "
GeoPrimitives/GeoPrimitives.h
"
25
26
#include "
AtlasHepMC/GenParticle_fwd.h
"
27
28
class
TrackHandle_TruthTrack
:
public
TrackHandleBase
{
29
public
:
30
31
TrackHandle_TruthTrack
(
TrackCollHandleBase
*,
32
const
SimBarCode
&,
33
const
SimHitList
&,
34
HepMC::ConstGenParticlePtr
genPart =
nullptr
);
35
36
virtual
~TrackHandle_TruthTrack
();
37
38
virtual
QStringList
clicked
()
const
;
39
40
virtual
Amg::Vector3D
momentum
()
const
;
41
virtual
int
pdgCode
()
const
;
42
bool
hasBarCodeZero
()
const
;
43
44
45
bool
hasVertexAtIR
(
const
double
& rmaxsq,
const
double
& zmax)
const
;
46
//Fixme: Something like this?: bool isPrimaryTrack() const;
47
void
setAscObjsVisible
(
bool
);
48
49
virtual
QString
type
()
const
{
return
QString(
"Truth"
); }
50
51
52
protected
:
53
virtual
double
calculateCharge
()
const
;
54
const
Trk::Track
*
provide_pathInfoTrkTrack
()
const
;
55
void
ensureTouchedMuonChambersInitialised
()
const
;
56
void
visibleStateChanged
();
57
58
private
:
59
60
class
Imp;
61
Imp
*
m_d
;
62
63
};
64
65
#endif
GenParticle_fwd.h
GeoPrimitives.h
SimHitHandleBase.h
SimHitList
std::vector< std::pair< double, SimHitHandleBase * > > SimHitList
Definition
SimHitHandleBase.h:76
TrackHandleBase.h
SimBarCode
Definition
SimBarCode.h:22
TrackHandleBase::TrackCollHandleBase
friend class TrackCollHandleBase
Definition
TrackHandleBase.h:192
TrackHandleBase::TrackHandleBase
TrackHandleBase(TrackCollHandleBase *)
Definition
TrackHandleBase.cxx:203
TrackHandle_TruthTrack::Imp
Definition
TrackHandle_TruthTrack.cxx:28
TrackHandle_TruthTrack::~TrackHandle_TruthTrack
virtual ~TrackHandle_TruthTrack()
Definition
TrackHandle_TruthTrack.cxx:147
TrackHandle_TruthTrack::m_d
Imp * m_d
Definition
TrackHandle_TruthTrack.h:61
TrackHandle_TruthTrack::pdgCode
virtual int pdgCode() const
0 means unknown
Definition
TrackHandle_TruthTrack.cxx:234
TrackHandle_TruthTrack::ensureTouchedMuonChambersInitialised
void ensureTouchedMuonChambersInitialised() const
Definition
TrackHandle_TruthTrack.cxx:220
TrackHandle_TruthTrack::type
virtual QString type() const
return very short word with type (maybe link with collection type?)
Definition
TrackHandle_TruthTrack.h:49
TrackHandle_TruthTrack::setAscObjsVisible
void setAscObjsVisible(bool)
Definition
TrackHandle_TruthTrack.cxx:284
TrackHandle_TruthTrack::calculateCharge
virtual double calculateCharge() const
Definition
TrackHandle_TruthTrack.cxx:337
TrackHandle_TruthTrack::TrackHandle_TruthTrack
TrackHandle_TruthTrack(TrackCollHandleBase *, const SimBarCode &, const SimHitList &, HepMC::ConstGenParticlePtr genPart=nullptr)
Definition
TrackHandle_TruthTrack.cxx:129
TrackHandle_TruthTrack::provide_pathInfoTrkTrack
const Trk::Track * provide_pathInfoTrkTrack() const
Definition
TrackHandle_TruthTrack.cxx:226
TrackHandle_TruthTrack::clicked
virtual QStringList clicked() const
Called when user selects the node (stringlist is displayed in messagebox).
Definition
TrackHandle_TruthTrack.cxx:208
TrackHandle_TruthTrack::hasBarCodeZero
bool hasBarCodeZero() const
Definition
TrackHandle_TruthTrack.cxx:240
TrackHandle_TruthTrack::visibleStateChanged
void visibleStateChanged()
override if need to take action in this case.
Definition
TrackHandle_TruthTrack.cxx:277
TrackHandle_TruthTrack::hasVertexAtIR
bool hasVertexAtIR(const double &rmaxsq, const double &zmax) const
Definition
TrackHandle_TruthTrack.cxx:262
TrackHandle_TruthTrack::momentum
virtual Amg::Vector3D momentum() const
Definition
TrackHandle_TruthTrack.cxx:246
Trk::Track
The ATLAS Track class.
Definition
Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:73
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition
GeoPrimitives.h:47
HepMC::ConstGenParticlePtr
HepMC3::ConstGenParticlePtr ConstGenParticlePtr
Definition
GenParticle.h:20
Generated on
for ATLAS Offline Software by
1.17.0