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:      GenMETProducer
0005 //
0006 /**\class GenMETProducer
0007 
0008  Description: An EDProducer for GenMET
0009 
0010  Implementation:
0011 
0012 */
0013 //
0014 //
0015 //
0016 
0017 //____________________________________________________________________________||
0018 #ifndef GenMETProducer_h
0019 #define GenMETProducer_h
0020 
0021 //____________________________________________________________________________||
0022 #include "FWCore/Framework/interface/Frameworkfwd.h"
0023 #include "FWCore/Framework/interface/stream/EDProducer.h"
0024 
0025 #include "FWCore/Framework/interface/Event.h"
0026 #include "FWCore/Framework/interface/MakerMacros.h"
0027 
0028 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0029 
0030 #include "DataFormats/Common/interface/View.h"
0031 #include "DataFormats/Candidate/interface/Candidate.h"
0032 
0033 //____________________________________________________________________________||
0034 namespace cms {
0035   class GenMETProducer : public edm::stream::EDProducer<> {
0036   public:
0037     explicit GenMETProducer(const edm::ParameterSet&);
0038     ~GenMETProducer() override {}
0039     void produce(edm::Event&, const edm::EventSetup&) override;
0040 
0041   private:
0042     edm::EDGetTokenT<edm::View<reco::Candidate> > inputToken_;
0043 
0044     double globalThreshold_;
0045 
0046     bool onlyFiducial_;
0047 
0048     bool applyFiducialThresholdForFractions_;
0049 
0050     bool usePt_;
0051   };
0052 }  // namespace cms
0053 
0054 //____________________________________________________________________________||
0055 #endif  // GenMETProducer_h