ATLAS Offline Software
PlotValNtuple.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 #ifndef PLOTVALNTUPLE_H
6 #define PLOTVALNTUPLE_H
7 
8 //#include "PlotValNtuple/TrackData.h"
9 //#include "CLHEP/Vector/ThreeVector.h"
10 #include <vector>
11 
12 #include "display_track.h"
13 #include "TrackDataNtupleTree.h"
15 
16 //typedef Hep3Vector GlobalPosition;
17 //typedef Hep3Vector GlobalDirection;
18 
19 // class Display;
20 // namespace CLHEP{
21 // class Hep3Vector;
22 // }
23 
25 
26 class TObject;
27 
29 public:
31 
32  void setNextTrack(int& eventNumber, int& trackNumber, int& InterationNumber);
33  void setPrevTrack(int& eventNumber, int& trackNumber, int& InterationNumber);
34 
35  void setNextEvent(int& eventNumber);
36  void setPrevEvent(int& eventNumber);
37 
38  void setEvent(int eventNumber, int InterationNumber);
39  void setTrack(int eventNumber, int trackNumber, int InterationNumber);
40 
42  m_mode = mode;
43  }
44 
45  // /** plot a single track */
46  //std::vector<TObject*>* plotBarrelXY_SingleTrack(TrackDataNtupleTree &, Long64_t entry=0);
47  // std::vector<TObject*>& plotBarrelXY_SingleTrack(TrackDataNtupleTree&, Long64_t entry);
48  //displayBarrelXY* plotBarrelXY_SingleTrack(TrackDataNtupleTree &, Long64_t entry=0);
49  // /** plot a whole event, return the index of the last entry belonging to the event by reference */
50  // std::vector<TObject*>& plotBarrelXY_Event(TrackDataNtupleTree&, Long64_t entry, Long64_t &lastEntryOfEvent);
51 
52  // /** plot the RIOs */
53  // std::vector<TObject*>& plotBarrelXY_RIOs(TrkValidationNtupleRIOs&, int eventNumber);
54 
55  // /** plot CompetingRIOsOnTrack for a single track */
56  // // std::vector<TObject*>& plotBarrelXY_SingleTrackCompROTs(TrackDataNtupleTree&, Long64_t entry);
57  // /** plot CompetingRIOsOnTrack for whole event, return the index of the last entry belonging to the event by reference */
58  // // std::vector<TObject*>& plotBarrelXY_EventCompROTs(TrackDataNtupleTree&, Long64_t entry, Long64_t &lastEntryOfEvent);
59 
60  std::vector<TObject*>* getTrackGraphics() {
61  switch (m_mode) {
62  case BarrelXY:
64  break;
65  case EndCapPhiZ:
67  break;
68  }
69  return 0;
70  }
71  std::vector<TObject*>* getRIOGraphics() {
72  switch (m_mode) {
73  case BarrelXY:
74  return m_barrelXY.getRIOGraphics();
75  break;
76  case EndCapPhiZ:
78  break;
79  }
80  return 0;
81  }
82  std::vector<TObject*>* getGeometryGraphics() {
83  switch (m_mode) {
84  case BarrelXY:
86  break;
87  case EndCapPhiZ:
89  break;
90  }
91  return 0;
92  }
93  std::vector<TObject*>* getCompetingROTsGraphics() {
94  switch (m_mode) {
95  case BarrelXY:
97  break;
98  case EndCapPhiZ:
100  break;
101  }
102  return 0;
103  }
104 
105 
106 private:
108  //std::vector<TObject*>* plotBarrelXY_SingleTrack(TrackDataNtupleTree &, Long64_t entry=0);
109  void plotTrack();
110  void plotRIOs(int eventNumber);
111  // /** get the range of the track */
112  // void getBarrelXY_Range(TrackDataNtupleTree&, GlobalPosition& lowerLeft, GlobalPosition& upperRight);
113 
114  //Display* displayDriftTubeBarrelTrackSection( DriftTubeBarrelTrackSection& section );
115  //void getRange( const std::vector<GlobalPosition>&, GlobalPosition& ll, GlobalPosition& rh);
116  // GlobalPosition m_lowerLeft;
117  // GlobalPosition m_upperRight;
118 
120  //Long64_t m_rioNtupleEntry;
123 
127 };
128 
129 
130 #endif // PLOTVALNTUPLE_H
PlotValNtuple::setNextTrack
void setNextTrack(int &eventNumber, int &trackNumber, int &InterationNumber)
Definition: PlotValNtuple.cxx:23
displayTracks::getCompetingROTsGraphics
virtual std::vector< TObject * > * getCompetingROTsGraphics()
Definition: display_track.cxx:54
PlotValNtuple::setPrevEvent
void setPrevEvent(int &eventNumber)
Definition: PlotValNtuple.cxx:130
TrkValidationNtupleRIOs
Definition: TrkValidationNtupleRIOs.h:26
PlotValNtuple::plotRIOs
void plotRIOs(int eventNumber)
Definition: PlotValNtuple.cxx:321
displayEndcapPhiZ
Definition: display_track.h:108
PlotValNtuple
Definition: PlotValNtuple.h:28
PlotValNtuple::getTrackGraphics
std::vector< TObject * > * getTrackGraphics()
Definition: PlotValNtuple.h:60
displayTracks::getRIOGraphics
virtual std::vector< TObject * > * getRIOGraphics()
Definition: display_track.cxx:48
PlotValNtuple::setNextEvent
void setNextEvent(int &eventNumber)
Definition: PlotValNtuple.cxx:92
PlotValNtuple::PlotValNtuple
PlotValNtuple(TrackDataNtupleTree &trackNtuple, TrkValidationNtupleRIOs *rioNtuple, DisplayMode mode=BarrelXY)
Definition: PlotValNtuple.cxx:9
BarrelXY
@ BarrelXY
Definition: PlotValNtuple.h:24
PlotValNtuple::m_trackNtupleEntry
Long64_t m_trackNtupleEntry
Definition: PlotValNtuple.h:119
displayTracks::getGeometryGraphics
virtual std::vector< TObject * > * getGeometryGraphics()
Definition: display_track.cxx:51
PlotValNtuple::m_barrelXY
displayBarrelXY m_barrelXY
Definition: PlotValNtuple.h:124
TrackDataNtupleTree
this class inherites from the automatically created TrkValidationNtupleOutputTrack to have independen...
Definition: TrackDataNtupleTree.h:16
PlotValNtuple::m_rioNtuple
TrkValidationNtupleRIOs * m_rioNtuple
Definition: PlotValNtuple.h:122
Preparation.mode
mode
Definition: Preparation.py:94
TrackDataNtupleTree.h
PlotValNtuple::setEvent
void setEvent(int eventNumber, int InterationNumber)
Definition: PlotValNtuple.cxx:172
xAOD::eventNumber
eventNumber
Definition: EventInfo_v1.cxx:124
TrkValidationNtupleRIOs.h
PlotValNtuple::m_trackNtuple
TrackDataNtupleTree & m_trackNtuple
Definition: PlotValNtuple.h:121
PlotValNtuple::getGeometryGraphics
std::vector< TObject * > * getGeometryGraphics()
Definition: PlotValNtuple.h:82
displayTracks::getTrackGraphics
virtual std::vector< TObject * > * getTrackGraphics()
Definition: display_track.cxx:45
display_track.h
PlotValNtuple::getRIOGraphics
std::vector< TObject * > * getRIOGraphics()
Definition: PlotValNtuple.h:71
PlotValNtuple::setMode
void setMode(DisplayMode mode)
Definition: PlotValNtuple.h:41
TRT::Track::trackNumber
@ trackNumber
Definition: InnerDetector/InDetCalibEvent/TRT_CalibData/TRT_CalibData/TrackInfo.h:75
DisplayMode
DisplayMode
Definition: PlotValNtuple.h:24
PlotValNtuple::setTrack
void setTrack(int eventNumber, int trackNumber, int InterationNumber)
Definition: PlotValNtuple.cxx:173
PlotValNtuple::getCompetingROTsGraphics
std::vector< TObject * > * getCompetingROTsGraphics()
Definition: PlotValNtuple.h:93
PlotValNtuple::plotTrack
void plotTrack()
plot one track
Definition: PlotValNtuple.cxx:193
EndCapPhiZ
@ EndCapPhiZ
Definition: PlotValNtuple.h:24
PlotValNtuple::m_endcapPhiZ
displayEndcapPhiZ m_endcapPhiZ
Definition: PlotValNtuple.h:125
PlotValNtuple::setPrevTrack
void setPrevTrack(int &eventNumber, int &trackNumber, int &InterationNumber)
Definition: PlotValNtuple.cxx:58
displayBarrelXY
Definition: display_track.h:84
PlotValNtuple::m_mode
DisplayMode m_mode
Definition: PlotValNtuple.h:126