24 CMSSW_BASE +
std::string(
"/src/TopQuarkAnalysis/PatHitFit/data/exampleJetResolution.txt");
27 jetCorrectionLevel_ =
"L7Parton";
39 if (udscFile.empty()) {
40 udscResolution_filename =
41 CMSSW_BASE +
std::string(
"/src/TopQuarkAnalysis/PatHitFit/data/exampleJetResolution.txt");
43 udscResolution_filename = udscFile;
47 bResolution_filename = CMSSW_BASE +
std::string(
"/src/TopQuarkAnalysis/PatHitFit/data/exampleJetResolution.txt");
49 bResolution_filename = bFile;
54 jetCorrectionLevel_ =
"L7Parton";
70 if (udscFile.empty()) {
71 udscResolution_filename =
72 CMSSW_BASE +
std::string(
"/src/TopQuarkAnalysis/TopHitFit/data/resolution/tqafUdscJetResolution.txt");
74 udscResolution_filename = udscFile;
78 bResolution_filename =
79 CMSSW_BASE +
std::string(
"/src/TopQuarkAnalysis/TopHitFit/data/resolution/tqafBJetResolution.txt");
81 bResolution_filename = bFile;
86 jetCorrectionLevel_ = jetCorrectionLevel;
101 double jet_eta = jet.
eta();
113 jet_resolution = bResolution_.GetResolution(jet_eta);
116 p =
Fourvec(bPartonCorrJet.px(), bPartonCorrJet.py(), bPartonCorrJet.pz(), bPartonCorrJet.energy());
119 jet_resolution = udscResolution_.GetResolution(jet_eta);
122 p =
Fourvec(udsPartonCorrJet.px(), udsPartonCorrJet.py(), udsPartonCorrJet.pz(), udsPartonCorrJet.energy());
132 return udscResolution_;
142 double jet_eta = jet.
eta();
150 return bResolution_.CheckEta(jet_eta) && udscResolution_.CheckEta(jet_eta);
Jets made from CaloTowers.
JetTranslatorBase()
Default constructor.
tuple udscResolution
<— these resolutions do not exist yet —> tauResolution = stringResolution.clone(parametrization = 'EtE...
void scaleEnergy(double fScale) override
Scale energy and correspondingly adjust raw jec factors.
Hold on to -dependent resolution. This class acts as a function object and returns Vector_Resolution ...
bool isCaloJet() const
check to see if the jet is a reco::CaloJet
CLHEP::HepLorentzVector Fourvec
Typedef for a HepLorentzVector.
A class to represent a jet in an instance of Lepjets_Event class. The class is derived from the Lepje...
bool isPFJet() const
check to see if the jet is a reco::PFJet
Template class of function object to translate jet physics object to HitFit's Lepjets_Event_Jet objec...
Analysis-level calorimeter jet class.
const reco::Candidate * originalObject() const
access to the original object; returns zero for null Ref and throws for unavailable collection ...
Template class of function object to translate jet physics object to HitFit's Lepjets_Event_Jet objec...
Calculate and represent resolution for a vector of , pseudorapidity , and azimuthal angle ...
Jet correctedJet(const std::string &level, const std::string &flavor="none", const std::string &set="") const
double eta() const final
momentum pseudorapidity