|
||||
File indexing completed on 2024-04-06 12:02:18
0001 // This is the file "FactorizedJetCorrector.cc". 0002 // This is the implementation of the class FactorizedJetCorrector. 0003 // Author: Konstantinos Kousouris, Philipp Schieferdecker 0004 // Email: kkousour@fnal.gov, philipp.schieferdecker@cern.ch 0005 0006 #include "CondFormats/JetMETObjects/interface/FactorizedJetCorrector.h" 0007 #include "CondFormats/JetMETObjects/interface/SimpleJetCorrector.h" 0008 #include "CondFormats/JetMETObjects/interface/JetCorrectorParameters.h" 0009 #include "CondFormats/JetMETObjects/interface/Utilities.h" 0010 #include "Math/PtEtaPhiE4D.h" 0011 #include "Math/Vector3D.h" 0012 #include "Math/LorentzVector.h" 0013 #include <vector> 0014 #include <string> 0015 #include <sstream> 0016 0017 //------------------------------------------------------------------------ 0018 //--- Default FactorizedJetCorrector constructor ------------------------- 0019 //------------------------------------------------------------------------ 0020 FactorizedJetCorrector::FactorizedJetCorrector() {} 0021 //------------------------------------------------------------------------ 0022 //--- FactorizedJetCorrector constructor --------------------------------- 0023 //------------------------------------------------------------------------ 0024 FactorizedJetCorrector::FactorizedJetCorrector(const std::string& fLevels, 0025 const std::string& fFiles, 0026 const std::string& fOptions) 0027 : mCalc(fLevels, fFiles, fOptions) {} 0028 //------------------------------------------------------------------------ 0029 //--- FactorizedJetCorrector constructor --------------------------------- 0030 //------------------------------------------------------------------------ 0031 FactorizedJetCorrector::FactorizedJetCorrector(const std::vector<JetCorrectorParameters>& fParameters) 0032 : mCalc(fParameters) {} 0033 0034 //------------------------------------------------------------------------ 0035 //--- Returns the correction --------------------------------------------- 0036 //------------------------------------------------------------------------ 0037 float FactorizedJetCorrector::getCorrection() { return mCalc.getCorrection(mValues); } 0038 //------------------------------------------------------------------------ 0039 //--- Returns the vector of subcorrections, up to a given level ---------- 0040 //------------------------------------------------------------------------ 0041 std::vector<float> FactorizedJetCorrector::getSubCorrections() { return mCalc.getSubCorrections(mValues); } 0042 //------------------------------------------------------------------------ 0043 //--- Setters ------------------------------------------------------------ 0044 //------------------------------------------------------------------------ 0045 void FactorizedJetCorrector::setNPV(int fNPV) { mValues.setNPV(fNPV); } 0046 void FactorizedJetCorrector::setJetEta(float fEta) { mValues.setJetEta(fEta); } 0047 //------------------------------------------------------------------------ 0048 void FactorizedJetCorrector::setJetPt(float fPt) { mValues.setJetPt(fPt); } 0049 //------------------------------------------------------------------------ 0050 void FactorizedJetCorrector::setJetPhi(float fPhi) { mValues.setJetPhi(fPhi); } 0051 //------------------------------------------------------------------------ 0052 void FactorizedJetCorrector::setJetE(float fE) { mValues.setJetE(fE); } 0053 //------------------------------------------------------------------------ 0054 void FactorizedJetCorrector::setJetEMF(float fEMF) { mValues.setJetEMF(fEMF); } 0055 //------------------------------------------------------------------------ 0056 void FactorizedJetCorrector::setJetA(float fA) { mValues.setJetA(fA); } 0057 //------------------------------------------------------------------------ 0058 void FactorizedJetCorrector::setRho(float fRho) { mValues.setRho(fRho); } 0059 //------------------------------------------------------------------------ 0060 void FactorizedJetCorrector::setJPTrawP4(const TLorentzVector& fJPTrawP4) { mValues.setJPTrawP4(fJPTrawP4); } 0061 //------------------------------------------------------------------------ 0062 void FactorizedJetCorrector::setJPTrawOff(float fJPTrawOff) { mValues.setJPTrawOff(fJPTrawOff); } 0063 //------------------------------------------------------------------------ 0064 void FactorizedJetCorrector::setLepPx(float fPx) { mValues.setLepPx(fPx); } 0065 //------------------------------------------------------------------------ 0066 void FactorizedJetCorrector::setLepPy(float fPy) { mValues.setLepPy(fPy); } 0067 //------------------------------------------------------------------------ 0068 void FactorizedJetCorrector::setLepPz(float fPz) { mValues.setLepPz(fPz); } 0069 //------------------------------------------------------------------------ 0070 void FactorizedJetCorrector::setAddLepToJet(bool fAddLepToJet) { mValues.setAddLepToJet(fAddLepToJet); }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.2.1 LXR engine. The LXR team |