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 58 of file SimpleZSPJPTJetCorrector.cc.
References gather_cfg::cout, zspjpt::debug, eta(), i, and AlCaHLTBitMon_ParallelJobs::p.
61 double eta=fabs (fEta);
65 std::vector<float> xx; xx.push_back(eta);
68 if(band < 0)
return factor;
73 for(
unsigned int i=0;
i<p.size();
i++) {
78 cout<<
" Et and eta of jet "<<et<<
" "<<eta<<
" bin "<<band<<
" "<<p[1]<<
" "<<p[2]<<
" "<<p[3]<<
79 " "<<p[4]<<
" "<<p[5]<<endl;
84 double koef = 1. -
mFunc->Eval(et);
88 if( et < p[0] ) koef = 1. -
mFunc->Eval(p[0]);
97 double etnew = et/koef;
99 if (
zspjpt::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 53 of file SimpleZSPJPTJetCorrector.cc.
54 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 104 of file SimpleZSPJPTJetCorrector.cc.
References gather_cfg::cout, zspjpt::debug, eta(), and AlCaHLTBitMon_ParallelJobs::p.
107 double eta=fabs (fEta);
111 std::vector<float> xx; xx.push_back(eta);
114 if(band < 0)
return factor;
119 cout<<
" Et and eta of jet "<<et<<
" "<<eta<<
" bin "<<band<<std::endl;
122 double koef = (et-p[2])/et;
123 double etnew = et/koef;
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 | ) |
|
TFormula* SimpleZSPJPTJetCorrector::mFunc |
|
private |