Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:35:01

0001 //
0002 // Original Author:  Fedor Ratnikov Dec 27, 2006
0003 //
0004 // MC Jet Corrector
0005 //
0006 #ifndef ZSPJPTJetCorrector_h
0007 #define ZSPJPTJetCorrector_h
0008 
0009 #include "SimpleZSPJPTJetCorrector.h"
0010 #include "FWCore/Framework/interface/Event.h"
0011 #include "FWCore/Framework/interface/EventSetup.h"
0012 #include "DataFormats/JetReco/interface/Jet.h"
0013 
0014 /// classes declaration
0015 namespace edm {
0016   class ParameterSet;
0017 }
0018 
0019 class SimpleZSPJPTJetCorrector;
0020 
0021 class ZSPJPTJetCorrector {
0022 public:
0023   ZSPJPTJetCorrector(const edm::ParameterSet& fParameters);
0024   virtual ~ZSPJPTJetCorrector();
0025   /// apply correction using Event information
0026   virtual double correction(const reco::Jet&, const edm::Event&, const edm::EventSetup&) const;
0027   /// Set the number of pileups
0028   virtual int setPU() const { return fixedPU; }
0029 
0030 private:
0031   std::vector<SimpleZSPJPTJetCorrector*> mSimpleCorrector;
0032   std::vector<SimpleZSPJPTJetCorrector*> mSimpleCorrectorOffset;
0033   std::vector<std::string> theFilesL1Offset;
0034   std::vector<std::string> theFilesZSP;
0035   int iPU;
0036   int fixedPU;
0037 };
0038 
0039 #endif