ATLAS Offline Software
TrackHandle_TrkTrack.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
7 // //
8 // Header file for class TrackHandle_TrkTrack //
9 // //
10 // Description: TrackHandle for Trk::Track's //
11 // //
12 // Author: Thomas H. Kittelmann (Thomas.Kittelmann@cern.ch) //
13 // Initial version: February 2008 //
14 // //
16 
17 #ifndef TRACKHANDLE_TRKTRACK_H
18 #define TRACKHANDLE_TRKTRACK_H
19 
21 
23 
24 namespace Trk {
25  class Track;
26  class MeasurementBase;
27 }
28 
30 public:
31 
33  virtual ~TrackHandle_TrkTrack();
34 
35  virtual QStringList clicked() const;
36 
37  virtual Amg::Vector3D momentum() const;
38  const Trk::Track * provide_pathInfoTrkTrack() const { return m_trk; };
39 
42 
43  const Trk::Track* trkTrackPointer() const { return m_trk; }
44 
45  virtual bool hasSubSystemHitInfo() const { ensureInitSubSysHitInfo(); return m_hitInfoStatus; }
46  virtual unsigned getNPixelHits() const { ensureInitSubSysHitInfo(); return m_nhits_pixel; }
47  virtual unsigned getNSCTHits() const { ensureInitSubSysHitInfo(); return m_nhits_sct; }
48  virtual unsigned getNTRTHits() const { ensureInitSubSysHitInfo(); return m_nhits_trt; }
49  virtual unsigned getNMuonPhiHits() const { ensureInitSubSysHitInfo(); return m_nhits_muon_phi; }
50  virtual unsigned getNRPCHits() const { ensureInitSubSysHitInfo(); return m_nhits_rpc; }
51  virtual unsigned getNMDTHits() const { ensureInitSubSysHitInfo(); return m_nhits_mdt; }
52  virtual unsigned getNTGCHits() const { ensureInitSubSysHitInfo(); return m_nhits_tgc; }
53  virtual unsigned getNCSCHits() const { ensureInitSubSysHitInfo(); return m_nhits_csc; }
54  virtual unsigned getNMMHits() const { ensureInitSubSysHitInfo(); return m_nhits_mm; }
55  virtual unsigned getNsTGCHits() const { ensureInitSubSysHitInfo(); return m_nhits_stgc; }
56  virtual const Trk::FitQuality* getFitQuality() const ;
57  virtual bool containsDetElement(const QString&) const;
58 
59  virtual void fillObjectBrowser(QList<QTreeWidgetItem *>& list);
60  virtual void updateObjectBrowser();
61 
62  SoNode* zoomToTSOS(unsigned int index);
63 
64  virtual QString shortInfo() const;
65  virtual QString type() const { return QString("Track"); }
66 
67 private:
68  void visibleStateChanged();
70  mutable unsigned m_nhits_pixel;
71  mutable unsigned m_nhits_sct;
72  mutable unsigned m_nhits_trt;
73  mutable unsigned m_nhits_muon_phi;
74  mutable unsigned m_nhits_rpc;
75  mutable unsigned m_nhits_mdt;
76  mutable unsigned m_nhits_tgc;
77  mutable unsigned m_nhits_csc;
78  mutable unsigned m_nhits_mm;
79  mutable unsigned m_nhits_stgc;
80  mutable int m_hitInfoStatus;
81  void ensureInitSubSysHitInfo() const;
82 
83 protected:
84  const Trk::Track* m_trk;
85 };
86 
87 #endif
TrackHandle_TrkTrack::m_nhits_trt
unsigned m_nhits_trt
Definition: TrackHandle_TrkTrack.h:72
TrackCollHandleBase
Definition: TrackCollHandleBase.h:49
TrackHandle_TrkTrack::ensureTouchedMuonChambersInitialiasedFromMeas
void ensureTouchedMuonChambersInitialiasedFromMeas(const Trk::MeasurementBase *meas) const
Definition: TrackHandle_TrkTrack.cxx:105
TrackHandle_TrkTrack::visibleStateChanged
void visibleStateChanged()
override if need to take action in this case.
Definition: TrackHandle_TrkTrack.cxx:142
TrackHandle_TrkTrack::currentMaterialChanged
void currentMaterialChanged()
Definition: TrackHandle_TrkTrack.cxx:149
TrackHandle_TrkTrack::getNMDTHits
virtual unsigned getNMDTHits() const
Definition: TrackHandle_TrkTrack.h:51
TrackHandle_TrkTrack::hasSubSystemHitInfo
virtual bool hasSubSystemHitInfo() const
Definition: TrackHandle_TrkTrack.h:45
Trk::Track
The ATLAS Track class.
Definition: Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:73
TrackHandle_TrkTrack::type
virtual QString type() const
return very short word with type (maybe link with collection type?)
Definition: TrackHandle_TrkTrack.h:65
TrackHandle_TrkTrack::m_nhits_sct
unsigned m_nhits_sct
Definition: TrackHandle_TrkTrack.h:71
index
Definition: index.py:1
TrackHandle_TrkTrack::getNTRTHits
virtual unsigned getNTRTHits() const
Definition: TrackHandle_TrkTrack.h:48
TrackHandleBase.h
TrackHandle_TrkTrack::getNTGCHits
virtual unsigned getNTGCHits() const
Definition: TrackHandle_TrkTrack.h:52
TrackHandle_TrkTrack::getNRPCHits
virtual unsigned getNRPCHits() const
Definition: TrackHandle_TrkTrack.h:50
TrackHandle_TrkTrack::getFitQuality
virtual const Trk::FitQuality * getFitQuality() const
Definition: TrackHandle_TrkTrack.cxx:398
TrackHandle_TrkTrack::getNMMHits
virtual unsigned getNMMHits() const
Definition: TrackHandle_TrkTrack.h:54
TrackHandle_TrkTrack::trkTrackPointer
const Trk::Track * trkTrackPointer() const
Definition: TrackHandle_TrkTrack.h:43
TrackHandle_TrkTrack::clicked
virtual QStringList clicked() const
Called when user selects the node (stringlist is displayed in messagebox).
Definition: TrackHandle_TrkTrack.cxx:55
TrackHandle_TrkTrack::m_nhits_mm
unsigned m_nhits_mm
Definition: TrackHandle_TrkTrack.h:78
TrackHandle_TrkTrack::m_nhits_stgc
unsigned m_nhits_stgc
Definition: TrackHandle_TrkTrack.h:79
TrackHandle_TrkTrack::m_nhits_tgc
unsigned m_nhits_tgc
Definition: TrackHandle_TrkTrack.h:76
TrackHandle_TrkTrack::m_nhits_muon_phi
unsigned m_nhits_muon_phi
Definition: TrackHandle_TrkTrack.h:73
TrackHandle_TrkTrack::containsDetElement
virtual bool containsDetElement(const QString &) const
Definition: TrackHandle_TrkTrack.cxx:402
TrackHandle_TrkTrack::getNCSCHits
virtual unsigned getNCSCHits() const
Definition: TrackHandle_TrkTrack.h:53
TrackHandle_TrkTrack::zoomToTSOS
SoNode * zoomToTSOS(unsigned int index)
Depending on controller configuration attempt to zoom to the corresponding TSOS & returned detailed n...
Definition: TrackHandle_TrkTrack.cxx:291
TrackHandle_TrkTrack::m_nhits_mdt
unsigned m_nhits_mdt
Definition: TrackHandle_TrkTrack.h:75
GeoPrimitives.h
TrackHandle_TrkTrack::getNPixelHits
virtual unsigned getNPixelHits() const
Definition: TrackHandle_TrkTrack.h:46
TrackHandle_TrkTrack::momentum
virtual Amg::Vector3D momentum() const
Definition: TrackHandle_TrkTrack.cxx:131
TrackHandle_TrkTrack::m_trk
const Trk::Track * m_trk
Definition: TrackHandle_TrkTrack.h:84
TrackHandle_TrkTrack::ensureTouchedMuonChambersInitialised
void ensureTouchedMuonChambersInitialised() const
Definition: TrackHandle_TrkTrack.cxx:84
TrackHandle_TrkTrack
Definition: TrackHandle_TrkTrack.h:29
TrackHandle_TrkTrack::m_nhits_csc
unsigned m_nhits_csc
Definition: TrackHandle_TrkTrack.h:77
histSizes.list
def list(name, path='/')
Definition: histSizes.py:38
Trk::FitQuality
Class to represent and store fit qualities from track reconstruction in terms of and number of degre...
Definition: FitQuality.h:97
TrackHandle_TrkTrack::m_nhits_pixel
unsigned m_nhits_pixel
Definition: TrackHandle_TrkTrack.h:70
TrackHandle_TrkTrack::getNsTGCHits
virtual unsigned getNsTGCHits() const
Definition: TrackHandle_TrkTrack.h:55
TrackHandle_TrkTrack::TrackHandle_TrkTrack
TrackHandle_TrkTrack(TrackCollHandleBase *, const Trk::Track *)
Definition: TrackHandle_TrkTrack.cxx:41
Trk::MeasurementBase
Definition: MeasurementBase.h:58
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
TrackHandle_TrkTrack::ensureInitSubSysHitInfo
void ensureInitSubSysHitInfo() const
Definition: TrackHandle_TrkTrack.cxx:156
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
TrackHandle_TrkTrack::shortInfo
virtual QString shortInfo() const
returns mom and hit information about track
Definition: TrackHandle_TrkTrack.cxx:313
TrackHandle_TrkTrack::m_hitInfoStatus
int m_hitInfoStatus
-1: uninitialized, 0: not present, 1: present.
Definition: TrackHandle_TrkTrack.h:80
TrackHandle_TrkTrack::getNMuonPhiHits
virtual unsigned getNMuonPhiHits() const
The number of phi hits is part of hit counts below (i.e.
Definition: TrackHandle_TrkTrack.h:49
Track
Definition: TriggerChamberClusterOnTrackCreator.h:21
TrackHandle_TrkTrack::getNSCTHits
virtual unsigned getNSCTHits() const
Definition: TrackHandle_TrkTrack.h:47
TrackHandle_TrkTrack::~TrackHandle_TrkTrack
virtual ~TrackHandle_TrkTrack()
Definition: TrackHandle_TrkTrack.cxx:50
TrackHandleBase
Definition: TrackHandleBase.h:56
TrackHandle_TrkTrack::updateObjectBrowser
virtual void updateObjectBrowser()
Definition: TrackHandle_TrkTrack.cxx:329
TrackHandle_TrkTrack::fillObjectBrowser
virtual void fillObjectBrowser(QList< QTreeWidgetItem * > &list)
Called in child classes.
Definition: TrackHandle_TrkTrack.cxx:162
TrackHandle_TrkTrack::m_nhits_rpc
unsigned m_nhits_rpc
Definition: TrackHandle_TrkTrack.h:74
TrackHandle_TrkTrack::provide_pathInfoTrkTrack
const Trk::Track * provide_pathInfoTrkTrack() const
Definition: TrackHandle_TrkTrack.h:38