CMS 3D CMS Logo

Public Member Functions | Private Attributes

HcalFEDList Class Reference

#include <HcalFEDList.h>

List of all members.

Public Member Functions

std::vector< int > getListOfFEDs ()
 HcalFEDList (int calibType)
 HcalFEDList ()
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().

                         {
  calibType_ = -1 ; // No calibration 
  setListOfFEDs() ; 
}
HcalFEDList::~HcalFEDList ( )

Definition at line 13 of file HcalFEDList.cc.

                          {
  // Do nothing
}
HcalFEDList::HcalFEDList ( int  calibType)

Definition at line 9 of file HcalFEDList.cc.

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


Member Function Documentation

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

Definition at line 17 of file HcalFEDList.h.

References fedList_.

Referenced by HcalCalibFEDSelector::produce().

{ return fedList_ ; } 
void HcalFEDList::setCalibType ( int  calibType) [inline]

Definition at line 14 of file HcalFEDList.h.

References diJetCalib::calibType, and calibType_.

void HcalFEDList::setListOfFEDs ( int  calibType) [inline]

Definition at line 16 of file HcalFEDList.h.

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

Referenced by setListOfFEDs().

void HcalFEDList::setListOfFEDs ( )

Definition at line 17 of file HcalFEDList.cc.

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

Referenced by HcalFEDList().

                                { 
  
  int first = FEDNumbering::MINHCALFEDID ; 
  int last  = FEDNumbering::MAXHCALFEDID ;

  int HBHEstart = FEDNumbering::MINHCALFEDID ; 
  int HFstart   = FEDNumbering::MINHCALFEDID + 18 ; 
  int HOstart   = FEDNumbering::MINHCALFEDID + 24 ; 

  int HBHEend = FEDNumbering::MINHCALFEDID + 17 ; 
  int HFend   = FEDNumbering::MINHCALFEDID + 23 ; 
  int HOend   = FEDNumbering::MAXHCALFEDID ;

  switch (calibType_ ) {
  case hc_Pedestal : 
    first = FEDNumbering::MINHCALFEDID ; 
    last  = FEDNumbering::MAXHCALFEDID ;
    break ; 
  case hc_RADDAM : 
    first = HFstart ; 
    last  = HFend ; 
    break ; 
  case hc_HBHEHPD : 
    first = HBHEstart ; 
    last = HBHEend ; 
    break ; 
  case hc_HOHPD : 
    first = HOstart ; 
    last = HOend ; 
    break ; 
  case hc_HFPMT : 
    first = HFstart ; 
    last = HFend ; 
    break ;
  //--- No calibration defined ---//
  default : 
    first = -1 ; 
    last = -1 ; 
    break ; 
  }

  if ( first >= 0 && last >= 0 ) 
    for (int i=first; i<=last; i++) fedList_.push_back(i) ; 
}

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