#include <JetPartonCorrector.h>
|
virtual double | correction (const LorentzVector &fJet) const |
| get correction using Jet information only More...
|
|
virtual bool | eventRequired () const |
| if correction needs event information More...
|
|
| JetPartonCorrector (const edm::ParameterSet &fConfig) |
|
void | setParameters (std::string aCalibrationType, double aJetFinderRadius, int aPartonMixture) |
|
virtual | ~JetPartonCorrector () |
|
virtual double | correction (const reco::Jet &fJet) const =0 |
| apply correction using Jet information only More...
|
|
virtual double | correction (const reco::Jet &fJet, const edm::Event &fEvent, const edm::EventSetup &fSetup) const |
| apply correction using all event information More...
|
|
virtual double | correction (const reco::Jet &fJet, const edm::RefToBase< reco::Jet > &fJetRef, const edm::Event &fEvent, const edm::EventSetup &fSetup) const |
| apply correction using all event information More...
|
|
virtual double | correction (const reco::Jet &fJet, const edm::RefToBase< reco::Jet > &fJetRef, const edm::Event &fEvent, const edm::EventSetup &fSetup, LorentzVector &corrected) const |
| Apply vectorial correction using all event information. More...
|
|
| JetCorrector () |
|
virtual bool | refRequired () const =0 |
| if correction needs the jet reference More...
|
|
virtual bool | vectorialCorrection () const |
| if vectorial correction is provided More...
|
|
virtual | ~JetCorrector () |
|
Definition at line 21 of file JetPartonCorrector.h.
JetPartonCorrector::~JetPartonCorrector |
( |
| ) |
|
|
virtual |
double JetPartonCorrector::correction |
( |
const LorentzVector & |
fJet | ) |
const |
|
virtual |
get correction using Jet information only
Implements JetCorrector.
Definition at line 192 of file JetPartonCorrector.cc.
References gather_cfg::cout, eta, and edm::second().
197 double eta=fabs(fJet.Eta());
202 std::map<double,JetPartonNamespace::ParametrizationJetParton*>::const_iterator ip=
parametrization.upper_bound(eta);
205 etnew=ip->second->value(et,eta);
209 etnew=(--ip)->
second->value(et,eta);
213 double eta2=ip->first;
214 double et2=ip->second->value(et,eta);
216 double eta1=ip->first;
217 double et1=ip->second->value(et,eta);
219 etnew=(eta2*et1 - eta1*et2 + eta*et2 - eta*et1)/(eta2-eta1);
221 cout<<
" JetParton::The new energy found "<<etnew<<
" "<<et<<endl;
222 float mScale = 1000.;
224 if( et > 0.001) mScale = etnew/et;
ParametersMap parametrization
U second(std::pair< T, U > const &p)
virtual bool JetPartonCorrector::eventRequired |
( |
| ) |
const |
|
inlinevirtual |
void JetPartonCorrector::setParameters |
( |
std::string |
aCalibrationType, |
|
|
double |
aJetFinderRadius, |
|
|
int |
aPartonMixture |
|
) |
| |
double JetPartonCorrector::theJetFinderRadius |
|
private |
int JetPartonCorrector::thePartonMixture |
|
private |