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;
101 out <<
" i " << ii <<
",";
const std::vector< double > & getcalibHF_a_EMonly() const
const std::vector< double > & getcalibHF_eta_step() const
const std::vector< double > & getcalibHF_b_EMHAD() const
double energyEmHad(double uncalibratedEnergyECAL, double uncalibratedEnergyHCAL, double eta, double phi)
const std::vector< double > & getcalibHF_a_EMHAD() const
double energyEm(double uncalibratedEnergyECAL, double eta, double phi)
const bool & getcalibHF_use() const
std::ostream & operator<<(std::ostream &out, const std::tuple< Types... > &value)
double energyHad(double uncalibratedEnergyHCAL, double eta, double phi)
const std::vector< double > & getcalibHF_b_HADonly() const