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  setWhatProduced(this).setConsumes(baseSettings_token);
24 }
25 
26 std::unique_ptr<L1TMuonOverlapParams> L1TMuonOverlapParamsOnlineProxy::produce(
28  const L1TMuonOverlapParamsRcd& baseRcd = record.template getRecord<L1TMuonOverlapParamsRcd>();
29  auto const& baseSettings = baseRcd.get(baseSettings_token);
30 
31  return std::make_unique<L1TMuonOverlapParams>(baseSettings);
32 }
33 
34 //define this as a plug-in
L1TMuonOverlapParamsOnlineProxy::baseSettings_token
edm::ESGetToken< L1TMuonOverlapParams, L1TMuonOverlapParamsRcd > baseSettings_token
Definition: L1TMuonOverlapParamsOnlineProxy.cc:13
L1TMuonOverlapParamsRcd
Definition: L1TMuonOverlapParamsRcd.h:23
mixOne_cfi.ESProducer
ESProducer
Definition: mixOne_cfi.py:33
L1TMuonOverlapParamsO2ORcd
Definition: L1TMuonOverlapParamsO2ORcd.h:25
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:138
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:26
L1TMuonOverlapParams.h
L1TMuonOverlapParamsO2ORcd.h
L1TMuonOverlapParamsOnlineProxy::~L1TMuonOverlapParamsOnlineProxy
~L1TMuonOverlapParamsOnlineProxy(void) override
Definition: L1TMuonOverlapParamsOnlineProxy.cc:19
edm::ParameterSet
Definition: ParameterSet.h:36
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:101
edm::eventsetup::EventSetupRecordImplementation::get
PRODUCT const & get(ESGetToken< PRODUCT, T > const &iToken) const
Definition: EventSetupRecordImplementation.h:74
L1TMuonOverlapParamsRcd.h
L1TMuonOverlapParamsOnlineProxy
Definition: L1TMuonOverlapParamsOnlineProxy.cc:11