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  : baseSettings_token(setWhatProduced(this).consumes()) {}
24 
25 std::unique_ptr<L1TMuonEndCapForest> L1TMuonEndCapForestOnlineProxy::produce(const L1TMuonEndCapForestO2ORcd& record) {
26  const L1TMuonEndCapForestRcd& baseRcd = record.template getRecord<L1TMuonEndCapForestRcd>();
27  auto const& baseSettings = baseRcd.get(baseSettings_token);
28 
29  return std::make_unique<L1TMuonEndCapForest>(baseSettings);
30 }
31 
32 //define this as a plug-in
ESHandle.h
ESProducer.h
L1TMuonEndCapForestOnlineProxy::baseSettings_token
const edm::ESGetToken< L1TMuonEndCapForest, L1TMuonEndCapForestRcd > baseSettings_token
Definition: L1TMuonEndCapForestOnlineProxy.cc:13
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:47
AlCaHarvesting_cff.record
record
Definition: AlCaHarvesting_cff.py:42
edm::ESGetToken< L1TMuonEndCapForest, L1TMuonEndCapForestRcd >
L1TMuonEndCapForestOnlineProxy
Definition: L1TMuonEndCapForestOnlineProxy.cc:11
ModuleFactory.h
L1TMuonEndCapForestOnlineProxy::produce
std::unique_ptr< L1TMuonEndCapForest > produce(const L1TMuonEndCapForestO2ORcd &record)
Definition: L1TMuonEndCapForestOnlineProxy.cc:25
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
L1TMuonEndCapForestO2ORcd
Definition: L1TMuonEndCapForestO2ORcd.h:9
edm::ESProducer
Definition: ESProducer.h:104
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