CMS 3D CMS Logo

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:
13  return jet.p4();
14  }
15  };
16 
17  template <>
19  public:
21  if ( jet.jecSetsAvailable() ) return jet.correctedP4("Uncorrected");
22  else return jet.p4();
23  }
24  };
25 
26 }
27 #endif
const LorentzVector correctedP4(const std::string &level, const std::string &flavor="none", const std::string &set="") const
Definition: Jet.h:156
bool jecSetsAvailable() const
Definition: Jet.h:129
reco::Candidate::LorentzVector operator()(const pat::Jet &jet) const
Definition: HeavyIon.h:7
Definition: Jet.py:1
Analysis-level calorimeter jet class.
Definition: Jet.h:78
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:37
reco::Candidate::LorentzVector operator()(const T &jet) const
virtual const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition: LeafCandidate.h:99
long double T