CMS 3D CMS Logo

BtagPerformanceESProducer.cc
Go to the documentation of this file.
2 
7 
8 
9 #include <iostream>
10 #include <memory>
11 #include <string>
12 
13 using namespace edm;
14 
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 
26 
27 std::unique_ptr<BtagPerformance>
30  //ESHandle<PhysicsPerformancePayload> pl;
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 
45 
T getParameter(std::string const &) const
std::unique_ptr< BtagPerformance > produce(const BTagPerformanceRecord &)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
HLT enums.
BtagPerformanceESProducer(const edm::ParameterSet &p)
T const * product() const
Definition: ESHandle.h:86