Main Page
Namespaces
Classes
Package Documentation
src
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
9
using namespace
std
;
10
11
namespace
{
12
13
constexpr
std::array<bool, FEDNumbering::FEDNumbering::MAXFEDID+1> initIn() {
14
std::array<bool, FEDNumbering::MAXFEDID+1>
in
={{
false
}};
15
16
int
i
= 0;
17
for
(i=0; i<
FEDNumbering::lastFEDId
(); i++)
18
in[i] =
false
;
19
for
(i=
FEDNumbering::MINSiPixelFEDID
; i<=
FEDNumbering::MAXSiPixelFEDID
; i++)
20
{
21
in[
i
] =
true
;
22
}
23
for
(i=
FEDNumbering::MINSiStripFEDID
; i<=
FEDNumbering::MAXSiStripFEDID
; i++)
24
{
25
in[
i
] =
true
;
26
}
27
for
(i=
FEDNumbering::MINPreShowerFEDID
; i<=
FEDNumbering::MAXPreShowerFEDID
; i++)
28
{
29
in[
i
] =
true
;
30
}
31
for
(i=
FEDNumbering::MINECALFEDID
; i<=
FEDNumbering::MAXECALFEDID
; i++)
32
{
33
in[
i
] =
true
;
34
}
35
for
(i=
FEDNumbering::MINCASTORFEDID
; i<=
FEDNumbering::MAXCASTORFEDID
; i++)
36
{
37
in[
i
] =
true
;
38
}
39
for
(i=
FEDNumbering::MINHCALFEDID
; i<=
FEDNumbering::MAXHCALFEDID
; i++)
40
{
41
in[
i
] =
true
;
42
}
43
for
(i=
FEDNumbering::MINLUMISCALERSFEDID
; i<=
FEDNumbering::MAXLUMISCALERSFEDID
; i++)
44
{
45
in[
i
] =
true
;
46
}
47
for
(i=
FEDNumbering::MINCSCFEDID
; i<=
FEDNumbering::MAXCSCFEDID
; i++)
48
{
49
in[
i
] =
true
;
50
}
51
for
(i=
FEDNumbering::MINCSCTFFEDID
; i<=
FEDNumbering::MAXCSCTFFEDID
; i++)
52
{
53
in[
i
] =
true
;
54
}
55
for
(i=
FEDNumbering::MINDTFEDID
; i<=
FEDNumbering::MAXDTFEDID
; i++)
56
{
57
in[
i
] =
true
;
58
}
59
for
(i=
FEDNumbering::MINDTTFFEDID
; i<=
FEDNumbering::MAXDTTFFEDID
; i++)
60
{
61
in[
i
] =
true
;
62
}
63
for
(i=
FEDNumbering::MINRPCFEDID
; i<=
FEDNumbering::MAXRPCFEDID
; i++)
64
{
65
in[
i
] =
true
;
66
}
67
for
(i=
FEDNumbering::MINTriggerGTPFEDID
; i<=
FEDNumbering::MAXTriggerGTPFEDID
; i++)
68
{
69
in[
i
] =
true
;
70
}
71
for
(i=
FEDNumbering::MINTriggerEGTPFEDID
; i<=
FEDNumbering::MAXTriggerEGTPFEDID
; i++)
72
{
73
in[
i
] =
true
;
74
}
75
for
(i=
FEDNumbering::MINTriggerGCTFEDID
; i<=
FEDNumbering::MAXTriggerGCTFEDID
; i++)
76
{
77
in[
i
] =
true
;
78
}
79
for
(i=
FEDNumbering::MINTriggerLTCFEDID
; i<=
FEDNumbering::MAXTriggerLTCFEDID
; i++)
80
{
81
in[
i
] =
true
;
82
}
83
for
(i=
FEDNumbering::MINTriggerLTCmtccFEDID
; i<=
FEDNumbering::MAXTriggerLTCmtccFEDID
; i++)
84
{
85
in[
i
] =
true
;
86
}
87
for
(i=
FEDNumbering::MINCSCDDUFEDID
; i<=
FEDNumbering::MAXCSCDDUFEDID
; i++)
88
{
89
in[
i
] =
true
;
90
}
91
for
(i=
FEDNumbering::MINCSCContingencyFEDID
; i<=
FEDNumbering::MAXCSCContingencyFEDID
; i++)
92
{
93
in[
i
] =
true
;
94
}
95
for
(i=
FEDNumbering::MINCSCTFSPFEDID
; i<=
FEDNumbering::MAXCSCTFSPFEDID
; i++)
96
{
97
in[
i
] =
true
;
98
}
99
for
(i=
FEDNumbering::MINDAQeFEDFEDID
; i<=
FEDNumbering::MAXDAQeFEDFEDID
; i++)
100
{
101
in[
i
] =
true
;
102
}
103
for
(i=
FEDNumbering::MINDAQmFEDFEDID
; i<=
FEDNumbering::MAXDAQmFEDFEDID
; i++)
104
{
105
in[
i
] =
true
;
106
}
107
for
(i=
FEDNumbering::MINTCDSuTCAFEDID
; i<=
FEDNumbering::MAXTCDSuTCAFEDID
; i++)
108
{
109
in[
i
] =
true
;
110
}
111
for
(i=
FEDNumbering::MINHCALuTCAFEDID
; i<=
FEDNumbering::MAXHCALuTCAFEDID
; i++)
112
{
113
in[
i
] =
true
;
114
}
115
for
(i=
FEDNumbering::MINSiPixeluTCAFEDID
; i<=
FEDNumbering::MAXSiPixeluTCAFEDID
; i++)
116
{
117
in[
i
] =
true
;
118
}
119
for
(i=
FEDNumbering::MINDTUROSFEDID
; i<=
FEDNumbering::MAXDTUROSFEDID
; i++)
120
{
121
in[
i
] =
true
;
122
}
123
for
(i=
FEDNumbering::MINTriggerUpgradeFEDID
; i<=
FEDNumbering::MAXTriggerUpgradeFEDID
; i++)
124
{
125
in[
i
] =
true
;
126
}
127
return
in
;
128
}
129
130
constexpr
std::array<bool, FEDNumbering::MAXFEDID+1> in_ = initIn();
131
132
}
133
134
bool
FEDNumbering::inRange
(
int
i)
135
{
136
return
in_[
i
];
137
}
138
bool
FEDNumbering::inRangeNoGT
(
int
i)
139
{
140
if
((i>=MINTriggerGTPFEDID && i<=MAXTriggerGTPFEDID) || (i>=MINTriggerEGTPFEDID && i<=MAXTriggerEGTPFEDID))
return
false
;
141
return
in_[
i
];
142
}
FEDNumbering::MAXCASTORFEDID
Definition:
FEDNumbering.h:51
FEDNumbering::MINECALFEDID
Definition:
FEDNumbering.h:48
FEDNumbering::MINRPCFEDID
Definition:
FEDNumbering.h:64
FEDNumbering::MAXECALFEDID
Definition:
FEDNumbering.h:49
FEDNumbering::MINCSCTFSPFEDID
Definition:
FEDNumbering.h:98
FEDNumbering::MAXTCDSuTCAFEDID
Definition:
FEDNumbering.h:107
FEDNumbering::MINSiPixeluTCAFEDID
Definition:
FEDNumbering.h:110
FEDNumbering::MAXSiPixeluTCAFEDID
Definition:
FEDNumbering.h:111
FEDNumbering::MINTriggerGCTFEDID
Definition:
FEDNumbering.h:70
FEDNumbering::MAXCSCDDUFEDID
Definition:
FEDNumbering.h:95
FEDNumbering::MAXDAQeFEDFEDID
Definition:
FEDNumbering.h:101
mps_fire.i
i
Definition:
mps_fire.py:338
FEDNumbering::MAXHCALuTCAFEDID
Definition:
FEDNumbering.h:109
FEDNumbering::MAXTriggerLTCmtccFEDID
Definition:
FEDNumbering.h:75
FEDNumbering::MINDTFEDID
Definition:
FEDNumbering.h:60
FEDNumbering::MAXDTUROSFEDID
Definition:
FEDNumbering.h:117
FEDNumbering::MINCSCTFFEDID
Definition:
FEDNumbering.h:58
std
Definition:
JetResolutionObject.h:80
recoMuon::in
Definition:
RecoMuonEnumerators.h:6
FEDNumbering::MINDAQeFEDFEDID
Definition:
FEDNumbering.h:100
FEDNumbering::MINCSCFEDID
Definition:
FEDNumbering.h:56
FEDNumbering::MINDAQmFEDFEDID
Definition:
FEDNumbering.h:104
FEDNumbering::MAXDTTFFEDID
Definition:
FEDNumbering.h:63
FEDNumbering::MINDTUROSFEDID
Definition:
FEDNumbering.h:116
FEDNumbering::MINPreShowerFEDID
Definition:
FEDNumbering.h:36
FEDNumbering::MINLUMISCALERSFEDID
Definition:
FEDNumbering.h:54
FEDNumbering::MAXSiStripFEDID
Definition:
FEDNumbering.h:35
FEDNumbering::MAXTriggerGTPFEDID
Definition:
FEDNumbering.h:67
FEDNumbering::MAXPreShowerFEDID
Definition:
FEDNumbering.h:37
FEDNumbering::MINTriggerUpgradeFEDID
Definition:
FEDNumbering.h:118
FEDNumbering::MINHCALuTCAFEDID
Definition:
FEDNumbering.h:108
FEDNumbering::MAXDAQmFEDFEDID
Definition:
FEDNumbering.h:105
FEDNumbering::MAXTriggerEGTPFEDID
Definition:
FEDNumbering.h:69
FEDNumbering::MINTriggerLTCmtccFEDID
Definition:
FEDNumbering.h:74
FEDNumbering::MAXCSCContingencyFEDID
Definition:
FEDNumbering.h:97
FEDNumbering::MAXSiPixelFEDID
Definition:
FEDNumbering.h:33
FEDNumbering::MINTriggerLTCFEDID
Definition:
FEDNumbering.h:72
FEDNumbering::MINTriggerEGTPFEDID
Definition:
FEDNumbering.h:68
FEDNumbering::MAXTriggerUpgradeFEDID
Definition:
FEDNumbering.h:119
FEDNumbering::MAXCSCTFSPFEDID
Definition:
FEDNumbering.h:99
FEDNumbering::MINSiPixelFEDID
Definition:
FEDNumbering.h:32
FEDNumbering::inRange
static bool inRange(int)
Definition:
FEDNumbering.cc:134
FEDNumbering::MAXHCALFEDID
Definition:
FEDNumbering.h:53
FEDNumbering::MINCSCDDUFEDID
Definition:
FEDNumbering.h:94
FEDNumbering::MINSiStripFEDID
Definition:
FEDNumbering.h:34
FEDNumbering::MAXCSCTFFEDID
Definition:
FEDNumbering.h:59
FEDNumbering::MINDTTFFEDID
Definition:
FEDNumbering.h:62
FEDNumbering::MINCASTORFEDID
Definition:
FEDNumbering.h:50
FEDNumbering::MINTriggerGTPFEDID
Definition:
FEDNumbering.h:66
FEDNumbering::MAXCSCFEDID
Definition:
FEDNumbering.h:57
FEDNumbering::MAXLUMISCALERSFEDID
Definition:
FEDNumbering.h:55
FEDNumbering::lastFEDId
static constexpr int lastFEDId()
Definition:
FEDNumbering.h:22
FEDNumbering::MAXTriggerGCTFEDID
Definition:
FEDNumbering.h:71
FEDNumbering::MINCSCContingencyFEDID
Definition:
FEDNumbering.h:96
FEDNumbering::inRangeNoGT
static bool inRangeNoGT(int)
Definition:
FEDNumbering.cc:138
FEDNumbering::MINHCALFEDID
Definition:
FEDNumbering.h:52
FEDNumbering::MAXDTFEDID
Definition:
FEDNumbering.h:61
constexpr
#define constexpr
Definition:
GCC11Compatibility.h:35
FEDNumbering.h
FEDNumbering::MAXRPCFEDID
Definition:
FEDNumbering.h:65
FEDNumbering::MINTCDSuTCAFEDID
Definition:
FEDNumbering.h:106
FEDNumbering::MAXTriggerLTCFEDID
Definition:
FEDNumbering.h:73
Generated for CMSSW Reference Manual by
1.8.11