Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:13:39

0001 /** \class EMEnrichingFilter
0002  *
0003  *  EMEnrichingFilter
0004  *
0005  * \author J Lamb, UCSB
0006  * this is just the wrapper around the filtering algorithm
0007  * found in EMEnrichingFilterAlgo
0008  *
0009  *
0010  ************************************************************/
0011 
0012 #include "FWCore/Framework/interface/ConsumesCollector.h"
0013 #include "FWCore/Framework/interface/Frameworkfwd.h"
0014 #include "FWCore/Framework/interface/global/EDFilter.h"
0015 #include "FWCore/Framework/interface/MakerMacros.h"
0016 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0017 #include "GeneratorInterface/GenFilters/plugins/EMEnrichingFilterAlgo.h"
0018 
0019 class EMEnrichingFilter : public edm::global::EDFilter<> {
0020 public:
0021   explicit EMEnrichingFilter(const edm::ParameterSet&);
0022 
0023   bool filter(edm::StreamID, edm::Event&, const edm::EventSetup&) const override;
0024 
0025 private:
0026   EMEnrichingFilterAlgo EMEAlgo_;
0027 };
0028 
0029 EMEnrichingFilter::EMEnrichingFilter(const edm::ParameterSet& iConfig)
0030     : EMEAlgo_(iConfig.getParameter<edm::ParameterSet>("filterAlgoPSet"), consumesCollector()) {}
0031 
0032 bool EMEnrichingFilter::filter(edm::StreamID, edm::Event& iEvent, const edm::EventSetup& iSetup) const {
0033   return EMEAlgo_.filter(iEvent, iSetup);
0034 }
0035 
0036 DEFINE_FWK_MODULE(EMEnrichingFilter);