ATLAS Offline Software
TrackHandle_SimulationTrack.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_SimulationTrack //
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_SIMULATIONTRACK_H
19 #define TRACKHANDLE_SIMULATIONTRACK_H
20 
23 
25 
27 public:
28 
30 
32 
33  virtual QStringList clicked() const;
34 
35  virtual Amg::Vector3D momentum() const;
36  virtual int pdgCode() const;
37  bool hasBarCodeZero() const;
38 
39  void setAscObjsVisible(bool);
40 
41  virtual QString type() const { return QString("Simulation"); }
42 
43 
44 protected:
45  virtual double calculateCharge() const;
46  const Trk::Track * provide_pathInfoTrkTrack() const;
47  void visibleStateChanged();
48 
49 private:
50 
51  class Imp;
52  Imp * m_d;
53 
54 };
55 
56 #endif
TrackCollHandleBase
Definition: TrackCollHandleBase.h:49
Trk::Track
The ATLAS Track class.
Definition: Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:73
TrackHandle_SimulationTrack::clicked
virtual QStringList clicked() const
Called when user selects the node (stringlist is displayed in messagebox).
Definition: TrackHandle_SimulationTrack.cxx:155
TrackHandleBase.h
TrackHandle_SimulationTrack::visibleStateChanged
void visibleStateChanged()
override if need to take action in this case.
Definition: TrackHandle_SimulationTrack.cxx:200
TrackHandle_SimulationTrack::pdgCode
virtual int pdgCode() const
0 means unknown
Definition: TrackHandle_SimulationTrack.cxx:176
SimHitList
std::vector< std::pair< double, SimHitHandleBase * > > SimHitList
Definition: SimHitHandleBase.h:76
TrackHandle_SimulationTrack::setAscObjsVisible
void setAscObjsVisible(bool)
Definition: TrackHandle_SimulationTrack.cxx:207
SimBarCode
Definition: SimBarCode.h:22
TrackHandle_SimulationTrack::hasBarCodeZero
bool hasBarCodeZero() const
Definition: TrackHandle_SimulationTrack.cxx:182
GeoPrimitives.h
TrackHandle_SimulationTrack::momentum
virtual Amg::Vector3D momentum() const
Definition: TrackHandle_SimulationTrack.cxx:188
TrackHandle_SimulationTrack::m_d
Imp * m_d
Definition: TrackHandle_SimulationTrack.h:51
TrackHandle_SimulationTrack::~TrackHandle_SimulationTrack
virtual ~TrackHandle_SimulationTrack()
Definition: TrackHandle_SimulationTrack.cxx:118
TrackHandle_SimulationTrack::TrackHandle_SimulationTrack
TrackHandle_SimulationTrack(TrackCollHandleBase *, const SimBarCode &simBarCode, const SimHitList &)
Definition: TrackHandle_SimulationTrack.cxx:101
SimHitHandleBase.h
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
TrackHandle_SimulationTrack::type
virtual QString type() const
return very short word with type (maybe link with collection type?)
Definition: TrackHandle_SimulationTrack.h:41
TrackHandle_SimulationTrack::calculateCharge
virtual double calculateCharge() const
Definition: TrackHandle_SimulationTrack.cxx:251
TrackHandle_SimulationTrack
Definition: TrackHandle_SimulationTrack.h:26
TrackHandle_SimulationTrack::Imp
Definition: TrackHandle_SimulationTrack.cxx:28
TrackHandleBase
Definition: TrackHandleBase.h:56
TrackHandle_SimulationTrack::provide_pathInfoTrkTrack
const Trk::Track * provide_pathInfoTrkTrack() const
Definition: TrackHandle_SimulationTrack.cxx:168