ATLAS Offline Software
AlignSiHit.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 INDETALIGNTRKINFO_ALIGNSIHIT_H
6 #define INDETALIGNTRKINFO_ALIGNSIHIT_H
7 // AlignSiHit.h - hold information on one silicon hit for InDetAlignNt ntuple
8 // Richard Hawkings, started 13/4/04
9 
10 class AlignSiHit {
11 public:
12  // default constructor
13  AlignSiHit();
14  // access methods
15  int index() const;
16  bool isOverlap()const; // in progress
17  int chan1() const;
18  int chan2() const;
19  int clusw() const;
20  int clusl() const;
21  int cluss() const;
22  int status() const;
23  float stereo() const;
24  float rphi_resid() const;
25  float z_resid() const;
26  float erphi_resid() const;
27  float ez_resid() const;
28  float trkExtrapLocalXError() const;
29  float trkExtrapLocalYError() const;
30  float r() const;
31  float phi() const;
32  float z() const;
33  float delzr() const;
34  float sinlocal() const;
35  float locang(int) const;
36  float locdel(int) const;
37  float locedel(int) const;
38  float globang(int) const;
39  float globdel(int) const;
40  float globedel(int) const;
41  float trklen() const;
42  float dtpar1(int) const;
43  float dtpar2(int) const;
44  //set methods
45  void set_index(int);
46  void set_chan1(int);
47  void set_chan2(int);
48  void set_clusw(int);
49  void set_clusl(int);
50  void set_cluss(int);
51  void set_status(int);
52  void set_isOverlap(bool); // in progress
53  void set_stereo(float);
54  void set_rphi_resid(float);
55  void set_z_resid(float);
56  void set_erphi_resid(float);
57  void set_ez_resid(float);
58  void set_trkExtrapLocalXError(float);
59  void set_trkExtrapLocalYError(float);
60  void set_r(float);
61  void set_phi(float);
62  void set_z(float);
63  void set_delzr(float);
64  void set_sinlocal(float);
65  void set_locang(float,int);
66  void set_locdel(float,int);
67  void set_locedel(float,int);
68  void set_globang(float,int);
69  void set_globdel(float,int);
70  void set_globedel(float,int);
71  void set_trklen(float);
72  void set_dtpar1(float,int);
73  void set_dtpar2(float,int);
74 
75 private:
76  int m_index;
77  int m_chan1;
78  int m_chan2;
79  int m_clusw;
80  int m_clusl;
81  int m_cluss;
82  int m_status;
83  bool m_isOverlap; //In progress: this variable identify overlaphit=true
84  float m_stereo;
85  float m_rphi_resid;
86  float m_z_resid;
88  float m_ez_resid;
89  float m_trkExtrapLocalXError; // error of the track extrapolation to module surface in the local x coordinate
90  float m_trkExtrapLocalYError; // error of the track extrapolation to module surface in the local y coordinate
91  float m_r;
92  float m_phi;
93  float m_z;
94  float m_delzr;
95  float m_sinlocal;
96  float m_locang[2]{}; // local angles: theta,phi
97  float m_locdel[2]{}; // local scatterings: theta, phi
98  float m_locedel[2]{}; // error on local scatterings: theta, phi
99  float m_globang[2]{}; // global angles: cot_theta,phi
100  float m_globdel[2]{}; // global scatterings: cot_theta, phi
101  float m_globedel[2]{}; // error on global scatterings: cot_theta, phi
102  float m_trklen; // track length since last scatterer
103  float m_dtpar1[5]{}; // rphi trackpar derivatives
104  float m_dtpar2[5]{}; // rz trackpar derivatives
105 };
106 
107 
108 
109 
110 inline int AlignSiHit::index() const { return m_index; }
111 inline int AlignSiHit::chan1() const { return m_chan1; }
112 inline int AlignSiHit::chan2() const { return m_chan2; }
113 inline int AlignSiHit::clusw() const { return m_clusw; }
114 inline int AlignSiHit::clusl() const { return m_clusl; }
115 inline int AlignSiHit::cluss() const { return m_cluss; }
116 inline int AlignSiHit::status() const { return m_status; }
117 inline bool AlignSiHit::isOverlap() const { return m_isOverlap; }// in progress
118 
119 inline float AlignSiHit::stereo() const { return m_stereo; }
120 inline float AlignSiHit::rphi_resid() const { return m_rphi_resid; }
121 inline float AlignSiHit::z_resid() const { return m_z_resid; }
122 inline float AlignSiHit::erphi_resid() const { return m_erphi_resid; }
123 inline float AlignSiHit::ez_resid() const { return m_ez_resid; }
126 inline float AlignSiHit::r() const { return m_r; }
127 inline float AlignSiHit::phi() const { return m_phi; }
128 inline float AlignSiHit::z() const { return m_z; }
129 inline float AlignSiHit::delzr() const { return m_delzr; }
130 inline float AlignSiHit::sinlocal() const { return m_sinlocal; }
131 inline float AlignSiHit::locang(int i) const { return m_locang[i]; }
132 inline float AlignSiHit::locdel(int i) const { return m_locdel[i]; }
133 inline float AlignSiHit::locedel(int i) const { return m_locedel[i]; }
134 inline float AlignSiHit::globang(int i) const { return m_globang[i]; }
135 inline float AlignSiHit::globdel(int i) const { return m_globdel[i]; }
136 inline float AlignSiHit::globedel(int i) const { return m_globedel[i]; }
137 inline float AlignSiHit::trklen() const { return m_trklen; }
138 inline float AlignSiHit::dtpar1(int i) const { return m_dtpar1[i]; }
139 inline float AlignSiHit::dtpar2(int i) const { return m_dtpar2[i]; }
140 
141 inline void AlignSiHit::set_index(int i) { m_index=i; }
142 inline void AlignSiHit::set_chan1(int i) { m_chan1=i; }
143 inline void AlignSiHit::set_chan2(int i) { m_chan2=i; }
144 inline void AlignSiHit::set_clusw(int i) { m_clusw=i; }
145 inline void AlignSiHit::set_clusl(int i) { m_clusl=i; }
146 inline void AlignSiHit::set_cluss(int i) { m_cluss=i; }
147 inline void AlignSiHit::set_status(int i) { m_status=i; }
148 inline void AlignSiHit::set_isOverlap(bool b) { m_isOverlap=b; }// in progress
149 
150 inline void AlignSiHit::set_stereo(float f) { m_stereo=f; }
152 inline void AlignSiHit::set_z_resid(float f) { m_z_resid=f; }
154 inline void AlignSiHit::set_ez_resid(float f) { m_ez_resid=f; }
157 inline void AlignSiHit::set_r(float f) { m_r=f; }
158 inline void AlignSiHit::set_phi(float f) { m_phi=f; }
159 inline void AlignSiHit::set_z(float f) { m_z=f; }
160 inline void AlignSiHit::set_delzr(float f) { m_delzr=f; }
161 inline void AlignSiHit::set_sinlocal(float f) { m_sinlocal=f; }
162 inline void AlignSiHit::set_locang(float f,int i) { m_locang[i]=f; }
163 inline void AlignSiHit::set_locdel(float f,int i) { m_locdel[i]=f; }
164 inline void AlignSiHit::set_locedel(float f,int i) { m_locedel[i]=f; }
165 inline void AlignSiHit::set_globang(float f,int i) { m_globang[i]=f; }
166 inline void AlignSiHit::set_globdel(float f,int i) { m_globdel[i]=f; }
167 inline void AlignSiHit::set_globedel(float f,int i) { m_globedel[i]=f; }
168 inline void AlignSiHit::set_trklen(float f) { m_trklen=f; }
169 inline void AlignSiHit::set_dtpar1(float f,int i) { m_dtpar1[i]=f; }
170 inline void AlignSiHit::set_dtpar2(float f,int i) { m_dtpar2[i]=f; }
171 
172 #endif // INDETALIGNTRKINFO_ALIGNSIHIT_H
AlignSiHit::m_globdel
float m_globdel[2]
Definition: AlignSiHit.h:100
AlignSiHit::set_index
void set_index(int)
Definition: AlignSiHit.h:141
AlignSiHit::AlignSiHit
AlignSiHit()
Definition: AlignSiHit.cxx:10
AlignSiHit::set_delzr
void set_delzr(float)
Definition: AlignSiHit.h:160
AlignSiHit::z_resid
float z_resid() const
Definition: AlignSiHit.h:121
AlignSiHit::globdel
float globdel(int) const
Definition: AlignSiHit.h:135
AlignSiHit::set_trklen
void set_trklen(float)
Definition: AlignSiHit.h:168
AlignSiHit::m_stereo
float m_stereo
Definition: AlignSiHit.h:84
AlignSiHit::set_dtpar1
void set_dtpar1(float, int)
Definition: AlignSiHit.h:169
AlignSiHit::m_erphi_resid
float m_erphi_resid
Definition: AlignSiHit.h:87
AlignSiHit::m_locang
float m_locang[2]
Definition: AlignSiHit.h:96
AlignSiHit::set_chan1
void set_chan1(int)
Definition: AlignSiHit.h:142
AlignSiHit::set_globang
void set_globang(float, int)
Definition: AlignSiHit.h:165
AlignSiHit::set_globedel
void set_globedel(float, int)
Definition: AlignSiHit.h:167
AlignSiHit::set_clusw
void set_clusw(int)
Definition: AlignSiHit.h:144
AlignSiHit::m_cluss
int m_cluss
Definition: AlignSiHit.h:81
AlignSiHit::set_locedel
void set_locedel(float, int)
Definition: AlignSiHit.h:164
AlignSiHit::ez_resid
float ez_resid() const
Definition: AlignSiHit.h:123
AlignSiHit::trklen
float trklen() const
Definition: AlignSiHit.h:137
AlignSiHit::dtpar1
float dtpar1(int) const
Definition: AlignSiHit.h:138
AlignSiHit::stereo
float stereo() const
Definition: AlignSiHit.h:119
AlignSiHit::trkExtrapLocalXError
float trkExtrapLocalXError() const
Definition: AlignSiHit.h:124
AlignSiHit::locdel
float locdel(int) const
Definition: AlignSiHit.h:132
AlignSiHit::m_globang
float m_globang[2]
Definition: AlignSiHit.h:99
AlignSiHit::clusl
int clusl() const
Definition: AlignSiHit.h:114
AlignSiHit::m_rphi_resid
float m_rphi_resid
Definition: AlignSiHit.h:85
AlignSiHit::set_cluss
void set_cluss(int)
Definition: AlignSiHit.h:146
AlignSiHit::sinlocal
float sinlocal() const
Definition: AlignSiHit.h:130
AlignSiHit::set_clusl
void set_clusl(int)
Definition: AlignSiHit.h:145
AlignSiHit
Definition: AlignSiHit.h:10
AlignSiHit::m_ez_resid
float m_ez_resid
Definition: AlignSiHit.h:88
AlignSiHit::cluss
int cluss() const
Definition: AlignSiHit.h:115
AlignSiHit::m_r
float m_r
Definition: AlignSiHit.h:91
AlignSiHit::m_locedel
float m_locedel[2]
Definition: AlignSiHit.h:98
AlignSiHit::set_globdel
void set_globdel(float, int)
Definition: AlignSiHit.h:166
AlignSiHit::set_ez_resid
void set_ez_resid(float)
Definition: AlignSiHit.h:154
AlignSiHit::set_trkExtrapLocalXError
void set_trkExtrapLocalXError(float)
Definition: AlignSiHit.h:155
AlignSiHit::set_locdel
void set_locdel(float, int)
Definition: AlignSiHit.h:163
AlignSiHit::chan1
int chan1() const
Definition: AlignSiHit.h:111
AlignSiHit::m_delzr
float m_delzr
Definition: AlignSiHit.h:94
AlignSiHit::m_clusw
int m_clusw
Definition: AlignSiHit.h:79
AlignSiHit::trkExtrapLocalYError
float trkExtrapLocalYError() const
Definition: AlignSiHit.h:125
AlignSiHit::set_sinlocal
void set_sinlocal(float)
Definition: AlignSiHit.h:161
AlignSiHit::m_trkExtrapLocalYError
float m_trkExtrapLocalYError
Definition: AlignSiHit.h:90
AlignSiHit::set_rphi_resid
void set_rphi_resid(float)
Definition: AlignSiHit.h:151
lumiFormat.i
int i
Definition: lumiFormat.py:85
AlignSiHit::m_phi
float m_phi
Definition: AlignSiHit.h:92
AlignSiHit::m_z_resid
float m_z_resid
Definition: AlignSiHit.h:86
hist_file_dump.f
f
Definition: hist_file_dump.py:135
AlignSiHit::r
float r() const
Definition: AlignSiHit.h:126
AlignSiHit::m_status
int m_status
Definition: AlignSiHit.h:82
AlignSiHit::chan2
int chan2() const
Definition: AlignSiHit.h:112
AlignSiHit::globedel
float globedel(int) const
Definition: AlignSiHit.h:136
AlignSiHit::m_z
float m_z
Definition: AlignSiHit.h:93
AlignSiHit::set_chan2
void set_chan2(int)
Definition: AlignSiHit.h:143
AlignSiHit::set_z
void set_z(float)
Definition: AlignSiHit.h:159
AlignSiHit::z
float z() const
Definition: AlignSiHit.h:128
AlignSiHit::delzr
float delzr() const
Definition: AlignSiHit.h:129
AlignSiHit::set_phi
void set_phi(float)
Definition: AlignSiHit.h:158
AlignSiHit::m_chan2
int m_chan2
Definition: AlignSiHit.h:78
AlignSiHit::status
int status() const
Definition: AlignSiHit.h:116
AlignSiHit::m_dtpar1
float m_dtpar1[5]
Definition: AlignSiHit.h:103
AlignSiHit::m_globedel
float m_globedel[2]
Definition: AlignSiHit.h:101
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
AlignSiHit::locedel
float locedel(int) const
Definition: AlignSiHit.h:133
AlignSiHit::set_r
void set_r(float)
Definition: AlignSiHit.h:157
AlignSiHit::m_index
int m_index
Definition: AlignSiHit.h:76
AlignSiHit::m_locdel
float m_locdel[2]
Definition: AlignSiHit.h:97
AlignSiHit::set_locang
void set_locang(float, int)
Definition: AlignSiHit.h:162
AlignSiHit::index
int index() const
Definition: AlignSiHit.h:110
AlignSiHit::set_stereo
void set_stereo(float)
Definition: AlignSiHit.h:150
AlignSiHit::globang
float globang(int) const
Definition: AlignSiHit.h:134
AlignSiHit::m_sinlocal
float m_sinlocal
Definition: AlignSiHit.h:95
AlignSiHit::clusw
int clusw() const
Definition: AlignSiHit.h:113
AlignSiHit::m_chan1
int m_chan1
Definition: AlignSiHit.h:77
AlignSiHit::dtpar2
float dtpar2(int) const
Definition: AlignSiHit.h:139
AlignSiHit::set_status
void set_status(int)
Definition: AlignSiHit.h:147
AlignSiHit::set_erphi_resid
void set_erphi_resid(float)
Definition: AlignSiHit.h:153
AlignSiHit::set_z_resid
void set_z_resid(float)
Definition: AlignSiHit.h:152
AlignSiHit::set_dtpar2
void set_dtpar2(float, int)
Definition: AlignSiHit.h:170
AlignSiHit::locang
float locang(int) const
Definition: AlignSiHit.h:131
AlignSiHit::m_dtpar2
float m_dtpar2[5]
Definition: AlignSiHit.h:104
AlignSiHit::erphi_resid
float erphi_resid() const
Definition: AlignSiHit.h:122
AlignSiHit::m_isOverlap
bool m_isOverlap
Definition: AlignSiHit.h:83
AlignSiHit::m_trkExtrapLocalXError
float m_trkExtrapLocalXError
Definition: AlignSiHit.h:89
AlignSiHit::phi
float phi() const
Definition: AlignSiHit.h:127
AlignSiHit::rphi_resid
float rphi_resid() const
Definition: AlignSiHit.h:120
AlignSiHit::set_isOverlap
void set_isOverlap(bool)
Definition: AlignSiHit.h:148
AlignSiHit::isOverlap
bool isOverlap() const
Definition: AlignSiHit.h:117
AlignSiHit::m_clusl
int m_clusl
Definition: AlignSiHit.h:80
AlignSiHit::set_trkExtrapLocalYError
void set_trkExtrapLocalYError(float)
Definition: AlignSiHit.h:156
AlignSiHit::m_trklen
float m_trklen
Definition: AlignSiHit.h:102