RecoParticleFlow
PFProducer
interface
BlockElementImporterBase.h
Go to the documentation of this file.
1
#ifndef __BlockElementImporterBase_H__
2
#define __BlockElementImporterBase_H__
3
4
#include "
FWCore/Framework/interface/Event.h
"
5
#include "
FWCore/Framework/interface/EventSetup.h
"
6
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
7
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
8
#include "
DataFormats/Common/interface/Handle.h
"
9
#include "
DataFormats/ParticleFlowReco/interface/PFBlockElement.h
"
10
11
#include <string>
12
#include <memory>
13
14
class
BlockElementImporterBase
{
15
public
:
16
typedef
std::vector<std::unique_ptr<reco::PFBlockElement> >
ElementList
;
17
BlockElementImporterBase
(
const
edm::ParameterSet
& conf,
edm::ConsumesCollector
& sumes)
18
:
_importerName
(conf.getParameter<
std
::
string
>(
"importerName"
)) {}
19
BlockElementImporterBase
(
const
BlockElementImporterBase
&) =
delete
;
20
virtual
~BlockElementImporterBase
() =
default
;
21
BlockElementImporterBase
&
operator=
(
const
BlockElementImporterBase
&) =
delete
;
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
:
30
const
std::string
_importerName
;
31
};
32
33
#include "
FWCore/PluginManager/interface/PluginFactory.h
"
34
typedef
edmplugin::PluginFactory
<
BlockElementImporterBase
*(
const
edm::ParameterSet
&,
edm::ConsumesCollector
&)>
35
BlockElementImporterFactory
;
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:47
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:45
BlockElementImporterBase::_importerName
const std::string _importerName
Definition:
BlockElementImporterBase.h:30
BlockElementImporterBase
Definition:
BlockElementImporterBase.h:14
Generated for CMSSW Reference Manual by
1.8.16