PhysicsTools
PatAlgos
interface
SimpleIsolator.h
Go to the documentation of this file.
1
#ifndef PhysicsTools_PatAlgos_interface_SimpleIsolator_h
2
#define PhysicsTools_PatAlgos_interface_SimpleIsolator_h
3
4
#include "
PhysicsTools/PatAlgos/interface/BaseIsolator.h
"
5
6
namespace
pat
{
7
namespace
helper
{
8
class
SimpleIsolator
:
public
BaseIsolator
{
9
public
:
10
typedef
edm::ValueMap<double>
IsoValueMap
;
11
SimpleIsolator
() {}
12
SimpleIsolator
(
const
edm::ParameterSet
&conf,
edm::ConsumesCollector
&iC,
bool
withCut);
13
~SimpleIsolator
()
override
{}
14
void
beginEvent
(
const
edm::Event
&
event
,
const
edm::EventSetup
&eventSetup)
override
;
15
void
endEvent
()
override
;
16
17
std::string
description
()
const override
{
return
input_
.
encode
(); }
18
19
protected
:
20
edm::Handle<IsoValueMap>
handle_
;
21
edm::EDGetTokenT<IsoValueMap>
inputDoubleToken_
;
22
float
getValue
(
const
edm::ProductID
&
id
,
size_t
index
)
const override
{
return
handle_
->get(
id
,
index
); }
23
};
// class SimpleIsolator
24
}
// namespace helper
25
}
// namespace pat
26
27
#endif
pat::helper::SimpleIsolator::handle_
edm::Handle< IsoValueMap > handle_
Definition:
SimpleIsolator.h:20
pat::helper::SimpleIsolator::description
std::string description() const override
Definition:
SimpleIsolator.h:17
edm::EDGetTokenT
Definition:
EDGetToken.h:33
pat::helper::SimpleIsolator::beginEvent
void beginEvent(const edm::Event &event, const edm::EventSetup &eventSetup) override
Definition:
SimpleIsolator.cc:10
edm::Handle
Definition:
AssociativeIterator.h:50
pat::helper::SimpleIsolator::SimpleIsolator
SimpleIsolator()
Definition:
SimpleIsolator.h:11
pat::helper::SimpleIsolator::inputDoubleToken_
edm::EDGetTokenT< IsoValueMap > inputDoubleToken_
Definition:
SimpleIsolator.h:21
pat::helper::SimpleIsolator::getValue
float getValue(const edm::ProductID &id, size_t index) const override
Definition:
SimpleIsolator.h:22
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition:
ParameterSet.h:47
pat::helper::BaseIsolator::input_
edm::InputTag input_
Definition:
BaseIsolator.h:42
pat::helper::SimpleIsolator::endEvent
void endEvent() override
Definition:
SimpleIsolator.cc:14
helper
Definition:
helper.py:1
edm::InputTag::encode
std::string encode() const
Definition:
InputTag.cc:159
pat::helper::SimpleIsolator::~SimpleIsolator
~SimpleIsolator() override
Definition:
SimpleIsolator.h:13
edm::EventSetup
Definition:
EventSetup.h:57
pat
Definition:
HeavyIon.h:7
pat::helper::BaseIsolator
Definition:
BaseIsolator.h:13
pat::helper::SimpleIsolator
Definition:
SimpleIsolator.h:8
edm::ValueMap
Definition:
ValueMap.h:107
BaseIsolator.h
AlignmentPI::index
index
Definition:
AlignmentPayloadInspectorHelper.h:46
pat::helper::SimpleIsolator::IsoValueMap
edm::ValueMap< double > IsoValueMap
Definition:
SimpleIsolator.h:10
event
Definition:
event.py:1
edm::Event
Definition:
Event.h:73
edm::ConsumesCollector
Definition:
ConsumesCollector.h:45
edm::ProductID
Definition:
ProductID.h:27
Generated for CMSSW Reference Manual by
1.8.16