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);
34 std::vector<double> calibHF_eta_step,
35 std::vector<double> calibHF_a_EMonly,
36 std::vector<double> calibHF_b_HADonly,
37 std::vector<double> calibHF_a_EMHAD,
38 std::vector<double> calibHF_b_EMHAD) {
40 calibHF_use_ = calibHF_use ;
41 calibHF_eta_step_ = calibHF_eta_step;
42 calibHF_a_EMonly_ = calibHF_a_EMonly;
43 calibHF_b_HADonly_ = calibHF_b_HADonly;
44 calibHF_a_EMHAD_ = calibHF_a_EMHAD;
45 calibHF_b_EMHAD_ = calibHF_b_EMHAD;
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