1 #ifndef _TIMBER_JETSMEARER 2 #define _TIMBER_JETSMEARER 17 #include <ROOT/RVec.hxx> 18 #include <Math/GenVector/LorentzVector.h> 19 #include <Math/GenVector/PtEtaPhiM4D.h> 20 #include <Math/Vector4Dfwd.h> 21 #include "JME_common.h" 25 using LorentzV = ROOT::Math::PtEtaPhiMVector;
34 float _dRMax, _dPtMaxFactor;
54 LorentzV match(LorentzV& jet, RVec<LorentzV> genJets,
float resolution);
64 const std::string _jetType, _jerTag;
65 const std::vector<float> _jmrVals;
69 JME::JetParameters _paramsSF;
70 JME::JetParameters _paramsRes;
71 JME::JetResolution _jer;
72 JME::JetResolutionScaleFactor _jerSF;
74 std::vector<Variation> _variationIndex;
76 std::shared_ptr<GenJetMatcher> _genJetMatcher;
77 static constexpr
const double MIN_JET_ENERGY = 1e-2;
79 TF1* _puppisd_res_central;
80 TF1* _puppisd_res_forward;
90 JetSmearer( std::string jerTag, std::string jetType);
120 std::vector<float> GetSmearValsPt(LorentzV jet, RVec<LorentzV> genJets,
float fixedGridRhoFastjetAll);
141 std::vector<float> GetSmearValsM(LorentzV jet, RVec<LorentzV> genJets);
147 TFile* GetPuppiJMRFile();
153 TF1* GetPuppiSDResolutionCentral();
159 TF1* GetPuppiSDResolutionForward();
C++ class to handle the extraction of JER objects starting from the JER tags and jet types...
Definition: JME_common.h:96
C++ class to handle the smearing of jet pt and mass using the JER and JMR inputs, respectively...
Definition: JetSmearer.h:62
C++ class to match single reconstructed jet (represented as a Lorentz vector) to the closest generato...
Definition: JetSmearer.h:32