CMS 3D CMS Logo

BlockElementImporterBase.h
Go to the documentation of this file.
1 #ifndef __BlockElementImporterBase_H__
2 #define __BlockElementImporterBase_H__
3 
10 
11 #include <string>
12 #include <memory>
13 
15 public:
16  typedef std::vector<std::unique_ptr<reco::PFBlockElement> > ElementList;
18  : _importerName(conf.getParameter<std::string>("importerName")) {}
20  virtual ~BlockElementImporterBase() = default;
22 
23  virtual void updateEventSetup(const edm::EventSetup&) {}
24 
25  virtual void importToBlock(const edm::Event&, ElementList&) const = 0;
26 
27  const std::string& name() const { return _importerName; }
28 
30 
31 private:
33 };
34 
38 
39 #endif
edmplugin::PluginFactory< BlockElementImporterBase *(const edm::ParameterSet &, edm::ConsumesCollector &)> BlockElementImporterFactory
BlockElementImporterBase(const edm::ParameterSet &conf, edm::ConsumesCollector &cc)
virtual void updateEventSetup(const edm::EventSetup &)
virtual ~BlockElementImporterBase()=default
BlockElementImporterBase & operator=(const BlockElementImporterBase &)=delete
virtual void importToBlock(const edm::Event &, ElementList &) const =0
const std::string & name() const
std::vector< std::unique_ptr< reco::PFBlockElement > > ElementList