ATLAS Offline Software
AlignTRTHit.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 /********
6 AlignTRTHit is the Alignment TRT Hit information, created by iPatAlign
7 and can be saved in ntuples
8 */
9 #ifndef IPATALIGN_ALIGNTRTHIT_H
10 #define IPATALIGN_ALIGNTRTHIT_H
11 
12 class AlignTRTHit {
13 public:
14  // default constructor
15  AlignTRTHit();
16  // access methods
17  int det() const;
18  int module() const;
19  int phimod() const;
20  int layer() const;
21  int straw() const;
22  float r() const;
23  float phi() const;
24  float z() const;
25  float xdrift() const;
26  float tdrift() const;
27  float res() const;
28  bool highth() const;
29  //set methods
30  void set_index(int,int,int,int,int);
31  void set_r(float);
32  void set_phi(float);
33  void set_z(float);
34  void set_xdrift(float);
35  void set_tdrift(float);
36  void set_res(float);
37  void set_highth(bool);
38 
39 private:
40  int m_det;
41  int m_mod;
42  int m_phimod;
43  int m_layer;
44  int m_straw;
45  float m_r;
46  float m_phi;
47  float m_z;
48  float m_xdrift;
49  float m_tdrift;
50  float m_res;
51  bool m_highth;
52 };
53 
54 inline int AlignTRTHit::det() const { return m_det; }
55 inline int AlignTRTHit::module() const { return m_mod; }
56 inline int AlignTRTHit::phimod() const { return m_phimod; }
57 inline int AlignTRTHit::layer() const { return m_layer; }
58 inline int AlignTRTHit::straw() const { return m_straw; }
59 inline float AlignTRTHit::r() const { return m_r; }
60 inline float AlignTRTHit::phi() const { return m_phi; }
61 inline float AlignTRTHit::z() const { return m_z; }
62 inline float AlignTRTHit::xdrift() const { return m_xdrift; }
63 inline float AlignTRTHit::tdrift() const { return m_tdrift; }
64 inline float AlignTRTHit::res() const { return m_res; }
65 inline bool AlignTRTHit::highth() const { return m_highth; }
66 
67 inline void AlignTRTHit::set_index(int det, int mod, int phimod,
68  int lay, int straw) {
70 inline void AlignTRTHit::set_r(float f) { m_r=f; }
71 inline void AlignTRTHit::set_phi(float f) { m_phi=f; }
72 inline void AlignTRTHit::set_z(float f) { m_z=f; }
73 inline void AlignTRTHit::set_xdrift(float x) { m_xdrift=x; }
74 inline void AlignTRTHit::set_tdrift(float t) { m_tdrift=t; }
75 inline void AlignTRTHit::set_res(float r) { m_res=r; }
76 inline void AlignTRTHit::set_highth(bool b) { m_highth=b; }
77 
78 #endif // IPATALIGN_ALIGNTRTHIT_H
79 
beamspotman.r
def r
Definition: beamspotman.py:676
python.CaloRecoConfig.f
f
Definition: CaloRecoConfig.py:127
TRT::Hit::straw
@ straw
Definition: HitInfo.h:82
AlignTRTHit::set_xdrift
void set_xdrift(float)
Definition: AlignTRTHit.h:73
AlignTRTHit::m_phi
float m_phi
Definition: AlignTRTHit.h:49
AlignTRTHit::m_det
int m_det
Definition: AlignTRTHit.h:43
AlignTRTHit::set_tdrift
void set_tdrift(float)
Definition: AlignTRTHit.h:74
AlignTRTHit
Definition: AlignTRTHit.h:12
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
AlignTRTHit::m_layer
int m_layer
Definition: AlignTRTHit.h:46
x
#define x
AlignTRTHit::phi
float phi() const
Definition: AlignTRTHit.h:60
AlignTRTHit::r
float r() const
Definition: AlignTRTHit.h:59
AlignTRTHit::set_res
void set_res(float)
Definition: AlignTRTHit.h:75
AlignTRTHit::straw
int straw() const
Definition: AlignTRTHit.h:58
AlignTRTHit::m_straw
int m_straw
Definition: AlignTRTHit.h:47
AlignTRTHit::z
float z() const
Definition: AlignTRTHit.h:61
maskDeadModules.mod
mod
Definition: maskDeadModules.py:36
AlignTRTHit::m_mod
int m_mod
Definition: AlignTRTHit.h:44
AlignTRTHit::m_phimod
int m_phimod
Definition: AlignTRTHit.h:45
CaloSwCorrections.phimod
def phimod(flags, cells_name, *args, **kw)
Definition: CaloSwCorrections.py:203
AlignTRTHit::set_z
void set_z(float)
Definition: AlignTRTHit.h:72
AlignTRTHit::m_res
float m_res
Definition: AlignTRTHit.h:53
WritePulseShapeToCool.det
det
Definition: WritePulseShapeToCool.py:204
AlignTRTHit::tdrift
float tdrift() const
Definition: AlignTRTHit.h:63
AlignTRTHit::m_highth
bool m_highth
Definition: AlignTRTHit.h:54
AlignTRTHit::set_index
void set_index(int, int, int, int, int)
Definition: AlignTRTHit.h:67
AlignTRTHit::m_r
float m_r
Definition: AlignTRTHit.h:48
AlignTRTHit::m_tdrift
float m_tdrift
Definition: AlignTRTHit.h:52
AlignTRTHit::AlignTRTHit
AlignTRTHit()
Definition: AlignTRTHit.cxx:10
AlignTRTHit::set_phi
void set_phi(float)
Definition: AlignTRTHit.h:71
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
AlignTRTHit::m_xdrift
float m_xdrift
Definition: AlignTRTHit.h:51
AlignTRTHit::module
int module() const
Definition: AlignTRTHit.h:55
AlignTRTHit::det
int det() const
Definition: AlignTRTHit.h:54
AlignTRTHit::xdrift
float xdrift() const
Definition: AlignTRTHit.h:62
AlignTRTHit::set_r
void set_r(float)
Definition: AlignTRTHit.h:70
AlignTRTHit::m_z
float m_z
Definition: AlignTRTHit.h:50
AlignTRTHit::highth
bool highth() const
Definition: AlignTRTHit.h:65
AlignTRTHit::layer
int layer() const
Definition: AlignTRTHit.h:57
AlignTRTHit::res
float res() const
Definition: AlignTRTHit.h:64
AlignTRTHit::phimod
int phimod() const
Definition: AlignTRTHit.h:56
AlignTRTHit::set_highth
void set_highth(bool)
Definition: AlignTRTHit.h:76