PhysicsTools
IsolationAlgos
interface
CITKIsolationConeDefinitionBase.h
Go to the documentation of this file.
1
#ifndef IsolationAlgos_CITKIsolationConeDefinitionBase_H
2
#define IsolationAlgos_CITKIsolationConeDefinitionBase_H
3
4
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
5
6
#include "
FWCore/Framework/interface/Event.h
"
7
#include "
FWCore/Framework/interface/EventSetup.h
"
8
9
#include "
DataFormats/Candidate/interface/Candidate.h
"
10
#include "
DataFormats/Candidate/interface/CandidateFwd.h
"
11
12
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
13
14
#include <unordered_map>
15
16
namespace
citk
{
17
class
IsolationConeDefinitionBase
{
18
public
:
19
IsolationConeDefinitionBase
(
const
edm::ParameterSet
&
c
)
20
:
_coneSize2
(
std
::
pow
(
c
.getParameter<double>(
"coneSize"
), 2.0)),
21
_name
(
c
.getParameter<
std
::
string
>(
"isolationAlgo"
)) {}
22
IsolationConeDefinitionBase
(
const
IsolationConeDefinitionBase
&) =
delete
;
23
IsolationConeDefinitionBase
&
operator=
(
const
IsolationConeDefinitionBase
&) =
delete
;
24
25
virtual
void
getEventSetupInfo
(
const
edm::EventSetup
&) {}
26
virtual
void
getEventInfo
(
const
edm::Event
&) {}
27
virtual
void
setConsumes
(
edm::ConsumesCollector
) = 0;
28
29
virtual
bool
isInIsolationCone
(
const
reco::CandidatePtr
& physob,
const
reco::CandidatePtr
&
other
)
const
= 0;
30
31
const
std::string
&
name
()
const
{
return
_name
; }
32
33
const
std::string
&
additionalCode
()
const
{
return
_additionalCode
; }
34
36
virtual
~IsolationConeDefinitionBase
(){};
37
38
protected
:
39
const
float
_coneSize2
;
40
std::string
_additionalCode
;
41
42
private
:
43
const
std::string
_name
;
44
};
45
}
// namespace citk
46
47
#include "
FWCore/PluginManager/interface/PluginFactory.h
"
48
typedef
edmplugin::PluginFactory
<
citk::IsolationConeDefinitionBase
*(
const
edm::ParameterSet
&)>
49
CITKIsolationConeDefinitionFactory
;
50
51
#endif
citk::IsolationConeDefinitionBase::additionalCode
const std::string & additionalCode() const
Definition:
CITKIsolationConeDefinitionBase.h:33
PluginFactory.h
citk::IsolationConeDefinitionBase::isInIsolationCone
virtual bool isInIsolationCone(const reco::CandidatePtr &physob, const reco::CandidatePtr &other) const =0
citk::IsolationConeDefinitionBase::_name
const std::string _name
Definition:
CITKIsolationConeDefinitionBase.h:43
citk::IsolationConeDefinitionBase::getEventInfo
virtual void getEventInfo(const edm::Event &)
Definition:
CITKIsolationConeDefinitionBase.h:26
citk
Definition:
CITKIsolationConeDefinitionBase.h:16
CandidateFwd.h
citk::IsolationConeDefinitionBase
Definition:
CITKIsolationConeDefinitionBase.h:17
citk::IsolationConeDefinitionBase::getEventSetupInfo
virtual void getEventSetupInfo(const edm::EventSetup &)
Definition:
CITKIsolationConeDefinitionBase.h:25
trackingPlots.other
other
Definition:
trackingPlots.py:1464
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
citk::IsolationConeDefinitionBase::name
const std::string & name() const
Definition:
CITKIsolationConeDefinitionBase.h:31
edmplugin::PluginFactory
Definition:
PluginFactory.h:34
edm::EventSetup
Definition:
EventSetup.h:58
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::Ptr< Candidate >
citk::IsolationConeDefinitionBase::_coneSize2
const float _coneSize2
Definition:
CITKIsolationConeDefinitionBase.h:36
std
Definition:
JetResolutionObject.h:76
citk::IsolationConeDefinitionBase::_additionalCode
std::string _additionalCode
Definition:
CITKIsolationConeDefinitionBase.h:40
citk::IsolationConeDefinitionBase::~IsolationConeDefinitionBase
virtual ~IsolationConeDefinitionBase()
Destructor.
Definition:
CITKIsolationConeDefinitionBase.h:36
EventSetup.h
funct::pow
Power< A, B >::type pow(const A &a, const B &b)
Definition:
Power.h:29
citk::IsolationConeDefinitionBase::operator=
IsolationConeDefinitionBase & operator=(const IsolationConeDefinitionBase &)=delete
ConsumesCollector.h
Candidate.h
ParameterSet.h
c
auto & c
Definition:
CAHitNtupletGeneratorKernelsImpl.h:56
edm::Event
Definition:
Event.h:73
citk::IsolationConeDefinitionBase::setConsumes
virtual void setConsumes(edm::ConsumesCollector)=0
edm::ConsumesCollector
Definition:
ConsumesCollector.h:45
citk::IsolationConeDefinitionBase::IsolationConeDefinitionBase
IsolationConeDefinitionBase(const edm::ParameterSet &c)
Definition:
CITKIsolationConeDefinitionBase.h:19
Generated for CMSSW Reference Manual by
1.8.16