CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1TMuonOverlapParamsDBProducer.cc
Go to the documentation of this file.
3 
5 
8 
11 
16 
17  const L1TMuonOverlapParamsRcd& omtfParamsRcd = iSetup.get<L1TMuonOverlapParamsRcd>();
18 
19  edm::ESHandle<L1TMuonOverlapParams> omtfParamsHandle;
20  omtfParamsRcd.get(omtfParamsHandle);
21 
22  omtfParams = std::unique_ptr<L1TMuonOverlapParams>(new L1TMuonOverlapParams(*omtfParamsHandle.product()));
23  if (!omtfParams) {
24  edm::LogError("L1TMuonOverlapTrackProducer") << "Could not retrieve parameters from Event Setup" << std::endl;
25  }
26 }
30 
31  std::string recordName = "L1TMuonOverlapParamsRcd";
33  if(poolDbService.isAvailable()) poolDbService->writeOne(omtfParams.get(), poolDbService->currentTime(),recordName);
34 }
virtual void analyze(const edm::Event &, const edm::EventSetup &es)
tuple cfg
Definition: looper.py:293
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
virtual void beginRun(const edm::Run &, const edm::EventSetup &es)
bool ev
tuple recordName
Definition: align_cfg.py:66
void get(HolderT &iHolder) const
bool isAvailable() const
Definition: Service.h:46
void writeOne(T *payload, Time_t time, const std::string &recordName, bool withlogging=false)
std::unique_ptr< L1TMuonOverlapParams > omtfParams
const T & get() const
Definition: EventSetup.h:56
Definition: Run.h:43
L1MuonOverlapParamsDBProducer(const edm::ParameterSet &cfg)