File indexing completed on 2024-04-06 12:19:26
0001 #ifndef JetMETCorrections_Type1MET_SysShiftMETcorrInputProducer_h
0002 #define JetMETCorrections_Type1MET_SysShiftMETcorrInputProducer_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #include "FWCore/Framework/interface/stream/EDProducer.h"
0016 #include "FWCore/Framework/interface/Event.h"
0017 #include "FWCore/Framework/interface/EventSetup.h"
0018 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0019 #include "FWCore/Utilities/interface/InputTag.h"
0020
0021 #include "DataFormats/METReco/interface/MET.h"
0022 #include "DataFormats/VertexReco/interface/VertexFwd.h"
0023
0024 #include <TFormula.h>
0025
0026 #include <string>
0027
0028 class SysShiftMETcorrInputProducer : public edm::stream::EDProducer<> {
0029 public:
0030 explicit SysShiftMETcorrInputProducer(const edm::ParameterSet&);
0031 ~SysShiftMETcorrInputProducer() override;
0032
0033 private:
0034 void produce(edm::Event&, const edm::EventSetup&) override;
0035
0036 std::string moduleLabel_;
0037
0038 edm::EDGetTokenT<edm::View<reco::MET> > token_;
0039 edm::EDGetTokenT<reco::VertexCollection> verticesToken_;
0040
0041 bool useNvtx;
0042
0043 TFormula* corrPx_;
0044 TFormula* corrPy_;
0045 };
0046
0047 #endif