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:      CaloMETProducer
0005 //
0006 /**\class CaloMETProducer
0007 
0008  Description: An EDProducer for CaloMET
0009 
0010  Implementation:
0011 
0012 */
0013 //
0014 //
0015 //
0016 
0017 //____________________________________________________________________________||
0018 #ifndef CaloMETProducer_h
0019 #define CaloMETProducer_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 metsig {
0035   class SignAlgoResolutions;
0036 }
0037 
0038 //____________________________________________________________________________||
0039 namespace cms {
0040   class CaloMETProducer : public edm::stream::EDProducer<> {
0041   public:
0042     explicit CaloMETProducer(const edm::ParameterSet &);
0043     ~CaloMETProducer() override;
0044     void produce(edm::Event &, const edm::EventSetup &) override;
0045 
0046   private:
0047     edm::EDGetTokenT<edm::View<reco::Candidate> > inputToken_;
0048 
0049     bool calculateSignificance_;
0050     metsig::SignAlgoResolutions *resolutions_;
0051 
0052     bool noHF_;
0053 
0054     double globalThreshold_;
0055   };
0056 }  // namespace cms
0057 
0058 //____________________________________________________________________________||
0059 #endif  // CaloMETProducer_h