test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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::HcalFEDList ( )

Definition at line 5 of file HcalFEDList.cc.

References calibType_, and setListOfFEDs().

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

Definition at line 13 of file HcalFEDList.cc.

13  {
14  // Do nothing
15 }
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:20
tuple calibType
Definition: diJetCalib.py:20
void setListOfFEDs()
Definition: HcalFEDList.cc:17

Member Function Documentation

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

Definition at line 17 of file HcalFEDList.h.

References fedList_.

Referenced by HcalCalibFEDSelector::produce().

17 { return fedList_ ; }
std::vector< int > fedList_
Definition: HcalFEDList.h:21
void HcalFEDList::setCalibType ( int  calibType)
inline

Definition at line 14 of file HcalFEDList.h.

References diJetCalib::calibType, and calibType_.

14 { calibType_ = calibType ; }
int calibType_
Definition: HcalFEDList.h:20
tuple calibType
Definition: diJetCalib.py:20
void HcalFEDList::setListOfFEDs ( )

Definition at line 17 of file HcalFEDList.cc.

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

Referenced by HcalFEDList().

17  {
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 }
int i
Definition: DBlmapReader.cc:9
int calibType_
Definition: HcalFEDList.h:20
std::vector< int > fedList_
Definition: HcalFEDList.h:21
void HcalFEDList::setListOfFEDs ( int  calibType)
inline

Definition at line 16 of file HcalFEDList.h.

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

Referenced by setListOfFEDs().

int calibType_
Definition: HcalFEDList.h:20
tuple calibType
Definition: diJetCalib.py:20
void setListOfFEDs()
Definition: HcalFEDList.cc:17

Member Data Documentation

int HcalFEDList::calibType_
private

Definition at line 20 of file HcalFEDList.h.

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

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

Definition at line 21 of file HcalFEDList.h.

Referenced by getListOfFEDs(), and setListOfFEDs().