13 calibHF_eta_step_.push_back(0.00);
14 calibHF_eta_step_.push_back(2.90);
15 calibHF_eta_step_.push_back(3.00);
16 calibHF_eta_step_.push_back(3.20);
17 calibHF_eta_step_.push_back(4.20);
18 calibHF_eta_step_.push_back(4.40);
19 calibHF_eta_step_.push_back(4.60);
20 calibHF_eta_step_.push_back(4.80);
21 calibHF_eta_step_.push_back(5.20);
22 calibHF_eta_step_.push_back(5.40);
23 for(
unsigned int i=0;
i< calibHF_eta_step_.size();++
i){
24 calibHF_a_EMonly_.push_back(1.00);
25 calibHF_b_HADonly_.push_back(1.00);
26 calibHF_a_EMHAD_.push_back(1.00);
27 calibHF_b_EMHAD_.push_back(1.00);
61 double calibrated = 0.0;
64 for(
unsigned int i=0;
i< calibHF_eta_step_.size();++
i){
65 if((fabs(eta))>=calibHF_eta_step_[
i]){
69 calibrated = uncalibratedEnergyECAL * calibHF_a_EMonly_[ietabin];
82 double calibrated = 0.0;
85 for(
unsigned int i=0;
i< calibHF_eta_step_.size();++
i){
86 if((fabs(eta))>=calibHF_eta_step_[
i]){
90 calibrated = uncalibratedEnergyHCAL * calibHF_b_HADonly_[ietabin];
95 double uncalibratedEnergyHCAL,
98 double calibrated = 0.0;
101 for(
unsigned int i=0;
i< calibHF_eta_step_.size();++
i){
102 if((fabs(eta))>=calibHF_eta_step_[
i]){
106 calibrated = uncalibratedEnergyECAL * calibHF_a_EMHAD_[ietabin] + uncalibratedEnergyHCAL * calibHF_b_EMHAD_[ietabin];
114 if(!out )
return out;
115 out<<
"PFEnergyCalibrationHF -- "<<endl;
const std::vector< double > & getcalibHF_a_EMonly() const
const std::vector< double > & getcalibHF_eta_step() const
const std::vector< double > & getcalibHF_b_EMHAD() const
ostream & operator<<(std::ostream &o, vector< std::string > const &iValue)
double energyEmHad(double uncalibratedEnergyECAL, double uncalibratedEnergyHCAL, double eta, double phi)
MVATrainerComputer * calib
const std::vector< double > & getcalibHF_a_EMHAD() const
double energyEm(double uncalibratedEnergyECAL, double eta, double phi)
const bool & getcalibHF_use() const
double energyHad(double uncalibratedEnergyHCAL, double eta, double phi)
const std::vector< double > & getcalibHF_b_HADonly() const