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
&
cc
)
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
enum
VetoMode
{
pfRecTrackCollection
= 0,
ticlSeedingRegion
= 1,
pfCandidateCollection
= 2 };
30
31
private
:
32
const
std::string
_importerName
;
33
};
34
35
#include "
FWCore/PluginManager/interface/PluginFactory.h
"
36
typedef
edmplugin::PluginFactory
<
BlockElementImporterBase
*(
const
edm::ParameterSet
&,
edm::ConsumesCollector
&)>
37
BlockElementImporterFactory
;
38
39
#endif
PluginFactory.h
Handle.h
BlockElementImporterBase::~BlockElementImporterBase
virtual ~BlockElementImporterBase()=default
BlockElementImporterBase::ticlSeedingRegion
Definition:
BlockElementImporterBase.h:29
BlockElementImporterBase::updateEventSetup
virtual void updateEventSetup(const edm::EventSetup &)
Definition:
BlockElementImporterBase.h:23
PFBlockElement.h
BlockElementImporterBase::pfRecTrackCollection
Definition:
BlockElementImporterBase.h:29
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:58
cc
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
BlockElementImporterBase::VetoMode
VetoMode
Definition:
BlockElementImporterBase.h:29
std
Definition:
JetResolutionObject.h:76
BlockElementImporterBase::BlockElementImporterBase
BlockElementImporterBase(const edm::ParameterSet &conf, edm::ConsumesCollector &cc)
Definition:
BlockElementImporterBase.h:17
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
BlockElementImporterBase::pfCandidateCollection
Definition:
BlockElementImporterBase.h:29
edm::ConsumesCollector
Definition:
ConsumesCollector.h:45
BlockElementImporterBase::_importerName
const std::string _importerName
Definition:
BlockElementImporterBase.h:32
BlockElementImporterBase
Definition:
BlockElementImporterBase.h:14
Generated for CMSSW Reference Manual by
1.8.16