CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1OffsetCorrector.h
Go to the documentation of this file.
1 // L1Offset jet corrector class. Inherits from JetCorrector.h
2 #ifndef L1OffsetCorrector_h
3 #define L1OffsetCorrector_h
4 
9 
10 //----- classes declaration -----------------------------------
11 namespace edm
12 {
13  class ParameterSet;
14 }
16 //----- LXXXCorrector interface -------------------------------
18 {
19  public:
20  //----- constructors---------------------------------------
21  L1OffsetCorrector(const JetCorrectorParameters& fConfig, const edm::ParameterSet& fParameters);
22 
23  //----- destructor ----------------------------------------
24  virtual ~L1OffsetCorrector();
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 
39  //----- if correction needs a jet reference -------------
40  virtual bool refRequired() const { return false; }
41 
42  private:
43  //----- member data ---------------------------------------
47 
48 };
49 
50 #endif
virtual bool refRequired() const
if correction needs the jet reference
Base class for all types of Jets.
Definition: Jet.h:20
virtual ~L1OffsetCorrector()
virtual double correction(const LorentzVector &fJet) const
get correction using Jet information only
std::string mVertexCollName
FactorizedJetCorrectorCalculator * mCorrector
L1OffsetCorrector(const JetCorrectorParameters &fConfig, const edm::ParameterSet &fParameters)
virtual bool eventRequired() const
if correction needs event information
reco::Particle::LorentzVector LorentzVector
Definition: JetCorrector.h:23