classes declaration
More...
#include <SimpleZSPJPTJetCorrector.h>
classes declaration
Definition at line 17 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 59 of file SimpleZSPJPTJetCorrector.cc.
References gather_cfg::cout, zspjpt::debug, eta(), i, and AlCaHLTBitMon_ParallelJobs::p.
62 double eta=fabs (fEta);
66 std::vector<float> xx; xx.push_back(eta);
69 if(band < 0)
return factor;
74 for(
unsigned int i=0;
i<p.size();
i++) {
79 cout<<
" Et and eta of jet "<<et<<
" "<<eta<<
" bin "<<band<<
" "<<p[1]<<
" "<<p[2]<<
" "<<p[3]<<
80 " "<<p[4]<<
" "<<p[5]<<endl;
85 double koef = 1. -
mFunc->Eval(et);
89 if( et < p[0] ) koef = 1. -
mFunc->Eval(p[0]);
98 double etnew = et/koef;
100 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 54 of file SimpleZSPJPTJetCorrector.cc.
55 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 105 of file SimpleZSPJPTJetCorrector.cc.
References gather_cfg::cout, zspjpt::debug, eta(), and AlCaHLTBitMon_ParallelJobs::p.
108 double eta=fabs (fEta);
112 std::vector<float> xx; xx.push_back(eta);
115 if(band < 0)
return factor;
120 cout<<
" Et and eta of jet "<<et<<
" "<<eta<<
" bin "<<band<<std::endl;
123 double koef = (et-p[2])/et;
124 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 |