Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:25:34

0001 // -*- C++ -*-
0002 //
0003 // Package:    METProducers
0004 // Class:      MuonMET
0005 //
0006 
0007 //____________________________________________________________________________||
0008 #ifndef RecoMET_MuonMET_h
0009 #define RecoMET_MuonMET_h
0010 
0011 //____________________________________________________________________________||
0012 #include "FWCore/Framework/interface/Frameworkfwd.h"
0013 #include "FWCore/Framework/interface/stream/EDProducer.h"
0014 #include "FWCore/Framework/interface/Event.h"
0015 #include "FWCore/Framework/interface/MakerMacros.h"
0016 
0017 #include "DataFormats/METReco/interface/MET.h"
0018 #include "DataFormats/METReco/interface/CaloMET.h"
0019 #include "DataFormats/MuonReco/interface/MuonMETCorrectionData.h"
0020 
0021 #include "RecoMET/METAlgorithms/interface/MuonMETAlgo.h"
0022 
0023 //____________________________________________________________________________||
0024 namespace cms {
0025   class MuonMET : public edm::stream::EDProducer<> {
0026   public:
0027     explicit MuonMET(const edm::ParameterSet&);
0028     explicit MuonMET();
0029     ~MuonMET() override {}
0030     void produce(edm::Event&, const edm::EventSetup&) override;
0031 
0032   private:
0033     MuonMETAlgo alg_;
0034     edm::InputTag metTypeInputTag_;
0035 
0036     edm::EDGetTokenT<edm::View<reco::Muon> > inputMuonToken_;
0037     edm::EDGetTokenT<edm::ValueMap<reco::MuonMETCorrectionData> > inputValueMapMuonMetCorrToken_;
0038     edm::EDGetTokenT<edm::View<reco::CaloMET> > inputCaloMETToken_;
0039     edm::EDGetTokenT<edm::View<reco::MET> > inputMETToken_;
0040   };
0041 }  // namespace cms
0042 
0043 //____________________________________________________________________________||
0044 #endif  // RecoMET_MuonMET_h