src
EventFilter
HcalRawToDigi
src
HcalFEDList.cc
Go to the documentation of this file.
1
#include "
DataFormats/FEDRawData/interface/FEDNumbering.h
"
2
#include "
EventFilter/HcalRawToDigi/interface/HcalDCCHeader.h
"
3
#include "
EventFilter/HcalRawToDigi/interface/HcalFEDList.h
"
4
5
HcalFEDList::HcalFEDList
() {
6
calibType_
= -1;
// No calibration
7
setListOfFEDs
();
8
}
9
HcalFEDList::HcalFEDList
(
int
calibType) {
10
calibType_
= calibType;
11
setListOfFEDs
();
12
}
13
HcalFEDList::~HcalFEDList
() {
14
// Do nothing
15
}
16
17
void
HcalFEDList::setListOfFEDs
() {
18
int
first
=
FEDNumbering::MINHCALFEDID
;
19
int
last
=
FEDNumbering::MAXHCALFEDID
;
20
21
int
HBHEstart =
FEDNumbering::MINHCALFEDID
;
22
int
HFstart =
FEDNumbering::MINHCALFEDID
+ 18;
23
int
HOstart =
FEDNumbering::MINHCALFEDID
+ 24;
24
25
int
HBHEend =
FEDNumbering::MINHCALFEDID
+ 17;
26
int
HFend =
FEDNumbering::MINHCALFEDID
+ 23;
27
int
HOend =
FEDNumbering::MAXHCALFEDID
;
28
29
switch
(
calibType_
) {
30
case
hc_Pedestal
:
31
first
=
FEDNumbering::MINHCALFEDID
;
32
last
=
FEDNumbering::MAXHCALFEDID
;
33
break
;
34
case
hc_RADDAM
:
35
first
= HFstart;
36
last
= HFend;
37
break
;
38
case
hc_HBHEHPD
:
39
first
= HBHEstart;
40
last
= HBHEend;
41
break
;
42
case
hc_HOHPD
:
43
first
= HOstart;
44
last
= HOend;
45
break
;
46
case
hc_HFPMT
:
47
first
= HFstart;
48
last
= HFend;
49
break
;
50
//--- No calibration defined ---//
51
default
:
52
first
= -1;
53
last
= -1;
54
break
;
55
}
56
57
if
(
first
>= 0 &&
last
>= 0)
58
for
(
int
i
=
first
;
i
<=
last
;
i
++)
59
fedList_
.push_back(
i
);
60
}
first
auto first
Definition:
CAHitNtupletGeneratorKernelsImpl.h:127
hc_HOHPD
Definition:
HcalCalibrationEventTypes.h:9
mps_fire.i
i
Definition:
mps_fire.py:428
HcalFEDList.h
FEDNumbering::MAXHCALFEDID
Definition:
FEDNumbering.h:48
HcalFEDList::calibType_
int calibType_
Definition:
HcalFEDList.h:22
HcalFEDList::HcalFEDList
HcalFEDList()
Definition:
HcalFEDList.cc:5
hc_HFPMT
Definition:
HcalCalibrationEventTypes.h:10
HcalFEDList::setListOfFEDs
void setListOfFEDs()
Definition:
HcalFEDList.cc:17
HcalFEDList::fedList_
std::vector< int > fedList_
Definition:
HcalFEDList.h:23
HcalFEDList::~HcalFEDList
~HcalFEDList()
Definition:
HcalFEDList.cc:13
dqmdumpme.last
last
Definition:
dqmdumpme.py:56
HcalDCCHeader.h
FEDNumbering::MINHCALFEDID
Definition:
FEDNumbering.h:47
hc_RADDAM
Definition:
HcalCalibrationEventTypes.h:7
hc_Pedestal
Definition:
HcalCalibrationEventTypes.h:6
hc_HBHEHPD
Definition:
HcalCalibrationEventTypes.h:8
FEDNumbering.h
Generated for CMSSW Reference Manual by
1.8.14