DataFormats
FEDRawData
src
FEDNumbering.cc
Go to the documentation of this file.
1
5
#include "
DataFormats/FEDRawData/interface/FEDNumbering.h
"
6
#include <cassert>
7
8
using namespace
std
;
9
10
namespace
{
11
12
constexpr std::array<bool, FEDNumbering::FEDNumbering::MAXFEDID + 1> initIn() {
13
std::array<bool, FEDNumbering::MAXFEDID + 1>
in
= {};
14
int
i
= 0;
15
for
(
i
= 0;
i
<=
FEDNumbering::MAXFEDID
;
i
++) {
16
in
[
i
] =
false
;
17
}
18
for
(
i
=
FEDNumbering::MINSiPixelFEDID
;
i
<=
FEDNumbering::MAXSiPixelFEDID
;
i
++) {
19
in
[
i
] =
true
;
20
}
21
for
(
i
=
FEDNumbering::MINSiStripFEDID
;
i
<=
FEDNumbering::MAXSiStripFEDID
;
i
++) {
22
in
[
i
] =
true
;
23
}
24
for
(
i
=
FEDNumbering::MINPreShowerFEDID
;
i
<=
FEDNumbering::MAXPreShowerFEDID
;
i
++) {
25
in
[
i
] =
true
;
26
}
27
for
(
i
=
FEDNumbering::MINECALFEDID
;
i
<=
FEDNumbering::MAXECALFEDID
;
i
++) {
28
in
[
i
] =
true
;
29
}
30
for
(
i
=
FEDNumbering::MINCASTORFEDID
;
i
<=
FEDNumbering::MAXCASTORFEDID
;
i
++) {
31
in
[
i
] =
true
;
32
}
33
for
(
i
=
FEDNumbering::MINHCALFEDID
;
i
<=
FEDNumbering::MAXHCALFEDID
;
i
++) {
34
in
[
i
] =
true
;
35
}
36
for
(
i
=
FEDNumbering::MINLUMISCALERSFEDID
;
i
<=
FEDNumbering::MAXLUMISCALERSFEDID
;
i
++) {
37
in
[
i
] =
true
;
38
}
39
for
(
i
=
FEDNumbering::MINCSCFEDID
;
i
<=
FEDNumbering::MAXCSCFEDID
;
i
++) {
40
in
[
i
] =
true
;
41
}
42
for
(
i
=
FEDNumbering::MINCSCTFFEDID
;
i
<=
FEDNumbering::MAXCSCTFFEDID
;
i
++) {
43
in
[
i
] =
true
;
44
}
45
for
(
i
=
FEDNumbering::MINDTFEDID
;
i
<=
FEDNumbering::MAXDTFEDID
;
i
++) {
46
in
[
i
] =
true
;
47
}
48
for
(
i
=
FEDNumbering::MINDTTFFEDID
;
i
<=
FEDNumbering::MAXDTTFFEDID
;
i
++) {
49
in
[
i
] =
true
;
50
}
51
for
(
i
=
FEDNumbering::MINRPCFEDID
;
i
<=
FEDNumbering::MAXRPCFEDID
;
i
++) {
52
in
[
i
] =
true
;
53
}
54
for
(
i
=
FEDNumbering::MINTriggerGTPFEDID
;
i
<=
FEDNumbering::MAXTriggerGTPFEDID
;
i
++) {
55
in
[
i
] =
true
;
56
}
57
for
(
i
=
FEDNumbering::MINTriggerEGTPFEDID
;
i
<=
FEDNumbering::MAXTriggerEGTPFEDID
;
i
++) {
58
in
[
i
] =
true
;
59
}
60
for
(
i
=
FEDNumbering::MINTriggerGCTFEDID
;
i
<=
FEDNumbering::MAXTriggerGCTFEDID
;
i
++) {
61
in
[
i
] =
true
;
62
}
63
for
(
i
=
FEDNumbering::MINTriggerLTCFEDID
;
i
<=
FEDNumbering::MAXTriggerLTCFEDID
;
i
++) {
64
in
[
i
] =
true
;
65
}
66
for
(
i
=
FEDNumbering::MINTriggerLTCmtccFEDID
;
i
<=
FEDNumbering::MAXTriggerLTCmtccFEDID
;
i
++) {
67
in
[
i
] =
true
;
68
}
69
for
(
i
=
FEDNumbering::MINCSCDDUFEDID
;
i
<=
FEDNumbering::MAXCSCDDUFEDID
;
i
++) {
70
in
[
i
] =
true
;
71
}
72
for
(
i
=
FEDNumbering::MINCSCContingencyFEDID
;
i
<=
FEDNumbering::MAXCSCContingencyFEDID
;
i
++) {
73
in
[
i
] =
true
;
74
}
75
for
(
i
=
FEDNumbering::MINCSCTFSPFEDID
;
i
<=
FEDNumbering::MAXCSCTFSPFEDID
;
i
++) {
76
in
[
i
] =
true
;
77
}
78
for
(
i
=
FEDNumbering::MINDAQeFEDFEDID
;
i
<=
FEDNumbering::MAXDAQeFEDFEDID
;
i
++) {
79
in
[
i
] =
true
;
80
}
81
for
(
i
=
FEDNumbering::MINDAQmFEDFEDID
;
i
<=
FEDNumbering::MAXDAQmFEDFEDID
;
i
++) {
82
in
[
i
] =
true
;
83
}
84
for
(
i
=
FEDNumbering::MINTCDSuTCAFEDID
;
i
<=
FEDNumbering::MAXTCDSuTCAFEDID
;
i
++) {
85
in
[
i
] =
true
;
86
}
87
for
(
i
=
FEDNumbering::MINHCALuTCAFEDID
;
i
<=
FEDNumbering::MAXHCALuTCAFEDID
;
i
++) {
88
in
[
i
] =
true
;
89
}
90
for
(
i
=
FEDNumbering::MINSiPixeluTCAFEDID
;
i
<=
FEDNumbering::MAXSiPixeluTCAFEDID
;
i
++) {
91
in
[
i
] =
true
;
92
}
93
for
(
i
=
FEDNumbering::MINDTUROSFEDID
;
i
<=
FEDNumbering::MAXDTUROSFEDID
;
i
++) {
94
in
[
i
] =
true
;
95
}
96
for
(
i
=
FEDNumbering::MINTriggerUpgradeFEDID
;
i
<=
FEDNumbering::MAXTriggerUpgradeFEDID
;
i
++) {
97
in
[
i
] =
true
;
98
}
99
return
in
;
100
}
101
102
constexpr std::array<bool, FEDNumbering::MAXFEDID + 1> in_ = initIn();
103
104
}
// namespace
105
106
bool
FEDNumbering::inRange
(
int
i
) {
return
in_[
i
]; }
107
bool
FEDNumbering::inRangeNoGT
(
int
i
) {
108
if
((
i
>= MINTriggerGTPFEDID &&
i
<= MAXTriggerGTPFEDID) || (
i
>= MINTriggerEGTPFEDID &&
i
<= MAXTriggerEGTPFEDID))
109
return
false
;
110
return
in_[
i
];
111
}
FEDNumbering::MAXCSCTFFEDID
Definition:
FEDNumbering.h:54
FEDNumbering::MINTCDSuTCAFEDID
Definition:
FEDNumbering.h:101
FEDNumbering::MINTriggerUpgradeFEDID
Definition:
FEDNumbering.h:113
mps_fire.i
i
Definition:
mps_fire.py:429
FEDNumbering::MINSiPixelFEDID
Definition:
FEDNumbering.h:27
FEDNumbering::MAXPreShowerFEDID
Definition:
FEDNumbering.h:32
FEDNumbering::MAXSiStripFEDID
Definition:
FEDNumbering.h:30
FEDNumbering::MINPreShowerFEDID
Definition:
FEDNumbering.h:31
FEDNumbering::MINDAQeFEDFEDID
Definition:
FEDNumbering.h:95
FEDNumbering::MAXCSCTFSPFEDID
Definition:
FEDNumbering.h:94
FEDNumbering::MAXTriggerLTCmtccFEDID
Definition:
FEDNumbering.h:70
FEDNumbering::MAXHCALFEDID
Definition:
FEDNumbering.h:48
FEDNumbering::MAXDAQmFEDFEDID
Definition:
FEDNumbering.h:100
FEDNumbering::MAXCSCContingencyFEDID
Definition:
FEDNumbering.h:92
FEDNumbering::MAXTriggerGTPFEDID
Definition:
FEDNumbering.h:62
FEDNumbering::MAXSiPixelFEDID
Definition:
FEDNumbering.h:28
FEDNumbering::MAXDTTFFEDID
Definition:
FEDNumbering.h:58
std
Definition:
JetResolutionObject.h:76
recoMuon::in
Definition:
RecoMuonEnumerators.h:6
FEDNumbering::MAXDAQeFEDFEDID
Definition:
FEDNumbering.h:96
FEDNumbering::MAXDTUROSFEDID
Definition:
FEDNumbering.h:112
FEDNumbering::MINHCALuTCAFEDID
Definition:
FEDNumbering.h:103
FEDNumbering::MAXDTFEDID
Definition:
FEDNumbering.h:56
FEDNumbering::MINDAQmFEDFEDID
Definition:
FEDNumbering.h:99
FEDNumbering::MINTriggerEGTPFEDID
Definition:
FEDNumbering.h:63
FEDNumbering::MAXCSCDDUFEDID
Definition:
FEDNumbering.h:90
FEDNumbering::MAXCASTORFEDID
Definition:
FEDNumbering.h:46
FEDNumbering::MAXTCDSuTCAFEDID
Definition:
FEDNumbering.h:102
FEDNumbering::MINCSCContingencyFEDID
Definition:
FEDNumbering.h:91
FEDNumbering::MINSiPixeluTCAFEDID
Definition:
FEDNumbering.h:105
FEDNumbering::MAXECALFEDID
Definition:
FEDNumbering.h:44
FEDNumbering::MAXTriggerGCTFEDID
Definition:
FEDNumbering.h:66
FEDNumbering::MAXRPCFEDID
Definition:
FEDNumbering.h:60
FEDNumbering::MINCSCTFFEDID
Definition:
FEDNumbering.h:53
FEDNumbering::MAXHCALuTCAFEDID
Definition:
FEDNumbering.h:104
FEDNumbering::MINCASTORFEDID
Definition:
FEDNumbering.h:45
FEDNumbering::MAXFEDID
Definition:
FEDNumbering.h:26
FEDNumbering::MINCSCTFSPFEDID
Definition:
FEDNumbering.h:93
FEDNumbering::MAXTriggerEGTPFEDID
Definition:
FEDNumbering.h:64
FEDNumbering::MINCSCDDUFEDID
Definition:
FEDNumbering.h:89
FEDNumbering::MINDTUROSFEDID
Definition:
FEDNumbering.h:111
FEDNumbering::MINCSCFEDID
Definition:
FEDNumbering.h:51
FEDNumbering::MINTriggerLTCmtccFEDID
Definition:
FEDNumbering.h:69
FEDNumbering::inRange
static bool inRange(int)
Definition:
FEDNumbering.cc:106
FEDNumbering::MINHCALFEDID
Definition:
FEDNumbering.h:47
FEDNumbering::MINTriggerGCTFEDID
Definition:
FEDNumbering.h:65
FEDNumbering::MAXTriggerLTCFEDID
Definition:
FEDNumbering.h:68
FEDNumbering::MINSiStripFEDID
Definition:
FEDNumbering.h:29
FEDNumbering::MAXLUMISCALERSFEDID
Definition:
FEDNumbering.h:50
FEDNumbering::MAXTriggerUpgradeFEDID
Definition:
FEDNumbering.h:114
FEDNumbering::MINLUMISCALERSFEDID
Definition:
FEDNumbering.h:49
FEDNumbering::MINDTTFFEDID
Definition:
FEDNumbering.h:57
FEDNumbering::MINTriggerLTCFEDID
Definition:
FEDNumbering.h:67
FEDNumbering::MINECALFEDID
Definition:
FEDNumbering.h:43
FEDNumbering::inRangeNoGT
static bool inRangeNoGT(int)
Definition:
FEDNumbering.cc:107
FEDNumbering::MAXSiPixeluTCAFEDID
Definition:
FEDNumbering.h:106
FEDNumbering.h
FEDNumbering::MINDTFEDID
Definition:
FEDNumbering.h:55
FEDNumbering::MAXCSCFEDID
Definition:
FEDNumbering.h:52
FEDNumbering::MINRPCFEDID
Definition:
FEDNumbering.h:59
FEDNumbering::MINTriggerGTPFEDID
Definition:
FEDNumbering.h:61
Generated for CMSSW Reference Manual by
1.8.14