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  edm::ConsumesCollector & sumes ):
19  _importerName( conf.getParameter<std::string>("importerName") ) { }
21  virtual ~BlockElementImporterBase() = default;
23 
24  virtual void updateEventSetup(const edm::EventSetup& ) {}
25 
26  virtual void importToBlock( const edm::Event& ,
27  ElementList& ) const = 0;
28 
29  const std::string& name() const { return _importerName; }
30 
31  private:
33 };
34 
37 
38 #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)