1 #ifndef JetMETCorrections_Type1MET_JetCorrExtractorT_h
2 #define JetMETCorrections_Type1MET_JetCorrExtractorT_h
29 namespace jetcorrextractor
32 inline double sign(
double x)
34 if ( x > 0. )
return +1.;
35 else if ( x < 0. )
return -1.;
46 double jetCorrEtaMax = 9.9,
53 (*rawJetP4_specified) : rawJet.p4();
55 double jetCorrFactor = 1.;
56 if ( fabs(rawJetP4.eta()) < jetCorrEtaMax ) {
65 modJet.setP4(modJetP4);
69 edm::LogWarning(
"JetCorrExtractor") <<
"Negative jet energy scale correction noticed" <<
".\n";
74 corrJetP4 *= jetCorrFactor;
80 double jetCorrEtaMax = 9.9,
83 edm::LogWarning(
"JetCorrExtractor") <<
"JetCorrExtractorT<T>::operator(const T&, const std::string&, ...) is deprecated.\n"
84 <<
"Please use JetCorrExtractorT<T>::operator(const T&, const reco::JetCorrector*, ...) instead.\n"
85 <<
"Jet remains uncorrected!";
87 (*rawJetP4_specified) : rawJet.p4();
double correction(const LorentzVector &fJet) const
get correction using Jet information only
math::XYZTLorentzVector LorentzVector
Lorentz vector.
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.