CMS 3D CMS Logo

List of all members | Public Member Functions
CaloJetMETcorrInputProducer_namespace::RawJetExtractorT< pat::Jet > Class Template Reference

Public Member Functions

reco::Candidate::LorentzVector operator() (const pat::Jet &jet) const
 
 RawJetExtractorT ()
 

Detailed Description

template<>
class CaloJetMETcorrInputProducer_namespace::RawJetExtractorT< pat::Jet >

Definition at line 29 of file PATCaloJetMETcorrInputProducer.cc.

Constructor & Destructor Documentation

Definition at line 32 of file PATCaloJetMETcorrInputProducer.cc.

32 {}

Member Function Documentation

Definition at line 34 of file PATCaloJetMETcorrInputProducer.cc.

References pat::Jet::correctedP4(), pat::Jet::jecSetsAvailable(), and reco::LeafCandidate::p4().

35  {
36  if ( jet.jecSetsAvailable() ) return jet.correctedP4("Uncorrected");
37  else return jet.p4();
38  }
const LorentzVector correctedP4(const std::string &level, const std::string &flavor="none", const std::string &set="") const
Definition: Jet.h:158
bool jecSetsAvailable() const
Definition: Jet.h:131
const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition: LeafCandidate.h:99