RecoParticleFlow
PFProducer
interface
BlockElementLinkerBase.h
Go to the documentation of this file.
1
#ifndef __BlockElementLinkerBase_H__
2
#define __BlockElementLinkerBase_H__
3
4
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
5
#include "
DataFormats/Common/interface/Handle.h
"
6
#include "
DataFormats/ParticleFlowReco/interface/PFBlockElement.h
"
7
8
#include <string>
9
10
class
BlockElementLinkerBase
{
11
public
:
12
BlockElementLinkerBase
(
const
edm::ParameterSet
& conf) :
_linkerName
(conf.getParameter<
std
::
string
>(
"linkerName"
)) {}
13
BlockElementLinkerBase
(
const
BlockElementLinkerBase
&) =
delete
;
14
virtual
~BlockElementLinkerBase
() =
default
;
15
BlockElementLinkerBase
&
operator=
(
const
BlockElementLinkerBase
&) =
delete
;
16
17
virtual
bool
linkPrefilter
(
const
reco::PFBlockElement
*,
const
reco::PFBlockElement
*)
const
{
return
true
; }
18
19
virtual
double
testLink
(
const
reco::PFBlockElement
*,
const
reco::PFBlockElement
*)
const
= 0;
20
21
const
std::string
&
name
()
const
{
return
_linkerName
; }
22
23
private
:
24
const
std::string
_linkerName
;
25
};
26
27
#include "
FWCore/PluginManager/interface/PluginFactory.h
"
28
typedef
edmplugin::PluginFactory
<
BlockElementLinkerBase
*(
const
edm::ParameterSet
&)>
BlockElementLinkerFactory
;
29
30
#endif
PluginFactory.h
Handle.h
BlockElementLinkerBase::name
const std::string & name() const
Definition:
BlockElementLinkerBase.h:21
BlockElementLinkerBase
Definition:
BlockElementLinkerBase.h:10
BlockElementLinkerBase::linkPrefilter
virtual bool linkPrefilter(const reco::PFBlockElement *, const reco::PFBlockElement *) const
Definition:
BlockElementLinkerBase.h:17
PFBlockElement.h
BlockElementLinkerBase::_linkerName
const std::string _linkerName
Definition:
BlockElementLinkerBase.h:24
BlockElementLinkerBase::BlockElementLinkerBase
BlockElementLinkerBase(const edm::ParameterSet &conf)
Definition:
BlockElementLinkerBase.h:12
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition:
ParameterSet.h:36
edmplugin::PluginFactory
Definition:
PluginFactory.h:34
BlockElementLinkerBase::~BlockElementLinkerBase
virtual ~BlockElementLinkerBase()=default
BlockElementLinkerBase::operator=
BlockElementLinkerBase & operator=(const BlockElementLinkerBase &)=delete
reco::PFBlockElement
Abstract base class for a PFBlock element (track, cluster...)
Definition:
PFBlockElement.h:26
BlockElementLinkerBase::testLink
virtual double testLink(const reco::PFBlockElement *, const reco::PFBlockElement *) const =0
std
Definition:
JetResolutionObject.h:76
ParameterSet.h
Generated for CMSSW Reference Manual by
1.8.16