ATLAS Offline Software
InnerDetector
InDetAlignEvent
InDetAlignTrkInfo
InDetAlignTrkInfo
AlignSiModule.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_ALIGNSIMODULE_H
6
#define INDETALIGNTRKINFO_ALIGNSIMODULE_H
7
// AlignSiModule.h - hold information on one silicon module for InDetAlignNt
8
// ntuple
9
// Richard Hawkings, started 13/4/04
10
11
#include <atomic>
12
13
class
AlignSiModule
{
14
15
public
:
16
// constructor
17
AlignSiModule
();
18
// access methods
19
int
index
()
const
;
20
int
dettype
()
const
;
21
int
bec
()
const
;
22
int
layer
()
const
;
23
int
ring
()
const
;
24
int
sector
()
const
;
25
int
side
()
const
;
26
int
ncoord
()
const
;
27
float
pos
(
int
)
const
;
28
float
offset
(
int
)
const
;
29
float
rot
(
int
)
const
;
30
float
pitch
()
const
;
31
float
length
()
const
;
32
float
width
(
int
)
const
;
33
int
nhits
()
const
;
34
bool
dead
()
const
;
35
bool
stereo
()
const
;
36
37
// set methods
38
void
set_index
(
int
);
39
void
set_dettype
(
int
);
40
void
set_bec
(
int
);
41
void
set_layer
(
int
);
42
void
set_ring
(
int
);
43
void
set_sector
(
int
);
44
void
set_side
(
int
);
45
void
set_ncoord
(
int
);
46
void
set_pos
(
float
,
int
);
47
void
set_offset
(
float
,
int
);
48
void
set_rot
(
float
,
int
);
49
void
set_pitch
(
float
);
50
void
set_length
(
float
);
51
void
set_width
(
float
,
int
);
52
int
inchits
()
const
;
53
void
set_dead
(
bool
);
54
void
set_stereo
(
bool
);
55
56
private
:
57
int
m_index
;
58
int
m_dettype
;
59
int
m_bec
;
60
int
m_layer
;
61
int
m_ring
;
62
int
m_sector
;
63
int
m_side
;
64
int
m_ncoord
;
65
float
m_pos
[3];
66
float
m_offset
[3];
67
float
m_rot
[9];
68
float
m_pitch
;
69
float
m_length
;
70
float
m_width
[3];
71
mutable
std::atomic_int
m_nhits
;
72
bool
m_dead
;
73
bool
m_stereo
;
74
};
75
76
inline
AlignSiModule::AlignSiModule
() : m_nhits(0), m_dead(false) {}
77
78
inline
int
AlignSiModule::index
()
const
{
return
m_index
; }
79
inline
int
AlignSiModule::dettype
()
const
{
return
m_dettype
; }
80
inline
int
AlignSiModule::bec
()
const
{
return
m_bec
; }
81
inline
int
AlignSiModule::layer
()
const
{
return
m_layer
; }
82
inline
int
AlignSiModule::ring
()
const
{
return
m_ring
; }
83
inline
int
AlignSiModule::sector
()
const
{
return
m_sector
; }
84
inline
int
AlignSiModule::side
()
const
{
return
m_side
; }
85
inline
int
AlignSiModule::ncoord
()
const
{
return
m_ncoord
; }
86
inline
float
AlignSiModule::pos
(
int
i
)
const
{
return
m_pos
[
i
]; }
87
inline
float
AlignSiModule::offset
(
int
i
)
const
{
return
m_offset
[
i
]; }
88
inline
float
AlignSiModule::rot
(
int
i
)
const
{
return
m_rot
[
i
]; }
89
inline
float
AlignSiModule::pitch
()
const
{
return
m_pitch
; }
90
inline
float
AlignSiModule::length
()
const
{
return
m_length
; }
91
inline
float
AlignSiModule::width
(
int
i
)
const
{
return
m_width
[
i
]; }
92
inline
int
AlignSiModule::nhits
()
const
{
return
m_nhits
; }
93
inline
bool
AlignSiModule::dead
()
const
{
return
m_dead
; }
94
inline
bool
AlignSiModule::stereo
()
const
{
return
m_stereo
; }
95
96
97
inline
void
AlignSiModule::set_index
(
int
i
) {
m_index
=
i
; }
98
inline
void
AlignSiModule::set_dettype
(
int
i
) {
m_dettype
=
i
; }
99
inline
void
AlignSiModule::set_bec
(
int
i
) {
m_bec
=
i
; }
100
inline
void
AlignSiModule::set_layer
(
int
i
) {
m_layer
=
i
; }
101
inline
void
AlignSiModule::set_ring
(
int
i
) {
m_ring
=
i
; }
102
inline
void
AlignSiModule::set_sector
(
int
i
) {
m_sector
=
i
; }
103
inline
void
AlignSiModule::set_side
(
int
i
) {
m_side
=
i
; }
104
inline
void
AlignSiModule::set_ncoord
(
int
i
) {
m_ncoord
=
i
; }
105
inline
void
AlignSiModule::set_pos
(
float
f
,
int
i
) {
m_pos
[
i
]=
f
; }
106
inline
void
AlignSiModule::set_offset
(
float
f
,
int
i
) {
m_offset
[
i
]=
f
; }
107
inline
void
AlignSiModule::set_rot
(
float
f
,
int
i
) {
m_rot
[
i
]=
f
; }
108
inline
void
AlignSiModule::set_pitch
(
float
f
) {
m_pitch
=
f
; }
109
inline
void
AlignSiModule::set_length
(
float
f
) {
m_length
=
f
; }
110
inline
void
AlignSiModule::set_width
(
float
f
,
int
i
) {
m_width
[
i
]=
f
; }
111
inline
int
AlignSiModule::inchits
()
const
{
return
++
m_nhits
; }
112
inline
void
AlignSiModule::set_dead
(
bool
b
) {
m_dead
=
b
; }
113
inline
void
AlignSiModule::set_stereo
(
bool
b
) {
m_stereo
=
b
; }
114
115
#endif // INDETALIGNTRKINFO_ALIGNSIMODULE_H
AlignSiModule::set_dead
void set_dead(bool)
Definition:
AlignSiModule.h:112
AlignSiModule::AlignSiModule
AlignSiModule()
Definition:
AlignSiModule.h:76
AlignSiModule::set_ncoord
void set_ncoord(int)
Definition:
AlignSiModule.h:104
AlignSiModule::set_bec
void set_bec(int)
Definition:
AlignSiModule.h:99
AlignSiModule::set_layer
void set_layer(int)
Definition:
AlignSiModule.h:100
AlignSiModule::m_pos
float m_pos[3]
Definition:
AlignSiModule.h:65
AlignSiModule::m_stereo
bool m_stereo
Definition:
AlignSiModule.h:73
AlignSiModule::stereo
bool stereo() const
Definition:
AlignSiModule.h:94
AlignSiModule::sector
int sector() const
Definition:
AlignSiModule.h:83
AlignSiModule::set_ring
void set_ring(int)
Definition:
AlignSiModule.h:101
AlignSiModule::pos
float pos(int) const
Definition:
AlignSiModule.h:86
AlignSiModule::dettype
int dettype() const
Definition:
AlignSiModule.h:79
AlignSiModule::m_ncoord
int m_ncoord
Definition:
AlignSiModule.h:64
AlignSiModule::layer
int layer() const
Definition:
AlignSiModule.h:81
AlignSiModule::set_length
void set_length(float)
Definition:
AlignSiModule.h:109
AlignSiModule::ring
int ring() const
Definition:
AlignSiModule.h:82
AlignSiModule::set_offset
void set_offset(float, int)
Definition:
AlignSiModule.h:106
AlignSiModule::m_bec
int m_bec
Definition:
AlignSiModule.h:59
AlignSiModule::set_width
void set_width(float, int)
Definition:
AlignSiModule.h:110
AlignSiModule::m_length
float m_length
Definition:
AlignSiModule.h:69
AlignSiModule::inchits
int inchits() const
Definition:
AlignSiModule.h:111
AlignSiModule::m_side
int m_side
Definition:
AlignSiModule.h:63
AlignSiModule::m_offset
float m_offset[3]
Definition:
AlignSiModule.h:66
lumiFormat.i
int i
Definition:
lumiFormat.py:85
AlignSiModule::m_rot
float m_rot[9]
Definition:
AlignSiModule.h:67
AlignSiModule::width
float width(int) const
Definition:
AlignSiModule.h:91
AlignSiModule::rot
float rot(int) const
Definition:
AlignSiModule.h:88
AlignSiModule::set_stereo
void set_stereo(bool)
Definition:
AlignSiModule.h:113
AlignSiModule::m_width
float m_width[3]
Definition:
AlignSiModule.h:70
hist_file_dump.f
f
Definition:
hist_file_dump.py:135
AlignSiModule::bec
int bec() const
Definition:
AlignSiModule.h:80
AlignSiModule::m_ring
int m_ring
Definition:
AlignSiModule.h:61
plotBeamSpotMon.b
b
Definition:
plotBeamSpotMon.py:77
AlignSiModule::pitch
float pitch() const
Definition:
AlignSiModule.h:89
AlignSiModule::set_side
void set_side(int)
Definition:
AlignSiModule.h:103
AlignSiModule::m_sector
int m_sector
Definition:
AlignSiModule.h:62
AlignSiModule::side
int side() const
Definition:
AlignSiModule.h:84
AlignSiModule::m_dettype
int m_dettype
Definition:
AlignSiModule.h:58
AlignSiModule::set_pos
void set_pos(float, int)
Definition:
AlignSiModule.h:105
AlignSiModule
Definition:
AlignSiModule.h:13
AlignSiModule::set_dettype
void set_dettype(int)
Definition:
AlignSiModule.h:98
AlignSiModule::nhits
int nhits() const
Definition:
AlignSiModule.h:92
AlignSiModule::set_index
void set_index(int)
Definition:
AlignSiModule.h:97
AlignSiModule::index
int index() const
Definition:
AlignSiModule.h:78
AlignSiModule::ncoord
int ncoord() const
Definition:
AlignSiModule.h:85
AlignSiModule::m_pitch
float m_pitch
Definition:
AlignSiModule.h:68
AlignSiModule::m_index
int m_index
Definition:
AlignSiModule.h:57
AlignSiModule::offset
float offset(int) const
Definition:
AlignSiModule.h:87
AlignSiModule::set_rot
void set_rot(float, int)
Definition:
AlignSiModule.h:107
AlignSiModule::m_dead
bool m_dead
Definition:
AlignSiModule.h:72
AlignSiModule::set_sector
void set_sector(int)
Definition:
AlignSiModule.h:102
AlignSiModule::m_nhits
std::atomic_int m_nhits
Definition:
AlignSiModule.h:71
AlignSiModule::m_layer
int m_layer
Definition:
AlignSiModule.h:60
AlignSiModule::dead
bool dead() const
Definition:
AlignSiModule.h:93
AlignSiModule::length
float length() const
Definition:
AlignSiModule.h:90
AlignSiModule::set_pitch
void set_pitch(float)
Definition:
AlignSiModule.h:108
Generated on Thu Nov 7 2024 21:09:53 for ATLAS Offline Software by
1.8.18