CMS 3D CMS Logo

HcalFEDList.cc
Go to the documentation of this file.
4 
6  calibType_ = -1; // No calibration
8 }
9 HcalFEDList::HcalFEDList(int calibType) {
10  calibType_ = calibType;
11  setListOfFEDs();
12 }
14  // Do nothing
15 }
16 
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:
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 }
FEDNumbering.h
HcalFEDList.h
mps_fire.i
i
Definition: mps_fire.py:355
hc_HBHEHPD
Definition: HcalCalibrationEventTypes.h:8
hc_HFPMT
Definition: HcalCalibrationEventTypes.h:10
HcalFEDList::calibType_
int calibType_
Definition: HcalFEDList.h:22
dqmdumpme.first
first
Definition: dqmdumpme.py:55
HcalFEDList::fedList_
std::vector< int > fedList_
Definition: HcalFEDList.h:23
dqmdumpme.last
last
Definition: dqmdumpme.py:56
HcalFEDList::~HcalFEDList
~HcalFEDList()
Definition: HcalFEDList.cc:13
HcalFEDList::HcalFEDList
HcalFEDList()
Definition: HcalFEDList.cc:5
HcalFEDList::setListOfFEDs
void setListOfFEDs()
Definition: HcalFEDList.cc:17
hc_Pedestal
Definition: HcalCalibrationEventTypes.h:6
hc_RADDAM
Definition: HcalCalibrationEventTypes.h:7
FEDNumbering::MINHCALFEDID
Definition: FEDNumbering.h:47
HcalDCCHeader.h
FEDNumbering::MAXHCALFEDID
Definition: FEDNumbering.h:48
hc_HOHPD
Definition: HcalCalibrationEventTypes.h:9