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
PluginFactory.h
Handle.h
BlockElementImporterBase::~BlockElementImporterBase
virtual ~BlockElementImporterBase()=default
BlockElementImporterBase::updateEventSetup
virtual void updateEventSetup(const edm::EventSetup &)
Definition: BlockElementImporterBase.h:23
BlockElementImporterBase::BlockElementImporterBase
BlockElementImporterBase(const edm::ParameterSet &conf, edm::ConsumesCollector &sumes)
Definition: BlockElementImporterBase.h:17
PFBlockElement.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
BlockElementImporterBase::ElementList
std::vector< std::unique_ptr< reco::PFBlockElement > > ElementList
Definition: BlockElementImporterBase.h:16
edm::ParameterSet
Definition: ParameterSet.h:36
Event.h
edmplugin::PluginFactory
Definition: PluginFactory.h:34
BlockElementImporterBase::name
const std::string & name() const
Definition: BlockElementImporterBase.h:27
edm::EventSetup
Definition: EventSetup.h:57
std
Definition: JetResolutionObject.h:76
BlockElementImporterBase::operator=
BlockElementImporterBase & operator=(const BlockElementImporterBase &)=delete
EventSetup.h
BlockElementImporterBase::importToBlock
virtual void importToBlock(const edm::Event &, ElementList &) const =0
ConsumesCollector.h
ParameterSet.h
edm::Event
Definition: Event.h:73
edm::ConsumesCollector
Definition: ConsumesCollector.h:39
BlockElementImporterBase::_importerName
const std::string _importerName
Definition: BlockElementImporterBase.h:30
BlockElementImporterBase
Definition: BlockElementImporterBase.h:14