28 jetCorrectionLevel_ =
"L7Parton";
41 if (udscFile.empty()) {
42 udscResolution_filename =
45 udscResolution_filename = udscFile;
49 bResolution_filename =
CMSSW_BASE +
std::string(
"/src/TopQuarkAnalysis/PatHitFit/data/exampleJetResolution.txt");
51 bResolution_filename = bFile;
56 jetCorrectionLevel_ =
"L7Parton";
73 if (udscFile.empty()) {
74 udscResolution_filename =
75 CMSSW_BASE +
std::string(
"/src/TopQuarkAnalysis/TopHitFit/data/resolution/tqafUdscJetResolution.txt");
77 udscResolution_filename = udscFile;
81 bResolution_filename =
84 bResolution_filename = bFile;
101 bool useObjEmbRes ) {
104 double jet_eta =
jet.eta();
106 if (
jet.isCaloJet()) {
116 jet_resolution = bResolution_.GetResolution(jet_eta);
117 pat::Jet bPartonCorrJet(
jet.correctedJet(jetCorrectionLevel_,
"BOTTOM"));
119 p =
Fourvec(bPartonCorrJet.px(), bPartonCorrJet.py(), bPartonCorrJet.pz(), bPartonCorrJet.energy());
122 jet_resolution = udscResolution_.GetResolution(jet_eta);
123 pat::Jet udsPartonCorrJet(
jet.correctedJet(jetCorrectionLevel_,
"UDS"));
125 p =
Fourvec(udsPartonCorrJet.px(), udsPartonCorrJet.py(), udsPartonCorrJet.pz(), udsPartonCorrJet.energy());
135 return udscResolution_;
145 double jet_eta =
jet.eta();
147 if (
jet.isCaloJet()) {
153 return bResolution_.CheckEta(jet_eta) && udscResolution_.CheckEta(jet_eta);
Jets made from CaloTowers.
JetTranslatorBase()
Default constructor.
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 ...
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...
Template class of function object to translate jet physics object to HitFit's Lepjets_Event_Jet objec...
Analysis-level calorimeter jet class.
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 ...
udscResolution
<— these resolutions do not exist yet —> tauResolution = stringResolution.clone(parametrization = '...
double eta() const final
momentum pseudorapidity