Main Page
Namespaces
Classes
Package Documentation
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
19
int
first
=
FEDNumbering::MINHCALFEDID
;
20
int
last
=
FEDNumbering::MAXHCALFEDID
;
21
22
int
HBHEstart =
FEDNumbering::MINHCALFEDID
;
23
int
HFstart =
FEDNumbering::MINHCALFEDID
+ 18 ;
24
int
HOstart =
FEDNumbering::MINHCALFEDID
+ 24 ;
25
26
int
HBHEend =
FEDNumbering::MINHCALFEDID
+ 17 ;
27
int
HFend =
FEDNumbering::MINHCALFEDID
+ 23 ;
28
int
HOend =
FEDNumbering::MAXHCALFEDID
;
29
30
switch
(
calibType_
) {
31
case
hc_Pedestal
:
32
first =
FEDNumbering::MINHCALFEDID
;
33
last =
FEDNumbering::MAXHCALFEDID
;
34
break ;
35
case
hc_RADDAM
:
36
first = HFstart ;
37
last = HFend ;
38
break ;
39
case
hc_HBHEHPD
:
40
first = HBHEstart ;
41
last = HBHEend ;
42
break ;
43
case
hc_HOHPD
:
44
first = HOstart ;
45
last = HOend ;
46
break ;
47
case
hc_HFPMT
:
48
first = HFstart ;
49
last = HFend ;
50
break ;
51
//--- No calibration defined ---//
52
default
:
53
first = -1 ;
54
last = -1 ;
55
break ;
56
}
57
58
if
( first >= 0 && last >= 0 )
59
for
(
int
i
=first;
i
<=
last
;
i
++)
fedList_
.push_back(
i
) ;
60
}
61
hc_HOHPD
Definition:
HcalCalibrationEventTypes.h:9
mps_fire.i
i
Definition:
mps_fire.py:269
HcalFEDList.h
HcalFEDList::calibType_
int calibType_
Definition:
HcalFEDList.h:20
FEDNumbering::MINHCALFEDID
Definition:
FEDNumbering.h:55
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:21
HcalFEDList::~HcalFEDList
~HcalFEDList()
Definition:
HcalFEDList.cc:13
plotBeamSpotDB.last
last
Definition:
plotBeamSpotDB.py:380
plotBeamSpotDB.first
first
Definition:
plotBeamSpotDB.py:379
HcalDCCHeader.h
hc_RADDAM
Definition:
HcalCalibrationEventTypes.h:7
FEDNumbering::MAXHCALFEDID
Definition:
FEDNumbering.h:56
hc_Pedestal
Definition:
HcalCalibrationEventTypes.h:6
hc_HBHEHPD
Definition:
HcalCalibrationEventTypes.h:8
FEDNumbering.h
Generated for CMSSW Reference Manual by
1.8.11