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.

5  {
6  calibType_ = -1; // No calibration
8 }

References calibType_, and setListOfFEDs().

◆ ~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.

9  {
10  calibType_ = calibType;
11  setListOfFEDs();
12 }

References calibType_, and setListOfFEDs().

Member Function Documentation

◆ getListOfFEDs()

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

Definition at line 19 of file HcalFEDList.h.

19 { return fedList_; }

References fedList_.

Referenced by HcalCalibFEDSelector::produce().

◆ setCalibType()

void HcalFEDList::setCalibType ( int  calibType)
inline

Definition at line 13 of file HcalFEDList.h.

13 { calibType_ = calibType; }

References calibType_.

◆ setListOfFEDs() [1/2]

void HcalFEDList::setListOfFEDs ( )

Definition at line 17 of file HcalFEDList.cc.

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 }

References calibType_, fedList_, 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().

◆ setListOfFEDs() [2/2]

void HcalFEDList::setListOfFEDs ( int  calibType)
inline

Definition at line 15 of file HcalFEDList.h.

15  {
16  calibType_ = calibType;
17  setListOfFEDs();
18  }

References calibType_, and setListOfFEDs().

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().

mps_fire.i
i
Definition: mps_fire.py:428
hc_HBHEHPD
Definition: HcalCalibrationEventTypes.h:8
hc_HFPMT
Definition: HcalCalibrationEventTypes.h:10
HcalFEDList::calibType_
int calibType_
Definition: HcalFEDList.h:22
FEDNumbering::MAXHCALFEDID
Definition: FEDNumbering.h:48
HcalFEDList::fedList_
std::vector< int > fedList_
Definition: HcalFEDList.h:23
dqmdumpme.last
last
Definition: dqmdumpme.py:56
first
auto first
Definition: CAHitNtupletGeneratorKernelsImpl.h:125
HcalFEDList::setListOfFEDs
void setListOfFEDs()
Definition: HcalFEDList.cc:17
FEDNumbering::MINHCALFEDID
Definition: FEDNumbering.h:47
hc_Pedestal
Definition: HcalCalibrationEventTypes.h:6
hc_RADDAM
Definition: HcalCalibrationEventTypes.h:7
hc_HOHPD
Definition: HcalCalibrationEventTypes.h:9