ATLAS Offline Software
Loading...
Searching...
No Matches
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
29public:
30
32 const SimBarCode&,
33 const SimHitList&,
34 HepMC::ConstGenParticlePtr genPart = nullptr );
35
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
52protected:
53 virtual double calculateCharge() const;
57
58private:
59
60 class Imp;
62
63};
64
65#endif
std::vector< std::pair< double, SimHitHandleBase * > > SimHitList
friend class TrackCollHandleBase
TrackHandleBase(TrackCollHandleBase *)
virtual int pdgCode() const
0 means unknown
void ensureTouchedMuonChambersInitialised() const
virtual QString type() const
return very short word with type (maybe link with collection type?)
virtual double calculateCharge() const
TrackHandle_TruthTrack(TrackCollHandleBase *, const SimBarCode &, const SimHitList &, HepMC::ConstGenParticlePtr genPart=nullptr)
const Trk::Track * provide_pathInfoTrkTrack() const
virtual QStringList clicked() const
Called when user selects the node (stringlist is displayed in messagebox).
void visibleStateChanged()
override if need to take action in this case.
bool hasVertexAtIR(const double &rmaxsq, const double &zmax) const
virtual Amg::Vector3D momentum() const
Eigen::Matrix< double, 3, 1 > Vector3D
const GenParticle * ConstGenParticlePtr
Definition GenParticle.h:38