#include <JetPartonCorrector.h>
|
double | correction (const LorentzVector &fJet) const override |
| get correction using Jet information only More...
|
|
bool | eventRequired () const override |
| if correction needs event information More...
|
|
| JetPartonCorrector (const edm::ParameterSet &fConfig) |
|
void | setParameters (std::string aCalibrationType, double aJetFinderRadius, int aPartonMixture) |
|
| ~JetPartonCorrector () override |
|
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 |
( |
| ) |
|
|
override |
double JetPartonCorrector::correction |
( |
const LorentzVector & |
fJet | ) |
const |
|
overridevirtual |
get correction using Jet information only
Implements JetCorrector.
Definition at line 197 of file JetPartonCorrector.cc.
References gather_cfg::cout, EgHLTOffHistBins_cfi::et, PVValHelper::eta, HLT_2018_cff::eta1, HLT_2018_cff::eta2, stringResolutionProvider_cfi::parametrization, and edm::second().
202 double et = fJet.Et();
203 double eta = fabs(fJet.Eta());
208 std::map<double, JetPartonNamespace::ParametrizationJetParton*>::const_iterator ip =
parametrization.upper_bound(eta);
210 etnew = ip->second->value(et, eta);
212 etnew = (--ip)->
second->value(et, eta);
214 double eta2 = ip->first;
215 double et2 = ip->second->value(et, eta);
217 double eta1 = ip->first;
218 double et1 = ip->second->value(et, eta);
220 etnew = (eta2 * et1 - eta1 * et2 + eta * et2 - eta * et1) / (eta2 - eta1);
222 cout <<
" JetParton::The new energy found " << etnew <<
" " << et << endl;
223 float mScale = 1000.;
ParametersMap parametrization
U second(std::pair< T, U > const &p)
bool JetPartonCorrector::eventRequired |
( |
| ) |
const |
|
inlineoverridevirtual |
void JetPartonCorrector::setParameters |
( |
std::string |
aCalibrationType, |
|
|
double |
aJetFinderRadius, |
|
|
int |
aPartonMixture |
|
) |
| |
Definition at line 154 of file JetPartonCorrector.cc.
References JetPartonNamespace::JetPartonCalibrationParameterSet::eta(), LEDCalibrationChannels::ieta, JetPartonNamespace::JetPartonCalibrationParameterSet::neta(), JetPartonNamespace::JetPartonCalibrationParameterSet::parameters(), stringResolutionProvider_cfi::parametrization, muonDTDigis_cfi::pset, edm::second(), JetPartonNamespace::JetPartonCalibrationParameterSet::type(), and JetPartonNamespace::JetPartonCalibrationParameterSet::valid().
160 if ((!
pset.valid()) && (aCalibrationType !=
"no")) {
161 edm::LogError(
"JetPartonCorrector: Jet Corrections not found ")
163 <<
" not found! Cannot apply any correction ... For JetPlusTrack calibration only radii 0.5 and 0.7 are " 164 "included for JetParton" 168 if (aCalibrationType ==
"no")
171 map<int, vector<double> > pq;
172 map<int, vector<double> > pg;
173 map<int, vector<double> > pqcd;
double theJetFinderRadius
ParametersMap parametrization
U second(std::pair< T, U > const &p)
double JetPartonCorrector::theJetFinderRadius |
|
private |
int JetPartonCorrector::thePartonMixture |
|
private |