classes declaration
More...
#include <SimpleZSPJPTJetCorrector.h>
classes declaration
Definition at line 16 of file SimpleZSPJPTJetCorrector.h.
SimpleZSPJPTJetCorrector::SimpleZSPJPTJetCorrector |
( |
| ) |
|
SimpleZSPJPTJetCorrector::SimpleZSPJPTJetCorrector |
( |
const std::string & |
fDataFile | ) |
|
SimpleZSPJPTJetCorrector::~SimpleZSPJPTJetCorrector |
( |
| ) |
|
|
virtual |
double SimpleZSPJPTJetCorrector::correctionEtEtaPhiP |
( |
double |
fEt, |
|
|
double |
fEta, |
|
|
double |
fPhi, |
|
|
double |
fP |
|
) |
| const |
|
virtual |
Definition at line 53 of file SimpleZSPJPTJetCorrector.cc.
References gather_cfg::cout, eta(), i, and AlCaHLTBitMon_ParallelJobs::p.
56 double eta=fabs (fEta);
60 std::vector<float> xx; xx.push_back(eta);
63 if(band < 0)
return factor;
68 for(
unsigned int i=0;
i<p.size();
i++) {
73 cout<<
" Et and eta of jet "<<et<<
" "<<eta<<
" bin "<<band<<
" "<<p[1]<<
" "<<p[2]<<
" "<<p[3]<<
74 " "<<p[4]<<
" "<<p[5]<<endl;
79 double koef = 1. -
mFunc->Eval(et);
83 if( et < p[0] ) koef = 1. -
mFunc->Eval(p[0]);
88 if (
debug_)
std::cout<<
"SimpleZSPJPTJetCorrector::Problem with ZSP corrections "<<koef<<std::endl;
92 double etnew = et/koef;
94 if (
debug_)
cout<<
" The new energy found "<<etnew<<
" "<<et<<
" "<<koef<<endl;
std::vector< float > parameters() const
const Record & record(unsigned fBin) const
JetCorrectorParameters * mParameters
int binIndex(const std::vector< float > &fX) const
double SimpleZSPJPTJetCorrector::correctionPtEtaPhiE |
( |
double |
fPt, |
|
|
double |
fEta, |
|
|
double |
fPhi, |
|
|
double |
fE |
|
) |
| const |
|
virtual |
Definition at line 48 of file SimpleZSPJPTJetCorrector.cc.
49 double costhetainv = cosh (fEta);
virtual double correctionEtEtaPhiP(double fEt, double fEta, double fPhi, double fP) const
double SimpleZSPJPTJetCorrector::correctionPUEtEtaPhiP |
( |
double |
fEt, |
|
|
double |
fEta, |
|
|
double |
fPhi, |
|
|
double |
fP |
|
) |
| const |
|
virtual |
Definition at line 99 of file SimpleZSPJPTJetCorrector.cc.
References gather_cfg::cout, eta(), and AlCaHLTBitMon_ParallelJobs::p.
102 double eta=fabs (fEta);
106 std::vector<float> xx; xx.push_back(eta);
109 if(band < 0)
return factor;
114 cout<<
" Et and eta of jet "<<et<<
" "<<eta<<
" bin "<<band<<std::endl;
117 double koef = (et-p[2])/et;
118 double etnew = et/koef;
120 if (
debug_)
cout<<
" The new energy found "<<etnew<<
" "<<et<<endl;
std::vector< float > parameters() const
const Record & record(unsigned fBin) const
JetCorrectorParameters * mParameters
int binIndex(const std::vector< float > &fX) const
void SimpleZSPJPTJetCorrector::init |
( |
const std::string & |
fDataFile | ) |
|
bool SimpleZSPJPTJetCorrector::debug_ |
|
private |
TFormula* SimpleZSPJPTJetCorrector::mFunc |
|
private |