#include <PFEnergyCalibrationHF.h>
Public Member Functions | |
double | energyEm (double uncalibratedEnergyECAL, double eta, double phi) |
double | energyEmHad (double uncalibratedEnergyECAL, double uncalibratedEnergyHCAL, double eta, double phi) |
double | energyHad (double uncalibratedEnergyHCAL, double eta, double phi) |
const std::vector< double > & | getcalibHF_a_EMHAD () const |
const std::vector< double > & | getcalibHF_a_EMonly () const |
const std::vector< double > & | getcalibHF_b_EMHAD () const |
const std::vector< double > & | getcalibHF_b_HADonly () const |
const std::vector< double > & | getcalibHF_eta_step () const |
const bool & | getcalibHF_use () const |
PFEnergyCalibrationHF (bool calibHF_use, std::vector< double > calibHF_eta_step, std::vector< double > calibHF_a_EMonly, std::vector< double > calibHF_b_HADonly, std::vector< double > calibHF_a_EMHAD, std::vector< double > calibHF_b_EMHAD) | |
PFEnergyCalibrationHF () | |
~PFEnergyCalibrationHF () | |
Private Attributes | |
std::vector< double > | calibHF_a_EMHAD_ |
std::vector< double > | calibHF_a_EMonly_ |
std::vector< double > | calibHF_b_EMHAD_ |
std::vector< double > | calibHF_b_HADonly_ |
std::vector< double > | calibHF_eta_step_ |
bool | calibHF_use_ |
Friends | |
std::ostream & | operator<< (std::ostream &out, const PFEnergyCalibrationHF &calib) |
Definition at line 24 of file PFEnergyCalibrationHF.h.
PFEnergyCalibrationHF::PFEnergyCalibrationHF | ( | ) |
Definition at line 10 of file PFEnergyCalibrationHF.cc.
References i.
{ calibHF_use_ = false; calibHF_eta_step_.push_back(0.00); calibHF_eta_step_.push_back(2.90); calibHF_eta_step_.push_back(3.00); calibHF_eta_step_.push_back(3.20); calibHF_eta_step_.push_back(4.20); calibHF_eta_step_.push_back(4.40); calibHF_eta_step_.push_back(4.60); calibHF_eta_step_.push_back(4.80); calibHF_eta_step_.push_back(5.20); calibHF_eta_step_.push_back(5.40); for(unsigned int i=0;i< calibHF_eta_step_.size();++i){ calibHF_a_EMonly_.push_back(1.00); calibHF_b_HADonly_.push_back(1.00); calibHF_a_EMHAD_.push_back(1.00); calibHF_b_EMHAD_.push_back(1.00); } }
PFEnergyCalibrationHF::PFEnergyCalibrationHF | ( | bool | calibHF_use, |
std::vector< double > | calibHF_eta_step, | ||
std::vector< double > | calibHF_a_EMonly, | ||
std::vector< double > | calibHF_b_HADonly, | ||
std::vector< double > | calibHF_a_EMHAD, | ||
std::vector< double > | calibHF_b_EMHAD | ||
) | [explicit] |
Definition at line 32 of file PFEnergyCalibrationHF.cc.
{ calibHF_use_ = calibHF_use ; calibHF_eta_step_ = calibHF_eta_step; calibHF_a_EMonly_ = calibHF_a_EMonly; calibHF_b_HADonly_ = calibHF_b_HADonly; calibHF_a_EMHAD_ = calibHF_a_EMHAD; calibHF_b_EMHAD_ = calibHF_b_EMHAD; }
PFEnergyCalibrationHF::~PFEnergyCalibrationHF | ( | ) |
Definition at line 52 of file PFEnergyCalibrationHF.cc.
{
//--- nothing to be done yet
}
double PFEnergyCalibrationHF::energyEm | ( | double | uncalibratedEnergyECAL, |
double | eta, | ||
double | phi | ||
) |
Definition at line 58 of file PFEnergyCalibrationHF.cc.
References i.
{ double calibrated = 0.0; //find eta bin. default : 0.00;2.90;3.00;3.20;4.20;4.40;4.60;4.80;5.20;5.40; int ietabin = 0; for(unsigned int i=0;i< calibHF_eta_step_.size();++i){ if((fabs(eta))>=calibHF_eta_step_[i]){ ietabin = i; } } calibrated = uncalibratedEnergyECAL * calibHF_a_EMonly_[ietabin]; return calibrated; // return calibrated; }
double PFEnergyCalibrationHF::energyEmHad | ( | double | uncalibratedEnergyECAL, |
double | uncalibratedEnergyHCAL, | ||
double | eta, | ||
double | phi | ||
) |
Definition at line 94 of file PFEnergyCalibrationHF.cc.
References i.
{ double calibrated = 0.0; //find eta bin. default : 0.00;2.90;3.00;3.20;4.20;4.40;4.60;4.80;5.20;5.40+; int ietabin = 0; for(unsigned int i=0;i< calibHF_eta_step_.size();++i){ if((fabs(eta))>=calibHF_eta_step_[i]){ ietabin = i; } } calibrated = uncalibratedEnergyECAL * calibHF_a_EMHAD_[ietabin] + uncalibratedEnergyHCAL * calibHF_b_EMHAD_[ietabin]; return calibrated; }
double PFEnergyCalibrationHF::energyHad | ( | double | uncalibratedEnergyHCAL, |
double | eta, | ||
double | phi | ||
) |
Definition at line 79 of file PFEnergyCalibrationHF.cc.
References i.
{ double calibrated = 0.0; //find eta bin. default : 0.00;2.90;3.00;3.20;4.20;4.40;4.60;4.80;5.20;5.40; int ietabin = 0; for(unsigned int i=0;i< calibHF_eta_step_.size();++i){ if((fabs(eta))>=calibHF_eta_step_[i]){ ietabin = i; } } calibrated = uncalibratedEnergyHCAL * calibHF_b_HADonly_[ietabin]; return calibrated; }
const std::vector<double>& PFEnergyCalibrationHF::getcalibHF_a_EMHAD | ( | ) | const [inline] |
Definition at line 65 of file PFEnergyCalibrationHF.h.
References calibHF_a_EMHAD_.
Referenced by operator<<().
{return calibHF_a_EMHAD_;}
const std::vector<double>& PFEnergyCalibrationHF::getcalibHF_a_EMonly | ( | ) | const [inline] |
Definition at line 61 of file PFEnergyCalibrationHF.h.
References calibHF_a_EMonly_.
Referenced by operator<<().
{return calibHF_a_EMonly_;}
const std::vector<double>& PFEnergyCalibrationHF::getcalibHF_b_EMHAD | ( | ) | const [inline] |
Definition at line 67 of file PFEnergyCalibrationHF.h.
References calibHF_b_EMHAD_.
Referenced by operator<<().
{return calibHF_b_EMHAD_;}
const std::vector<double>& PFEnergyCalibrationHF::getcalibHF_b_HADonly | ( | ) | const [inline] |
Definition at line 63 of file PFEnergyCalibrationHF.h.
References calibHF_b_HADonly_.
Referenced by operator<<().
{return calibHF_b_HADonly_;}
const std::vector<double>& PFEnergyCalibrationHF::getcalibHF_eta_step | ( | ) | const [inline] |
Definition at line 59 of file PFEnergyCalibrationHF.h.
References calibHF_eta_step_.
Referenced by operator<<().
{return calibHF_eta_step_;}
const bool& PFEnergyCalibrationHF::getcalibHF_use | ( | ) | const [inline] |
Definition at line 57 of file PFEnergyCalibrationHF.h.
References calibHF_use_.
Referenced by operator<<().
{ return calibHF_use_;}
std::ostream& operator<< | ( | std::ostream & | out, |
const PFEnergyCalibrationHF & | calib | ||
) | [friend] |
Definition at line 110 of file PFEnergyCalibrationHF.cc.
{ if(!out ) return out; out<<"PFEnergyCalibrationHF -- "<<endl; int ii = 0; for(std::vector<double>::const_iterator iteta =(calib.getcalibHF_eta_step()).begin(); iteta !=(calib.getcalibHF_eta_step()).end() ;++iteta){ //double currenteta = *iteta; out<<" i "<<ii<<","; out<<"use "<<calib.getcalibHF_use()<<","; out<<"currenteta "<<calib.getcalibHF_eta_step()[ii]<<","; out<<"calibHF_a_EMonly_ "<<calib.getcalibHF_a_EMonly()[ii]<<","; out<<"calibHF_b_HADonly_ "<<calib.getcalibHF_b_HADonly()[ii]<<","; out<<"calibHF_a_EMHAD_ "<<calib.getcalibHF_a_EMHAD()[ii]<<","; out<<"calibHF_b_EMHAD_ "<<calib.getcalibHF_b_EMHAD()[ii]<<","; out<<endl; ii++; } return out; }
std::vector<double> PFEnergyCalibrationHF::calibHF_a_EMHAD_ [private] |
Definition at line 78 of file PFEnergyCalibrationHF.h.
Referenced by getcalibHF_a_EMHAD().
std::vector<double> PFEnergyCalibrationHF::calibHF_a_EMonly_ [private] |
Definition at line 76 of file PFEnergyCalibrationHF.h.
Referenced by getcalibHF_a_EMonly().
std::vector<double> PFEnergyCalibrationHF::calibHF_b_EMHAD_ [private] |
Definition at line 79 of file PFEnergyCalibrationHF.h.
Referenced by getcalibHF_b_EMHAD().
std::vector<double> PFEnergyCalibrationHF::calibHF_b_HADonly_ [private] |
Definition at line 77 of file PFEnergyCalibrationHF.h.
Referenced by getcalibHF_b_HADonly().
std::vector<double> PFEnergyCalibrationHF::calibHF_eta_step_ [private] |
Definition at line 75 of file PFEnergyCalibrationHF.h.
Referenced by getcalibHF_eta_step().
bool PFEnergyCalibrationHF::calibHF_use_ [private] |
Definition at line 74 of file PFEnergyCalibrationHF.h.
Referenced by getcalibHF_use().