CMS 3D CMS Logo

L1TMuonOverlapFwVersionESProducer.cc
Go to the documentation of this file.
1 #include "sstream"
2 
3 // user include files
8 
11 
13 
16 
17  unsigned algoV = theConfig.getParameter<unsigned>("algoVersion");
18  unsigned layersV = theConfig.getParameter<unsigned>("layersVersion");
19  unsigned patternsV = theConfig.getParameter<unsigned>("patternsVersion");
20  std::string sDate = theConfig.getParameter<std::string>("synthDate");
21  params.setAlgoVersion(algoV);
22  params.setLayersVersion(layersV);
23  params.setPatternsVersion(patternsV);
24  params.setSynthDate(sDate);
25 }
26 
28 
30  const L1TMuonOverlapFwVersionRcd& iRecord) {
31  return std::make_unique<L1TMuonOverlapFwVersion>(params);
32 }
33 
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
void setLayersVersion(unsigned layersV)
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
std::unique_ptr< L1TMuonOverlapFwVersion > ReturnType
void setPatternsVersion(unsigned patternsV)
void setSynthDate(std::string sDate)
void setAlgoVersion(unsigned algoV)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
ReturnType produceFwVersion(const L1TMuonOverlapFwVersionRcd &)
L1TMuonOverlapFwVersionESProducer(const edm::ParameterSet &)