CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
HcalFEDList Class Reference

#include <HcalFEDList.h>

Public Member Functions

std::vector< int > getListOfFEDs ()
 
 HcalFEDList ()
 
 HcalFEDList (int calibType)
 
void setCalibType (int calibType)
 
void setListOfFEDs ()
 
void setListOfFEDs (int calibType)
 
 ~HcalFEDList ()
 

Private Attributes

int calibType_
 
std::vector< int > fedList_
 

Detailed Description

Definition at line 7 of file HcalFEDList.h.

Constructor & Destructor Documentation

◆ HcalFEDList() [1/2]

HcalFEDList::HcalFEDList ( )

Definition at line 5 of file HcalFEDList.cc.

References calibType_, and setListOfFEDs().

5  {
6  calibType_ = -1; // No calibration
8 }
int calibType_
Definition: HcalFEDList.h:22
void setListOfFEDs()
Definition: HcalFEDList.cc:17

◆ ~HcalFEDList()

HcalFEDList::~HcalFEDList ( )

Definition at line 13 of file HcalFEDList.cc.

13  {
14  // Do nothing
15 }

◆ HcalFEDList() [2/2]

HcalFEDList::HcalFEDList ( int  calibType)

Definition at line 9 of file HcalFEDList.cc.

References diJetCalib::calibType, calibType_, and setListOfFEDs().

9  {
11  setListOfFEDs();
12 }
int calibType_
Definition: HcalFEDList.h:22
void setListOfFEDs()
Definition: HcalFEDList.cc:17

Member Function Documentation

◆ getListOfFEDs()

std::vector<int> HcalFEDList::getListOfFEDs ( )
inline

Definition at line 19 of file HcalFEDList.h.

References fedList_.

Referenced by HcalCalibFEDSelector::produce().

19 { return fedList_; }
std::vector< int > fedList_
Definition: HcalFEDList.h:23

◆ setCalibType()

void HcalFEDList::setCalibType ( int  calibType)
inline

Definition at line 13 of file HcalFEDList.h.

References diJetCalib::calibType, and calibType_.

◆ setListOfFEDs() [1/2]

void HcalFEDList::setListOfFEDs ( )

Definition at line 17 of file HcalFEDList.cc.

References calibType_, fedList_, dqmdumpme::first, hc_HBHEHPD, hc_HFPMT, hc_HOHPD, hc_Pedestal, hc_RADDAM, mps_fire::i, dqmdumpme::last, FEDNumbering::MAXHCALFEDID, and FEDNumbering::MINHCALFEDID.

Referenced by HcalFEDList(), and setListOfFEDs().

17  {
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
std::vector< int > fedList_
Definition: HcalFEDList.h:23

◆ setListOfFEDs() [2/2]

void HcalFEDList::setListOfFEDs ( int  calibType)
inline

Definition at line 15 of file HcalFEDList.h.

References diJetCalib::calibType, calibType_, and setListOfFEDs().

15  {
17  setListOfFEDs();
18  }
int calibType_
Definition: HcalFEDList.h:22
void setListOfFEDs()
Definition: HcalFEDList.cc:17

Member Data Documentation

◆ calibType_

int HcalFEDList::calibType_
private

Definition at line 22 of file HcalFEDList.h.

Referenced by HcalFEDList(), setCalibType(), and setListOfFEDs().

◆ fedList_

std::vector<int> HcalFEDList::fedList_
private

Definition at line 23 of file HcalFEDList.h.

Referenced by getListOfFEDs(), and setListOfFEDs().