CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1JPTOffsetCorrector.h
Go to the documentation of this file.
1 // L1Offset jet corrector class. Inherits from JetCorrector.h
2 #ifndef L1JPTOffsetCorrector_h
3 #define L1JPTOffsetCorrector_h
4 
9 
10 //----- classes declaration -----------------------------------
11 namespace edm
12 {
13  class ParameterSet;
14 }
16 //----- LXXXCorrector interface -------------------------------
18 {
19  public:
20  //----- constructors---------------------------------------
21  L1JPTOffsetCorrector(const JetCorrectorParameters& fConfig, const edm::ParameterSet& fParameters);
22 
23  //----- destructor ----------------------------------------
24  virtual ~L1JPTOffsetCorrector();
25 
26  //----- apply correction using Jet information only -------
27  virtual double correction(const LorentzVector& fJet) const;
28 
29  //----- apply correction using Jet information only -------
30  virtual double correction(const reco::Jet& fJet) const;
31 
32  //----- apply correction using all event information
33  virtual double correction(const reco::Jet& fJet,
34  const edm::Event& fEvent,
35  const edm::EventSetup& fSetup) const;
36  //----- if correction needs event information -------------
37  virtual bool eventRequired() const {return true;}
38  virtual bool refRequired() const {return false;}
39 
40  private:
41  //----- member data ---------------------------------------
45 };
46 
47 #endif
Base class for all types of Jets.
Definition: Jet.h:20
virtual double correction(const LorentzVector &fJet) const
get correction using Jet information only
L1JPTOffsetCorrector(const JetCorrectorParameters &fConfig, const edm::ParameterSet &fParameters)
FactorizedJetCorrectorCalculator * mCorrector
virtual bool eventRequired() const
if correction needs event information
virtual bool refRequired() const
if correction needs the jet reference
reco::Particle::LorentzVector LorentzVector
Definition: JetCorrector.h:23