ATLAS Offline Software
TrackSysCommonData.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 TrackSysCommonData //
9 // //
10 // Description: Common pointers, data, node-to-object maps //
11 // etc. for the track system //
12 // //
13 // Author: Thomas H. Kittelmann (Thomas.Kittelmann@cern.ch) //
14 // Initial version: April 2008 //
15 // //
17 
18 #ifndef TRACKSYSCOMMONDATA_H
19 #define TRACKSYSCOMMONDATA_H
20 
25 #include "GaudiKernel/ServiceHandle.h"
27 
28 class VP1TrackSystem;
29 class IVP13DSystem;
33 class InDetProjHelper;
36 class TrackLODManager;
37 class VP1TrackSanity;
38 class SoNode;
39 class TrackHandleBase;
40 class SoPointSet;
41 class QTreeWidgetItem;
42 class SoSeparator;//Fixme!
43 
44 namespace Trk {
45  class Track;
46  class Segment;
47 }
48 class VP1TrackSystem;
49 
51 public:
52 
54  virtual ~TrackSysCommonData();
55 
56  VP1TrackSystem * system() const;
57  AscObjSelectionManager* ascObjSelectionManager() const;//returns null if not in refreshed state
69  SoPointSet * singlePoint() const;//A single point at (0,0,0)
71 
73  void clearEventData(); //Deletes AscObjSelectionManager
74 
75  //register node->track connection (erased at next clearEventData)
76  void registerTrack(SoNode*,TrackHandleBase*);
77  void unregisterTrack(SoNode*);
78 
79  // void registerBrowserItem(QTreeWidgetItem* item, SoNode* node);
80  // void unregisterBrowserItem(QTreeWidgetItem* item);
81 
82  //get the connection:
83  TrackHandleBase* trackHandle(SoNode*n);
84  SoNode* node(TrackHandleBase* h);
85  SoNode* node(QTreeWidgetItem* item);
86 
89  SoSeparator* textSep(); // FIXME! FIXME!
90 
91  SoSeparator* m_textSep; // FIXME! FIXME! Make private, but then need set method for VP1TrackSystem.cxx:247
92 
93  const TrackHandleBase* getHandle(const Trk::Track* trk);
94 
95  const ActsGeometryContext& geometryContext() const;
97 
98 private:
99  class Imp;
100  Imp * m_d;
101 
115  SoPointSet * m_singlePoint;
119  ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{"MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
120 };
121 
135 inline SoPointSet * TrackSysCommonData::singlePoint() const { return m_singlePoint; }
138 inline SoSeparator* TrackSysCommonData::textSep() {return m_textSep;} // FIXME! FIXME!
140 
141 #endif
142 
HitsSoNodeManager.h
TrackSysCommonData::muonChamberProjectionHelper
MuonChamberProjectionHelper * muonChamberProjectionHelper() const
Definition: TrackSysCommonData.h:125
TrackSysCommonData::trackPropagationHelper
TrackPropagationHelper * trackPropagationHelper() const
Definition: TrackSysCommonData.h:130
MuonChamberProjectionHelper
Definition: MuonChamberProjectionHelper.h:32
TrackSysCommonData::controller
TrackSystemController * controller() const
Definition: TrackSysCommonData.h:124
TrackSysCommonData::m_visTrkSegmentsToMaterialHelper
VisibleObjectToMaterialHelper< Trk::Segment > * m_visTrkSegmentsToMaterialHelper
Definition: TrackSysCommonData.h:113
TrackSysCommonData::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: TrackSysCommonData.h:119
TrackSysCommonData::geometryContext
const ActsGeometryContext & geometryContext() const
Definition: TrackSysCommonData.cxx:212
TrackSysCommonData::m_indetProjHelper_SCT
InDetProjHelper * m_indetProjHelper_SCT
Definition: TrackSysCommonData.h:107
TrackSysCommonData::TrackSysCommonData
TrackSysCommonData(VP1TrackSystem *sys, TrackSystemController *)
Definition: TrackSysCommonData.cxx:51
Trk::Track
The ATLAS Track class.
Definition: Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:73
Trk::TrackState::Segment
@ Segment
Definition: TrackStateDefs.h:37
TrackSysCommonData::trackLODManager
TrackLODManager * trackLODManager() const
Definition: TrackSysCommonData.h:131
ActsGeometryContext.h
VisibleObjectToMaterialHelper< Trk::Track >
TrackSysCommonData::m_lastSelectedTrack
TrackHandleBase * m_lastSelectedTrack
Definition: TrackSysCommonData.h:116
TrackSysCommonData::m_ascObjSelectionManager
AscObjSelectionManager * m_ascObjSelectionManager
Definition: TrackSysCommonData.h:103
TrackSysCommonData::visTrkTracksToMaterialHelper
VisibleObjectToMaterialHelper< Trk::Track > * visTrkTracksToMaterialHelper() const
Definition: TrackSysCommonData.h:132
TrackSysCommonData::m_textSep
SoSeparator * m_textSep
Definition: TrackSysCommonData.h:91
TrackSysCommonData::node
SoNode * node(TrackHandleBase *h)
Returns the node associated with this handle.
Definition: TrackSysCommonData.cxx:175
TrackSysCommonData::touchedMuonChamberHelper
TouchedMuonChamberHelper * touchedMuonChamberHelper() const
Definition: TrackSysCommonData.h:129
TrackSysCommonData::system
VP1TrackSystem * system() const
Definition: TrackSysCommonData.h:122
TrackSysCommonData::ascObjSelectionManager
AscObjSelectionManager * ascObjSelectionManager() const
Definition: TrackSysCommonData.h:123
InDetProjHelper
Definition: InDetProjHelper.h:34
TrackPropagationHelper
Definition: TrackPropagationHelper.h:40
TrackSysCommonData::registerTrack
void registerTrack(SoNode *, TrackHandleBase *)
Definition: TrackSysCommonData.cxx:132
VisibleObjectToMaterialHelper.h
VP1TrackSanity
Definition: VP1TrackSanity.h:34
TrackSysCommonData::~TrackSysCommonData
virtual ~TrackSysCommonData()
Definition: TrackSysCommonData.cxx:92
TrackSysCommonData::m_trackPropagationHelper
TrackPropagationHelper * m_trackPropagationHelper
Definition: TrackSysCommonData.h:110
TouchedMuonChamberHelper
Definition: TouchedMuonChamberHelper.h:30
mapkey::sys
@ sys
Definition: TElectronEfficiencyCorrectionTool.cxx:42
TrackSysCommonData::m_indetProjHelper_Pixel
InDetProjHelper * m_indetProjHelper_Pixel
Definition: TrackSysCommonData.h:106
TrackSysCommonData::textSep
SoSeparator * textSep()
Definition: TrackSysCommonData.h:138
TrackSysCommonData::m_trackLODManager
TrackLODManager * m_trackLODManager
Definition: TrackSysCommonData.h:111
TrackSysCommonData
Definition: TrackSysCommonData.h:50
beamspotman.n
n
Definition: beamspotman.py:731
sel
sel
Definition: SUSYToolsTester.cxx:97
TrackSysCommonData::m_muonChamberProjectionHelper
MuonChamberProjectionHelper * m_muonChamberProjectionHelper
Definition: TrackSysCommonData.h:105
TrackSysCommonData::indetProjHelper_SCT
InDetProjHelper * indetProjHelper_SCT() const
Definition: TrackSysCommonData.h:127
TrackSysCommonData::Imp
Definition: TrackSysCommonData.cxx:45
VP1TrackSystem
Definition: VP1TrackSystem.h:36
TrackSysCommonData::nodeManager
HitsSoNodeManager & nodeManager()
Definition: TrackSysCommonData.h:139
VP1HelperClassBase
Definition: VP1HelperClassBase.h:28
ActsGeometryContext
Include the GeoPrimitives which need to be put first.
Definition: ActsGeometryContext.h:27
TrackSysCommonData::visTrkSegmentsToMaterialHelper
VisibleObjectToMaterialHelper< Trk::Segment > * visTrkSegmentsToMaterialHelper() const
Definition: TrackSysCommonData.h:133
TrackSysCommonData::m_trackSanity
VP1TrackSanity * m_trackSanity
Definition: TrackSysCommonData.h:114
TrackSysCommonData::unregisterTrack
void unregisterTrack(SoNode *)
Definition: TrackSysCommonData.cxx:147
TrackSysCommonData::m_d
Imp * m_d
Definition: TrackSysCommonData.h:99
TrackSysCommonData::m_controller
TrackSystemController * m_controller
Definition: TrackSysCommonData.h:104
TrackSysCommonData::setLastSelectedTrack
void setLastSelectedTrack(TrackHandleBase *sel)
Definition: TrackSysCommonData.h:136
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
TrackSysCommonData::m_touchedMuonChamberHelper
TouchedMuonChamberHelper * m_touchedMuonChamberHelper
Definition: TrackSysCommonData.h:109
TrackSysCommonData::m_visTrkTracksToMaterialHelper
VisibleObjectToMaterialHelper< Trk::Track > * m_visTrkTracksToMaterialHelper
Definition: TrackSysCommonData.h:112
TrackSysCommonData::lastSelectedTrackHandle
TrackHandleBase * lastSelectedTrackHandle()
pointer to base of last selected track (zero if nothing selected)
Definition: TrackSysCommonData.h:137
TrackSystemController
Definition: TrackSystemController.h:49
AscObjSelectionManager
Definition: AscObjSelectionManager.h:37
TrackSysCommonData::trackHandle
TrackHandleBase * trackHandle(SoNode *n)
Definition: TrackSysCommonData.cxx:164
item
Definition: ItemListSvc.h:43
TrackSysCommonData::m_indetProjHelper_TRT
InDetProjHelper * m_indetProjHelper_TRT
Definition: TrackSysCommonData.h:108
VP1HelperClassBase.h
TrackSysCommonData::muonIdHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > & muonIdHelperSvc()
Definition: TrackSysCommonData.cxx:217
TrackSysCommonData::singlePoint
SoPointSet * singlePoint() const
Definition: TrackSysCommonData.h:135
TrackSysCommonData::m_3dsystem
VP1TrackSystem * m_3dsystem
Definition: TrackSysCommonData.h:102
h
TrackSysCommonData::getHandle
const TrackHandleBase * getHandle(const Trk::Track *trk)
Definition: TrackSysCommonData.cxx:196
IVP13DSystem
Definition: IVP13DSystem.h:31
HitsSoNodeManager
Definition: HitsSoNodeManager.h:17
TrackSysCommonData::clearEventData
void clearEventData()
Definition: TrackSysCommonData.cxx:119
TrackSysCommonData::indetProjHelper_TRT
InDetProjHelper * indetProjHelper_TRT() const
Definition: TrackSysCommonData.h:128
TrackSysCommonData::indetProjHelper_Pixel
InDetProjHelper * indetProjHelper_Pixel() const
Definition: TrackSysCommonData.h:126
Track
Definition: TriggerChamberClusterOnTrackCreator.h:21
TrackLODManager
Definition: TrackLODManager.h:32
TrackHandleBase
Definition: TrackHandleBase.h:56
TrackSysCommonData::m_singlePoint
SoPointSet * m_singlePoint
Definition: TrackSysCommonData.h:115
TrackSysCommonData::trackSanityHelper
VP1TrackSanity * trackSanityHelper() const
Definition: TrackSysCommonData.h:134
IMuonIdHelperSvc.h
TrackSysCommonData::setEventData
void setEventData(AscObjSelectionManager *)
Definition: TrackSysCommonData.cxx:113
TrackSysCommonData::m_nodeManager
HitsSoNodeManager m_nodeManager
Definition: TrackSysCommonData.h:117
ServiceHandle< Muon::IMuonIdHelperSvc >
TrackSysCommonData::m_geometryContext
const ActsGeometryContext * m_geometryContext
Definition: TrackSysCommonData.h:118