Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:21:38

0001 //
0002 // Original Author:  Fedor Ratnikov Dec 27, 2006
0003 //
0004 // Correction which chains other corrections
0005 //
0006 #ifndef ChainedJetCorrector_h
0007 #define ChainedJetCorrector_h
0008 
0009 #include <vector>
0010 
0011 #include "JetMETCorrections/Objects/interface/JetCorrector.h"
0012 
0013 class ChainedJetCorrector : public JetCorrector {
0014 public:
0015   ChainedJetCorrector() {}
0016   ~ChainedJetCorrector() override {}
0017 
0018   double correction(const JetCorrector::LorentzVector& fJet) const override;
0019   double correction(const reco::Jet& fJet) const override;
0020   double correction(const reco::Jet& fJet, const edm::Event& fEvent, const edm::EventSetup& fSetup) const override;
0021   double correction(const reco::Jet& fJet,
0022                     const edm::RefToBase<reco::Jet>& fJetRef,
0023                     const edm::Event& fEvent,
0024                     const edm::EventSetup& fSetup) const override;
0025 
0026   bool eventRequired() const override;
0027   bool refRequired() const override;
0028 
0029   void push_back(const JetCorrector* fCorrector) { mCorrectors.push_back(fCorrector); }
0030   void clear() { mCorrectors.clear(); }
0031 
0032 private:
0033   std::vector<const JetCorrector*> mCorrectors;
0034 };
0035 
0036 #endif