Main Page
Namespaces
Classes
Package Documentation
RecoBTag
PerformanceDB
plugins
BtagPerformanceESProducer.cc
Go to the documentation of this file.
1
#include "
RecoBTag/PerformanceDB/plugins/BtagPerformanceESProducer.h
"
2
3
#include "
FWCore/Framework/interface/EventSetup.h
"
4
#include "
FWCore/Framework/interface/ESHandle.h
"
5
#include "
FWCore/Framework/interface/ModuleFactory.h
"
6
#include "
FWCore/Framework/interface/ESProducer.h
"
7
8
9
#include <iostream>
10
#include <memory>
11
#include <string>
12
13
using namespace
edm
;
14
15
BtagPerformanceESProducer::BtagPerformanceESProducer
(
const
edm::ParameterSet
&
p
)
16
{
17
std::string
myname = p.
getParameter
<
std::string
>(
"ComponentName"
);
18
mypl = p.
getParameter
<
std::string
>(
"PayloadName"
);
19
mywp = p.
getParameter
<
std::string
>(
"WorkingPointName"
);
20
21
pset_ =
p
;
22
setWhatProduced(
this
,myname);
23
}
24
25
BtagPerformanceESProducer::~BtagPerformanceESProducer
() {}
26
27
std::unique_ptr<BtagPerformance>
28
BtagPerformanceESProducer::produce
(
const
BTagPerformanceRecord
& iRecord){
29
ESHandle<PerformancePayload>
pl;
30
//ESHandle<PhysicsPerformancePayload> pl;
31
ESHandle<PerformanceWorkingPoint>
wp;
32
iRecord.
getRecord
<
PerformancePayloadRecord
>().
get
(mypl,pl);
33
34
iRecord.
getRecord
<
PerformanceWPRecord
>().
get
(mywp,wp);
35
36
// BtagWorkingPoint wp;
37
38
39
40
return
std::make_unique<BtagPerformance>(*((pl.
product
())), *((wp.
product
())));
41
}
42
43
44
DEFINE_FWK_EVENTSETUP_MODULE
(
BtagPerformanceESProducer
);
45
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
PerformancePayloadRecord
Definition:
PerformancePayloadRecord.h:6
AlCaHLTBitMon_ParallelJobs.p
p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
EventSetup.h
BTagPerformanceRecord
Definition:
BTagPerformanceRecord.h:11
BtagPerformanceESProducer::~BtagPerformanceESProducer
~BtagPerformanceESProducer() override
Definition:
BtagPerformanceESProducer.cc:25
edm::eventsetup::DependentRecordImplementation::getRecord
const DepRecordT getRecord() const
Definition:
DependentRecordImplementation.h:51
edm::ESHandle
Definition:
DTSurvey.h:22
ESHandle.h
BtagPerformanceESProducer::produce
std::unique_ptr< BtagPerformance > produce(const BTagPerformanceRecord &)
Definition:
BtagPerformanceESProducer.cc:28
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:60
ESProducer.h
BtagPerformanceESProducer.h
edm
HLT enums.
Definition:
AlignableModifier.h:17
BtagPerformanceESProducer::BtagPerformanceESProducer
BtagPerformanceESProducer(const edm::ParameterSet &p)
Definition:
BtagPerformanceESProducer.cc:15
BtagPerformanceESProducer
Definition:
BtagPerformanceESProducer.h:12
edm::ParameterSet
Definition:
ParameterSet.h:36
ModuleFactory.h
edm::ESHandle::product
T const * product() const
Definition:
ESHandle.h:86
PerformanceWPRecord
Definition:
PerformanceWPRecord.h:6
Generated for CMSSW Reference Manual by
1.8.11