CMS 3D CMS Logo

HcalFEDList.cc
Go to the documentation of this file.
4 
6  calibType_ = -1 ; // No calibration
7  setListOfFEDs() ;
8 }
9 HcalFEDList::HcalFEDList(int calibType) {
10  calibType_ = calibType ;
11  setListOfFEDs() ;
12 }
14  // Do nothing
15 }
16 
18 
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 :
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 
int calibType_
Definition: HcalFEDList.h:20
void setListOfFEDs()
Definition: HcalFEDList.cc:17
std::vector< int > fedList_
Definition: HcalFEDList.h:21