CMS 3D CMS Logo

L1TMuonOverlapParamsOnlineProxy.cc
Go to the documentation of this file.
1 #include <iostream>
2 #include <fstream>
3 
6 
10 
12 private:
14 
15 public:
16  std::unique_ptr<L1TMuonOverlapParams> produce(const L1TMuonOverlapParamsO2ORcd& record);
17 
20 };
21 
23  : baseSettings_token(setWhatProduced(this).consumes()) {}
24 
25 std::unique_ptr<L1TMuonOverlapParams> L1TMuonOverlapParamsOnlineProxy::produce(
27  const L1TMuonOverlapParamsRcd& baseRcd = record.template getRecord<L1TMuonOverlapParamsRcd>();
28  auto const& baseSettings = baseRcd.get(baseSettings_token);
29 
30  return std::make_unique<L1TMuonOverlapParams>(baseSettings);
31 }
32 
33 //define this as a plug-in
L1TMuonOverlapParamsRcd
Definition: L1TMuonOverlapParamsRcd.h:23
L1TMuonOverlapParamsO2ORcd
Definition: L1TMuonOverlapParamsO2ORcd.h:25
ESProducer.h
GlobalPosition_Frontier_DevDB_cff.record
record
Definition: GlobalPosition_Frontier_DevDB_cff.py:10
L1TMuonOverlapParamsOnlineProxy::L1TMuonOverlapParamsOnlineProxy
L1TMuonOverlapParamsOnlineProxy(const edm::ParameterSet &)
Definition: L1TMuonOverlapParamsOnlineProxy.cc:22
L1TMuonOverlapParamsOnlineProxy::produce
std::unique_ptr< L1TMuonOverlapParams > produce(const L1TMuonOverlapParamsO2ORcd &record)
Definition: L1TMuonOverlapParamsOnlineProxy.cc:25
L1TMuonOverlapParamsOnlineProxy::baseSettings_token
const edm::ESGetToken< L1TMuonOverlapParams, L1TMuonOverlapParamsRcd > baseSettings_token
Definition: L1TMuonOverlapParamsOnlineProxy.cc:13
L1TMuonOverlapParams.h
L1TMuonOverlapParamsO2ORcd.h
L1TMuonOverlapParamsOnlineProxy::~L1TMuonOverlapParamsOnlineProxy
~L1TMuonOverlapParamsOnlineProxy(void) override
Definition: L1TMuonOverlapParamsOnlineProxy.cc:19
edm::ParameterSet
Definition: ParameterSet.h:47
edm::ESGetToken< L1TMuonOverlapParams, L1TMuonOverlapParamsRcd >
ModuleFactory.h
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
edm::ESProducer
Definition: ESProducer.h:104
edm::eventsetup::EventSetupRecordImplementation::get
PRODUCT const & get(ESGetToken< PRODUCT, T > const &iToken) const
Definition: EventSetupRecordImplementation.h:74
L1TMuonOverlapParamsRcd.h
L1TMuonOverlapParamsOnlineProxy
Definition: L1TMuonOverlapParamsOnlineProxy.cc:11