CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
L1TMuonOverlapParamsDBProducer.cc
Go to the documentation of this file.
3 
5 
6 #include <memory>
7 
10 
13 
18  const L1TMuonOverlapParamsRcd& omtfParamsRcd = iSetup.get<L1TMuonOverlapParamsRcd>();
19 
20  edm::ESHandle<L1TMuonOverlapParams> omtfParamsHandle;
21 
22  omtfParamsRcd.get("params", omtfParamsHandle);
23 
24  omtfParams = std::make_unique<L1TMuonOverlapParams>(*omtfParamsHandle.product());
25  if (!omtfParams) {
26  edm::LogError("L1TMuonOverlapTrackProducer") << "Could not retrieve parameters from Event Setup" << std::endl;
27  }
28 }
32  std::string recordName = "L1TMuonOverlapParamsRcd";
34  if (poolDbService.isAvailable()) {
35  poolDbService->writeOneIOV(*omtfParams, poolDbService->currentTime(), recordName);
36  }
37 }
tuple cfg
Definition: looper.py:296
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
bool ev
tuple recordName
Definition: align_cfg.py:66
Log< level::Error, false > LogError
PRODUCT const & get(ESGetToken< PRODUCT, T > const &iToken) const
bool isAvailable() const
Definition: Service.h:40
Hash writeOneIOV(const T &payload, Time_t time, const std::string &recordName)
void analyze(const edm::Event &, const edm::EventSetup &es) override
std::unique_ptr< L1TMuonOverlapParams > omtfParams
T get() const
Definition: EventSetup.h:88
void beginRun(const edm::Run &, const edm::EventSetup &es) override
Definition: Run.h:45
L1MuonOverlapParamsDBProducer(const edm::ParameterSet &cfg)