#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, stringResolutionProvider_cfi::et, PVValHelper::eta, stringResolutionProvider_cfi::parametrization, 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)
et
define resolution functions of each parameter
virtual bool JetPartonCorrector::eventRequired |
( |
| ) |
const |
|
inlinevirtual |
void JetPartonCorrector::setParameters |
( |
std::string |
aCalibrationType, |
|
|
double |
aJetFinderRadius, |
|
|
int |
aPartonMixture |
|
) |
| |
Definition at line 158 of file JetPartonCorrector.cc.
References JetPartonNamespace::JetPartonCalibrationParameterSet::eta(), JetPartonNamespace::JetPartonCalibrationParameterSet::neta(), JetPartonNamespace::JetPartonCalibrationParameterSet::parameters(), stringResolutionProvider_cfi::parametrization, muonDTDigis_cfi::pset, edm::second(), JetPartonNamespace::JetPartonCalibrationParameterSet::type(), and JetPartonNamespace::JetPartonCalibrationParameterSet::valid().
166 if((!
pset.valid()) && (aCalibrationType !=
"no"))
168 edm::LogError (
"JetPartonCorrector: Jet Corrections not found ") << aCalibrationType <<
169 " not found! Cannot apply any correction ... For JetPlusTrack calibration only radii 0.5 and 0.7 are included for JetParton" << endl;
172 if (aCalibrationType==
"no")
return;
175 map<int,vector<double> > pq;
176 map<int,vector<double> > pg;
177 map<int,vector<double> > pqcd;
181 for(
int ieta=0; ieta<
pset.neta();ieta++)
183 if(
pset.type(ieta) == 1 ) {pq[iq] =
pset.parameters(ieta); iq++;};
184 if(
pset.type(ieta) == 2 ) {pg[ig] =
pset.parameters(ieta);ig++;};
185 if(
pset.type(ieta) == 3 ) {pqcd[iqcd] =
pset.parameters(ieta);iqcd++;};
188 for(
int ieta=0; ieta<iq;ieta++){
double theJetFinderRadius
ParametersMap parametrization
U second(std::pair< T, U > const &p)
double JetPartonCorrector::theJetFinderRadius |
|
private |
int JetPartonCorrector::thePartonMixture |
|
private |