CMS 3D CMS Logo

L1TMuonEndCapForestOnlineProxy.cc
Go to the documentation of this file.
1 #include <iostream>
2 #include <fstream>
3 
10 
12 private:
14 
15 public:
16  std::unique_ptr<L1TMuonEndCapForest> produce(const L1TMuonEndCapForestO2ORcd& record);
17 
20 };
21 
23  setWhatProduced(this).setConsumes(baseSettings_token);
24 }
25 
26 std::unique_ptr<L1TMuonEndCapForest> L1TMuonEndCapForestOnlineProxy::produce(const L1TMuonEndCapForestO2ORcd& record) {
27  const L1TMuonEndCapForestRcd& baseRcd = record.template getRecord<L1TMuonEndCapForestRcd>();
28  auto const& baseSettings = baseRcd.get(baseSettings_token);
29 
30  return std::make_unique<L1TMuonEndCapForest>(baseSettings);
31 }
32 
33 //define this as a plug-in
L1TMuonEndCapForestOnlineProxy::baseSettings_token
edm::ESGetToken< L1TMuonEndCapForest, L1TMuonEndCapForestRcd > baseSettings_token
Definition: L1TMuonEndCapForestOnlineProxy.cc:13
mixOne_cfi.ESProducer
ESProducer
Definition: mixOne_cfi.py:33
ESHandle.h
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
L1TMuonEndCapForestOnlineProxy::L1TMuonEndCapForestOnlineProxy
L1TMuonEndCapForestOnlineProxy(const edm::ParameterSet &)
Definition: L1TMuonEndCapForestOnlineProxy.cc:22
L1TMuonEndCapForestRcd.h
L1TMuonEndCapForestRcd
Definition: L1TMuonEndCapForestRcd.h:11
L1TMuonEndCapForest.h
L1TMuonEndCapForestO2ORcd.h
edm::ParameterSet
Definition: ParameterSet.h:36
edm::ESGetToken< L1TMuonEndCapForest, L1TMuonEndCapForestRcd >
L1TMuonEndCapForestOnlineProxy
Definition: L1TMuonEndCapForestOnlineProxy.cc:11
ModuleFactory.h
L1TMuonEndCapForestOnlineProxy::produce
std::unique_ptr< L1TMuonEndCapForest > produce(const L1TMuonEndCapForestO2ORcd &record)
Definition: L1TMuonEndCapForestOnlineProxy.cc:26
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
L1TMuonEndCapForestO2ORcd
Definition: L1TMuonEndCapForestO2ORcd.h:9
edm::ESProducer
Definition: ESProducer.h:101
edm::eventsetup::EventSetupRecordImplementation::get
PRODUCT const & get(ESGetToken< PRODUCT, T > const &iToken) const
Definition: EventSetupRecordImplementation.h:74
L1TMuonEndCapForestOnlineProxy::~L1TMuonEndCapForestOnlineProxy
~L1TMuonEndCapForestOnlineProxy(void) override
Definition: L1TMuonEndCapForestOnlineProxy.cc:19