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, V0MonitoringClient_cfi::factor, 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 |
void SimpleZSPJPTJetCorrector::init |
( |
const std::string & |
fDataFile | ) |
|
bool SimpleZSPJPTJetCorrector::debug_ |
|
private |
TFormula* SimpleZSPJPTJetCorrector::mFunc |
|
private |