49 static const int bVH2 = 27;
50 static const int bVH4 = 28;
51 static const int bVH3 = 29;
52 static const int bVH1 = 30;
79 for (
unsigned int ii = 0;
ii < calibLines_.size();
ii++) {
80 if (calibLines_[
ii][0] ==
"QDC") {
81 if (calibLines_[
ii].
size() == 4) {
82 int channel = atoi(calibLines_[
ii][1].c_str());
83 qdc_ped[channel] = atof(calibLines_[
ii][2].c_str());
84 qdc_gain[channel] = atof(calibLines_[
ii][3].c_str());
88 <<
"Wrong QADC configuration format: expected 3 parameters, got " << calibLines_[
ii].size() - 1;
95 if (raw.
size() < 3 * 8) {
96 throw cms::Exception(
"Missing Data") <<
"No data in the QDC block";
108 for (
int i = 0;
i < 49;
i++)
109 Ecal7x7 += qdc_calib_hits[
i];
130 double qdc_calib_hits[32];
157 qdc_calib_hits[
bVH1],
158 qdc_calib_hits[
bVH2],
159 qdc_calib_hits[
bVH3],
160 qdc_calib_hits[
bVH4]);
static const int aSCI_521
static const int aMuonVH2
static const int aCerenkov2
static const int bCerenkov1
size_t size() const
Lenght of the data buffer in bytes.
static const int bSCI_528
static const int bCerenkov3
static const int aMuonVH1
static const int aCerenkov3
static const int bSCI_521
static const int bCerenkov2
static const int aMuonVH3
void setADCs04(double VMadc, double V3adc, double V6adc, double VH1adc, double VH2adc, double VH3adc, double VH4adc, double CK2adc, double CK3adc, double SciVLEadc, double Sci521adc, double Sci528adc, double S1adc, double S2adc, double S3adc, double S4adc, double Ecal7x7)
void unpack(const FEDRawData &raw, HcalTBBeamCounters &beamadc, bool is04_=true) const
void setCalib(const std::vector< std::vector< std::string > > &calibLines_)
static const int aMuonVH4
static const int aSCI_528
void setADCs06(double VMFadc, double VMBadc, double VM1adc, double VM2adc, double VM3adc, double VM4adc, double VM5adc, double VM6adc, double VM7adc, double VM8adc, double CK1adc, double CK2adc, double CK3adc, double S1adc, double S2adc, double S3adc, double S4adc, double TOF1Sadc, double TOF1Jadc, double TOF2Sadc, double TOF2Jadc, double Sci521adc, double Sci528adc, double BH1adc, double BH2adc, double BH3adc, double BH4adc)
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
static const int aSCI_VLE
static const int N_QADCS_ALLOWED