CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RawJetExtractorT.h
Go to the documentation of this file.
1 #ifndef PAT_RAWJETEXTRACTORT_H
2 #define PAT_RAWJETEXTRACTORT_H
3 
5 
6 namespace pat {
7 
8  template <typename T>
10  public:
12  reco::Candidate::LorentzVector operator()(const T& jet) const { return jet.p4(); }
13  };
14 
15  template <>
16  class RawJetExtractorT<pat::Jet> {
17  public:
19  if (jet.jecSetsAvailable())
20  return jet.correctedP4("Uncorrected");
21  else
22  return jet.p4();
23  }
24  };
25 
26 } // namespace pat
27 #endif
const LorentzVector correctedP4(const std::string &level, const std::string &flavor="none", const std::string &set="") const
Definition: Jet.h:164
bool jecSetsAvailable() const
Definition: Jet.h:129
reco::Candidate::LorentzVector operator()(const pat::Jet &jet) const
const LorentzVector & p4() const final
four-momentum Lorentz vector
Analysis-level calorimeter jet class.
Definition: Jet.h:77
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
reco::Candidate::LorentzVector operator()(const T &jet) const
long double T