#include <HFValueStruct.h>
Public Member Functions | |
double | EnCor (int ieta) const |
std::vector< double > | EnCor () const |
HFValueStruct (const int &version, const std::vector< double > &vect) | |
HFValueStruct () | |
double | PUIntercept (int ieta) const |
std::vector< double > | PUIntercept () const |
double | PUSlope (int ieta) const |
std::vector< double > | PUSlope () const |
void | setEnCor (const std::vector< double > &val) |
void | setEnCor (int ieta, double val) |
void | setPUIntercept (int ieta, double val) |
void | setPUIntercept (const std::vector< double > &val) |
void | setPUSlope (const std::vector< double > &val) |
void | setPUSlope (int ieta, double val) |
Private Member Functions | |
int | ietaByIndex (int &indx) const |
int | indexByIeta (int &ieta) const |
Private Attributes | |
bool | doEnCor_ |
bool | doPU_ |
std::vector< double > | hfvv_ |
int | v_ |
Definition at line 12 of file HFValueStruct.h.
reco::HFValueStruct::HFValueStruct | ( | ) | [inline] |
Definition at line 17 of file HFValueStruct.h.
{}
reco::HFValueStruct::HFValueStruct | ( | const int & | version, |
const std::vector< double > & | vect | ||
) |
Definition at line 14 of file HFValueStruct.cc.
double reco::HFValueStruct::EnCor | ( | int | ieta | ) | const |
Definition at line 49 of file HFValueStruct.cc.
Referenced by HFRecoEcalCandidateAlgo::correctEPosition().
{ int indx=indexByIeta(ieta); if(doEnCor_) return hfvv_[indx]; else return 1.0;}
std::vector< double > reco::HFValueStruct::EnCor | ( | ) | const |
int reco::HFValueStruct::ietaByIndex | ( | int & | indx | ) | const [private] |
Definition at line 33 of file HFValueStruct.cc.
{
return (indx>13)?(indx+29-13):(indx-41);
}
int reco::HFValueStruct::indexByIeta | ( | int & | ieta | ) | const [private] |
Definition at line 30 of file HFValueStruct.cc.
References abs.
std::vector< double > reco::HFValueStruct::PUIntercept | ( | ) | const |
double reco::HFValueStruct::PUIntercept | ( | int | ieta | ) | const |
Definition at line 57 of file HFValueStruct.cc.
Referenced by HFRecoEcalCandidateAlgo::correctEPosition().
{ int indx=indexByIeta(ieta)+52; if(doPU_) return hfvv_[indx]; else return 1.0;}
double reco::HFValueStruct::PUSlope | ( | int | ieta | ) | const |
Definition at line 53 of file HFValueStruct.cc.
Referenced by HFRecoEcalCandidateAlgo::correctEPosition().
{ int indx=indexByIeta(ieta)+26; if(doPU_) return hfvv_[indx]; else return 0.0;}
std::vector< double > reco::HFValueStruct::PUSlope | ( | ) | const |
void reco::HFValueStruct::setEnCor | ( | int | ieta, |
double | val | ||
) |
Definition at line 63 of file HFValueStruct.cc.
{ int indx=indexByIeta(ieta); hfvv_[indx]=val;}
void reco::HFValueStruct::setEnCor | ( | const std::vector< double > & | val | ) |
void reco::HFValueStruct::setPUIntercept | ( | const std::vector< double > & | val | ) |
void reco::HFValueStruct::setPUIntercept | ( | int | ieta, |
double | val | ||
) |
Definition at line 69 of file HFValueStruct.cc.
{ int indx=indexByIeta(ieta)+52; hfvv_[indx]=val;}
void reco::HFValueStruct::setPUSlope | ( | const std::vector< double > & | val | ) |
void reco::HFValueStruct::setPUSlope | ( | int | ieta, |
double | val | ||
) |
Definition at line 66 of file HFValueStruct.cc.
{ int indx=indexByIeta(ieta)+26; hfvv_[indx]=val;}
bool reco::HFValueStruct::doEnCor_ [private] |
Definition at line 48 of file HFValueStruct.h.
Referenced by HFValueStruct().
bool reco::HFValueStruct::doPU_ [private] |
Definition at line 48 of file HFValueStruct.h.
Referenced by HFValueStruct().
std::vector<double> reco::HFValueStruct::hfvv_ [private] |
Definition at line 46 of file HFValueStruct.h.
int reco::HFValueStruct::v_ [private] |
Definition at line 45 of file HFValueStruct.h.
Referenced by HFValueStruct().