Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
v
w
x
z
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
GitLab
LXR
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
InnerDetector
InDetSimEvent
InDetSimEvent
TRTHitIdHelper.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef INDETSIMEVENT_TRTHITIDHELPER
6
#define INDETSIMEVENT_TRTHITIDHELPER
7
8
//
9
// This is a helper class to build an identifing integer used by
10
// the simulation. It inherits from HitIdHelper, in order to get
11
// all the packing and shifting for free.
12
// The class is a singleton and a static GetHelper() is provided
13
// the constructor calls the Initialize() method which sets all the
14
// field dimensions
15
// Methods are provided to get access to the TRT Geometry
16
// description
17
//
18
19
20
//
21
// Base Class
22
#include "
HitManagement/HitIdHelper.h
"
23
24
25
class
TRTHitIdHelper
:
HitIdHelper
{
26
public
:
27
//
28
// Access to the helper
29
static
const
TRTHitIdHelper
*
GetHelper
();
30
//
31
// Info retrieval:
32
// Barrel or Endcap
33
bool
isBarrel
(
const
int
& hid)
const
;
34
bool
isEndcap
(
const
int
& hid)
const
;
35
//
36
// Positive or negative side
37
bool
isPositive
(
const
int
& hid)
const
;
38
bool
isNegative
(
const
int
& hid)
const
;
39
40
// Ring or Wheel
41
int
getRingWheel
(
const
int
& hid)
const
;
42
43
// PhiSector
44
int
getPhiSector
(
const
int
& hid)
const
;
45
46
// Layer Plane
47
int
getLayerPlane
(
const
int
& hid)
const
;
48
49
// straw
50
int
getStraw
(
const
int
& hid)
const
;
51
//
52
// Info packing:
53
int
buildHitId
(
const
int
,
const
int
,
const
int
,
const
int
,
const
int
,
const
int
)
const
;
54
55
private
:
56
//
57
// private constructor to have a singleton
58
TRTHitIdHelper
();
59
//
60
// Initialize the helper, only called by the constructor
61
void
Initialize
();
62
};
63
64
#endif // INDETSIMEVENT_TRTHITIDHELPER
TRTHitIdHelper::isNegative
bool isNegative(const int &hid) const
Definition:
TRTHitIdHelper.cxx:44
TRTHitIdHelper::Initialize
void Initialize()
Definition:
TRTHitIdHelper.cxx:18
TRTHitIdHelper::getLayerPlane
int getLayerPlane(const int &hid) const
Definition:
TRTHitIdHelper.cxx:60
TRTHitIdHelper::isBarrel
bool isBarrel(const int &hid) const
Definition:
TRTHitIdHelper.cxx:29
TRTHitIdHelper::getStraw
int getStraw(const int &hid) const
Definition:
TRTHitIdHelper.cxx:65
TRTHitIdHelper::getRingWheel
int getRingWheel(const int &hid) const
Definition:
TRTHitIdHelper.cxx:50
TRTHitIdHelper::GetHelper
static const TRTHitIdHelper * GetHelper()
Definition:
TRTHitIdHelper.cxx:13
TRTHitIdHelper::getPhiSector
int getPhiSector(const int &hid) const
Definition:
TRTHitIdHelper.cxx:55
TRTHitIdHelper::isEndcap
bool isEndcap(const int &hid) const
Definition:
TRTHitIdHelper.cxx:34
TRTHitIdHelper::TRTHitIdHelper
TRTHitIdHelper()
Definition:
TRTHitIdHelper.cxx:9
TRTHitIdHelper::buildHitId
int buildHitId(const int, const int, const int, const int, const int, const int) const
Definition:
TRTHitIdHelper.cxx:72
HitIdHelper
Definition:
HitIdHelper.h:23
HitIdHelper.h
TRTHitIdHelper::isPositive
bool isPositive(const int &hid) const
Definition:
TRTHitIdHelper.cxx:40
TRTHitIdHelper
Definition:
TRTHitIdHelper.h:25
Generated on Sun Apr 20 2025 21:22:46 for ATLAS Offline Software by
1.8.18