Main Page
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
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
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
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
_
a
d
e
f
l
m
o
p
s
t
u
v
Related 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
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
DPGAnalysis
SiStripTools
src
SiStripTKNumbers.cc
Go to the documentation of this file.
1
//#include <map>
2
3
#include "
DataFormats/DetId/interface/DetId.h
"
4
#include "
DataFormats/SiStripDetId/interface/StripSubdetector.h
"
5
#include "
DPGAnalysis/SiStripTools/interface/SiStripTKNumbers.h
"
6
7
SiStripTKNumbers::SiStripTKNumbers
() {
8
DetId
tk(
DetId::Tracker
, 0);
9
_nmodules
[tk.
rawId
()] = (3540 - 816) + 816 + 5208 + 6400;
10
_nfibres
[tk.
rawId
()] = (9192 - 2208) + 2208 + 12906 + 15104;
11
_nmodules
[tk.
subdetId
()] =
_nmodules
[tk.
rawId
()];
12
_nfibres
[tk.
subdetId
()] =
_nfibres
[tk.
rawId
()];
13
14
DetId
tib(
DetId::Tracker
,
StripSubdetector::TIB
);
15
_nmodules
[tib.
rawId
()] = 3540 - 816;
16
_nfibres
[tib.
rawId
()] = 9192 - 2208;
17
_nmodules
[tib.
subdetId
()] =
_nmodules
[tib.
rawId
()];
18
_nfibres
[tib.
subdetId
()] =
_nfibres
[tib.
rawId
()];
19
20
DetId
tid(
DetId::Tracker
,
StripSubdetector::TID
);
21
_nmodules
[tid.
rawId
()] = 816;
22
_nfibres
[tid.
rawId
()] = 2208;
23
_nmodules
[tid.
subdetId
()] =
_nmodules
[tid.
rawId
()];
24
_nfibres
[tid.
subdetId
()] =
_nfibres
[tid.
rawId
()];
25
26
DetId
tob(
DetId::Tracker
,
StripSubdetector::TOB
);
27
_nmodules
[tob.
rawId
()] = 5208;
28
_nfibres
[tob.
rawId
()] = 12906;
29
_nmodules
[tob.
subdetId
()] =
_nmodules
[tob.
rawId
()];
30
_nfibres
[tob.
subdetId
()] =
_nfibres
[tob.
rawId
()];
31
32
DetId
tec(
DetId::Tracker
,
StripSubdetector::TEC
);
33
_nmodules
[tec.
rawId
()] = 6400;
34
_nfibres
[tec.
rawId
()] = 15104;
35
_nmodules
[tec.
subdetId
()] =
_nmodules
[tec.
rawId
()];
36
_nfibres
[tec.
subdetId
()] =
_nfibres
[tec.
rawId
()];
37
38
DetId
tecp(
DetId
(
DetId::Tracker
,
StripSubdetector::TEC
).rawId() | ((1 & 0x3) << 18));
39
_nmodules
[tecp.
rawId
()] = 3200;
40
_nfibres
[tecp.
rawId
()] = 7552;
41
42
DetId
tecm(
DetId
(
DetId::Tracker
,
StripSubdetector::TEC
).rawId() | ((2 & 0x3) << 18));
43
_nmodules
[tecm.
rawId
()] = 3200;
44
_nfibres
[tecm.
rawId
()] = 7552;
45
}
46
47
int
SiStripTKNumbers::nmodules
(
const
DetId
& detid)
const
{
48
int
subd = detid.
subdetId
();
49
if
(
_nmodules
.find(subd) !=
_nmodules
.end())
50
return
_nmodules
.find(subd)->second;
51
52
return
0;
53
}
54
55
int
SiStripTKNumbers::nmodules
(
const
int
id
)
const
{
56
if
(
_nmodules
.find(
id
) !=
_nmodules
.end())
57
return
_nmodules
.find(
id
)->second;
58
59
return
0;
60
}
61
62
int
SiStripTKNumbers::nfibres
(
const
DetId
& detid)
const
{
63
int
subd = detid.
subdetId
();
64
if
(
_nfibres
.find(subd) !=
_nfibres
.end())
65
return
_nfibres
.find(subd)->second;
66
67
return
0;
68
}
69
70
int
SiStripTKNumbers::nfibres
(
const
int
id
)
const
{
71
if
(
_nfibres
.find(
id
) !=
_nfibres
.end())
72
return
_nfibres
.find(
id
)->second;
73
74
return
0;
75
}
76
77
int
SiStripTKNumbers::napvs
(
const
DetId
& detid)
const
{
return
nfibres
(detid) *
_apvsperfibre
; }
78
79
int
SiStripTKNumbers::napvs
(
const
int
id
)
const
{
return
nfibres
(
id
) *
_apvsperfibre
; }
80
81
int
SiStripTKNumbers::nstrips
(
const
DetId
& detid)
const
{
return
nfibres
(detid) *
_apvsperfibre
*
_stripsperapv
; }
82
83
int
SiStripTKNumbers::nstrips
(
const
int
id
)
const
{
return
nfibres
(
id
) *
_apvsperfibre
*
_stripsperapv
; }
SiStripTKNumbers::_stripsperapv
static const int _stripsperapv
Definition:
SiStripTKNumbers.h:29
SiStripTKNumbers::nfibres
int nfibres(const DetId &detid) const
Definition:
SiStripTKNumbers.cc:62
SiStripTKNumbers::_nmodules
std::map< int, int > _nmodules
Definition:
SiStripTKNumbers.h:25
DetId
Definition:
DetId.h:17
SiStripTKNumbers::_nfibres
std::map< int, int > _nfibres
Definition:
SiStripTKNumbers.h:26
StripSubdetector::TIB
static constexpr auto TIB
Definition:
StripSubdetector.h:16
SiStripTKNumbers.h
DetId::subdetId
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
Definition:
DetId.h:48
DetId::Tracker
Definition:
DetId.h:25
SiStripTKNumbers::napvs
int napvs(const DetId &detid) const
Definition:
SiStripTKNumbers.cc:77
SiStripTKNumbers::nstrips
int nstrips(const DetId &detid) const
Definition:
SiStripTKNumbers.cc:81
SiStripTKNumbers::_apvsperfibre
static const int _apvsperfibre
Definition:
SiStripTKNumbers.h:28
DetId::rawId
constexpr uint32_t rawId() const
get the raw id
Definition:
DetId.h:57
StripSubdetector::TEC
static constexpr auto TEC
Definition:
StripSubdetector.h:19
DetId.h
SiStripTKNumbers::nmodules
int nmodules(const DetId &detid) const
Definition:
SiStripTKNumbers.cc:47
StripSubdetector::TOB
static constexpr auto TOB
Definition:
StripSubdetector.h:18
SiStripTKNumbers::SiStripTKNumbers
SiStripTKNumbers()
Definition:
SiStripTKNumbers.cc:7
StripSubdetector.h
StripSubdetector::TID
static constexpr auto TID
Definition:
StripSubdetector.h:17
Generated for CMSSW Reference Manual by
1.8.16