classes declaration
More...
#include <SimpleZSPJPTJetCorrector.h>
classes declaration
Definition at line 15 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 48 of file SimpleZSPJPTJetCorrector.cc.
References gather_cfg::cout, debug_, PVValHelper::eta, mps_fire::i, and AlCaHLTBitMon_ParallelJobs::p.
50 double eta = fabs(fEta);
54 std::vector<float> xx;
64 for (
unsigned int i = 0;
i < p.size();
i++) {
69 cout <<
" Et and eta of jet " << et <<
" " << eta <<
" bin " << band <<
" " << p[1] <<
" " << p[2] <<
" " << p[3]
70 <<
" " << p[4] <<
" " << p[5] << endl;
75 double koef = 1. -
mFunc->Eval(et);
80 koef = 1. -
mFunc->Eval(p[0]);
83 if (koef <= 0.000001) {
85 std::cout <<
"SimpleZSPJPTJetCorrector::Problem with ZSP corrections " << koef << std::endl;
89 double etnew = et / koef;
92 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 43 of file SimpleZSPJPTJetCorrector.cc.
44 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 97 of file SimpleZSPJPTJetCorrector.cc.
References gather_cfg::cout, debug_, PVValHelper::eta, and AlCaHLTBitMon_ParallelJobs::p.
99 double eta = fabs(fEta);
103 std::vector<float> xx;
113 cout <<
" Et and eta of jet " << et <<
" " << eta <<
" bin " << band << std::endl;
116 double koef = (et - p[2]) / et;
117 double etnew = et / koef;
120 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 |