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()) {
104 jet_eta = static_cast<const reco::CaloJet*>(
jet.originalObject())->detectorP4().eta();
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()) {
145 jet_eta = static_cast<const reco::CaloJet*>(
jet.originalObject())->detectorP4().eta();
150 return bResolution_.CheckEta(jet_eta) && udscResolution_.CheckEta(jet_eta);