12 calibHF_eta_step_.push_back(0.00);
13 calibHF_eta_step_.push_back(2.90);
14 calibHF_eta_step_.push_back(3.00);
15 calibHF_eta_step_.push_back(3.20);
16 calibHF_eta_step_.push_back(4.20);
17 calibHF_eta_step_.push_back(4.40);
18 calibHF_eta_step_.push_back(4.60);
19 calibHF_eta_step_.push_back(4.80);
20 calibHF_eta_step_.push_back(5.20);
21 calibHF_eta_step_.push_back(5.40);
22 for (
unsigned int i = 0;
i < calibHF_eta_step_.size(); ++
i) {
23 calibHF_a_EMonly_.push_back(1.00);
24 calibHF_b_HADonly_.push_back(1.00);
25 calibHF_a_EMHAD_.push_back(1.00);
26 calibHF_b_EMHAD_.push_back(1.00);
49 double calibrated = 0.0;
52 for (
unsigned int i = 0;
i < calibHF_eta_step_.size(); ++
i) {
53 if ((fabs(
eta)) >= calibHF_eta_step_[
i]) {
57 calibrated = uncalibratedEnergyECAL * calibHF_a_EMonly_[ietabin];
64 double calibrated = 0.0;
67 for (
unsigned int i = 0;
i < calibHF_eta_step_.size(); ++
i) {
68 if ((fabs(
eta)) >= calibHF_eta_step_[
i]) {
72 calibrated = uncalibratedEnergyHCAL * calibHF_b_HADonly_[ietabin];
77 double uncalibratedEnergyHCAL,
80 double calibrated = 0.0;
83 for (
unsigned int i = 0;
i < calibHF_eta_step_.size(); ++
i) {
84 if ((fabs(
eta)) >= calibHF_eta_step_[
i]) {
88 calibrated = uncalibratedEnergyECAL * calibHF_a_EMHAD_[ietabin] + uncalibratedEnergyHCAL * calibHF_b_EMHAD_[ietabin];
95 out <<
"PFEnergyCalibrationHF -- " << endl;
97 for (std::vector<double>::const_iterator iteta = (
calib.getcalibHF_eta_step()).
begin();
98 iteta != (
calib.getcalibHF_eta_step()).
end();
101 out <<
" i " <<
ii <<
",";
102 out <<
"use " <<
calib.getcalibHF_use() <<
",";
103 out <<
"currenteta " <<
calib.getcalibHF_eta_step()[
ii] <<
",";
104 out <<
"calibHF_a_EMonly_ " <<
calib.getcalibHF_a_EMonly()[
ii] <<
",";
105 out <<
"calibHF_b_HADonly_ " <<
calib.getcalibHF_b_HADonly()[
ii] <<
",";
106 out <<
"calibHF_a_EMHAD_ " <<
calib.getcalibHF_a_EMHAD()[
ii] <<
",";
107 out <<
"calibHF_b_EMHAD_ " <<
calib.getcalibHF_b_EMHAD()[
ii] <<
",";