#include <HcalFEDList.h>
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_ |
Definition at line 7 of file HcalFEDList.h.
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().
{ calibType_ = calibType ; setListOfFEDs() ; }
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_.
{ calibType_ = calibType ; }
void HcalFEDList::setListOfFEDs | ( | int | calibType | ) | [inline] |
Definition at line 16 of file HcalFEDList.h.
References diJetCalib::calibType, calibType_, and setListOfFEDs().
Referenced by setListOfFEDs().
{ calibType_ = calibType ; 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) ; }
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().