27 jetCorrectionLevel_ =
"L7Parton";
39 if (udscFile.empty()) {
40 udscResolution_filename =
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 =
81 bResolution_filename = bFile;
101 double jet_eta =
jet.eta();
103 if (
jet.isCaloJet()) {
113 jet_resolution = bResolution_.GetResolution(jet_eta);
114 pat::Jet bPartonCorrJet(
jet.correctedJet(jetCorrectionLevel_,
"BOTTOM"));
116 p =
Fourvec(bPartonCorrJet.px(), bPartonCorrJet.py(), bPartonCorrJet.pz(), bPartonCorrJet.energy());
119 jet_resolution = udscResolution_.GetResolution(jet_eta);
120 pat::Jet udsPartonCorrJet(
jet.correctedJet(jetCorrectionLevel_,
"UDS"));
122 p =
Fourvec(udsPartonCorrJet.px(), udsPartonCorrJet.py(), udsPartonCorrJet.pz(), udsPartonCorrJet.energy());
132 return udscResolution_;
142 double jet_eta =
jet.eta();
144 if (
jet.isCaloJet()) {
150 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