Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:19:26

0001 #ifndef JetMETCorrections_Type1MET_MuonMETcorrInputProducer_h
0002 #define JetMETCorrections_Type1MET_MuonMETcorrInputProducer_h
0003 
0004 /** \class MuonMETcorrInputProducer
0005  *
0006  * Sum CaloMET muon corrections, needed to compute Type 2 MET corrections
0007  * in case muon corrected CaloMET is used as input to CorrectedCaloMETProducer
0008  *
0009  * \author Christian Veelken, LLR
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/MuonReco/interface/MuonFwd.h"
0022 #include "DataFormats/MuonReco/interface/MuonMETCorrectionData.h"
0023 #include "DataFormats/Common/interface/ValueMap.h"
0024 
0025 #include <string>
0026 
0027 class MuonMETcorrInputProducer : public edm::stream::EDProducer<> {
0028 public:
0029   explicit MuonMETcorrInputProducer(const edm::ParameterSet&);
0030   ~MuonMETcorrInputProducer() override;
0031 
0032 private:
0033   void produce(edm::Event&, const edm::EventSetup&) override;
0034 
0035   std::string moduleLabel_;
0036 
0037   edm::EDGetTokenT<reco::MuonCollection> token_;
0038   edm::EDGetTokenT<edm::ValueMap<reco::MuonMETCorrectionData> > muonCorrectionMapToken_;
0039 };
0040 
0041 #endif