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
PRODUCT const & get(ESGetToken< PRODUCT, T > const &iToken) const
L1TMuonOverlapParamsOnlineProxy(const edm::ParameterSet &)
const edm::ESGetToken< L1TMuonOverlapParams, L1TMuonOverlapParamsRcd > baseSettings_token
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
std::unique_ptr< L1TMuonOverlapParams > produce(const L1TMuonOverlapParamsO2ORcd &record)