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 
29 private:
31 };
32 
36 
37 #endif
const std::string & name() const
edmplugin::PluginFactory< BlockElementImporterBase *(const edm::ParameterSet &, edm::ConsumesCollector &)> BlockElementImporterFactory
virtual void updateEventSetup(const edm::EventSetup &)
virtual ~BlockElementImporterBase()=default
BlockElementImporterBase & operator=(const BlockElementImporterBase &)=delete
virtual void importToBlock(const edm::Event &, ElementList &) const =0
std::vector< std::unique_ptr< reco::PFBlockElement > > ElementList
BlockElementImporterBase(const edm::ParameterSet &conf, edm::ConsumesCollector &sumes)