ATLAS Offline Software
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 
23 
25 
27 
29 public:
30 
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;
56  void visibleStateChanged();
57 
58 private:
59 
60  class Imp;
61  Imp * m_d;
62 
63 };
64 
65 #endif
TrackCollHandleBase
Definition: TrackCollHandleBase.h:49
TrackHandle_TruthTrack::clicked
virtual QStringList clicked() const
Called when user selects the node (stringlist is displayed in messagebox).
Definition: TrackHandle_TruthTrack.cxx:208
Trk::Track
The ATLAS Track class.
Definition: Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:73
TrackHandleBase.h
TrackHandle_TruthTrack
Definition: TrackHandle_TruthTrack.h:28
TrackHandle_TruthTrack::hasBarCodeZero
bool hasBarCodeZero() const
Definition: TrackHandle_TruthTrack.cxx:240
GenParticle_fwd.h
SimHitList
std::vector< std::pair< double, SimHitHandleBase * > > SimHitList
Definition: SimHitHandleBase.h:76
SimBarCode
Definition: SimBarCode.h:22
TrackHandle_TruthTrack::visibleStateChanged
void visibleStateChanged()
override if need to take action in this case.
Definition: TrackHandle_TruthTrack.cxx:277
TrackHandle_TruthTrack::~TrackHandle_TruthTrack
virtual ~TrackHandle_TruthTrack()
Definition: TrackHandle_TruthTrack.cxx:147
GeoPrimitives.h
TrackHandle_TruthTrack::Imp
Definition: TrackHandle_TruthTrack.cxx:28
TrackHandle_TruthTrack::hasVertexAtIR
bool hasVertexAtIR(const double &rmaxsq, const double &zmax) const
Definition: TrackHandle_TruthTrack.cxx:262
PixelAthClusterMonAlgCfg.zmax
zmax
Definition: PixelAthClusterMonAlgCfg.py:176
TrackHandle_TruthTrack::setAscObjsVisible
void setAscObjsVisible(bool)
Definition: TrackHandle_TruthTrack.cxx:284
HepMC::ConstGenParticlePtr
const GenParticle * ConstGenParticlePtr
Definition: GenParticle.h:38
TrackHandle_TruthTrack::TrackHandle_TruthTrack
TrackHandle_TruthTrack(TrackCollHandleBase *, const SimBarCode &, const SimHitList &, HepMC::ConstGenParticlePtr genPart=nullptr)
Definition: TrackHandle_TruthTrack.cxx:129
SimHitHandleBase.h
TrackHandle_TruthTrack::m_d
Imp * m_d
Definition: TrackHandle_TruthTrack.h:60
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
TrackHandle_TruthTrack::pdgCode
virtual int pdgCode() const
0 means unknown
Definition: TrackHandle_TruthTrack.cxx:234
TrackHandle_TruthTrack::calculateCharge
virtual double calculateCharge() const
Definition: TrackHandle_TruthTrack.cxx:337
TrackHandle_TruthTrack::momentum
virtual Amg::Vector3D momentum() const
Definition: TrackHandle_TruthTrack.cxx:246
TrackHandleBase
Definition: TrackHandleBase.h:56
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::provide_pathInfoTrkTrack
const Trk::Track * provide_pathInfoTrkTrack() const
Definition: TrackHandle_TruthTrack.cxx:226