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 }
int calibType_
Definition: HcalFEDList.h:22
void setListOfFEDs()
Definition: HcalFEDList.cc:17
std::vector< int > fedList_
Definition: HcalFEDList.h:23