CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
L1TMuonEndCapForestOnlineProxy(const edm::ParameterSet &)
PRODUCT const & get(ESGetToken< PRODUCT, T > const &iToken) const
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
std::unique_ptr< L1TMuonEndCapForest > produce(const L1TMuonEndCapForestO2ORcd &record)
const edm::ESGetToken< L1TMuonEndCapForest, L1TMuonEndCapForestRcd > baseSettings_token