Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:21:03

0001 #include "sstream"
0002 
0003 // user include files
0004 #include "FWCore/Framework/interface/ModuleFactory.h"
0005 #include "FWCore/Framework/interface/ESProducer.h"
0006 #include "FWCore/Framework/interface/ESHandle.h"
0007 #include "FWCore/Framework/interface/ESProducts.h"
0008 
0009 #include "CondFormats/L1TObjects/interface/L1TMuonOverlapFwVersion.h"
0010 #include "CondFormats/DataRecord/interface/L1TMuonOverlapFwVersionRcd.h"
0011 
0012 #include "L1Trigger/L1TMuonOverlap/plugins/L1TMuonOverlapFwVersionESProducer.h"
0013 
0014 L1TMuonOverlapFwVersionESProducer::L1TMuonOverlapFwVersionESProducer(const edm::ParameterSet& theConfig) {
0015   setWhatProduced(this, &L1TMuonOverlapFwVersionESProducer::produceFwVersion);
0016 
0017   unsigned algoV = theConfig.getParameter<unsigned>("algoVersion");
0018   unsigned layersV = theConfig.getParameter<unsigned>("layersVersion");
0019   unsigned patternsV = theConfig.getParameter<unsigned>("patternsVersion");
0020   std::string sDate = theConfig.getParameter<std::string>("synthDate");
0021   params.setAlgoVersion(algoV);
0022   params.setLayersVersion(layersV);
0023   params.setPatternsVersion(patternsV);
0024   params.setSynthDate(sDate);
0025 }
0026 
0027 L1TMuonOverlapFwVersionESProducer::~L1TMuonOverlapFwVersionESProducer() {}
0028 
0029 L1TMuonOverlapFwVersionESProducer::ReturnType L1TMuonOverlapFwVersionESProducer::produceFwVersion(
0030     const L1TMuonOverlapFwVersionRcd& iRecord) {
0031   return std::make_unique<L1TMuonOverlapFwVersion>(params);
0032 }
0033 
0034 #include "FWCore/Framework/interface/MakerMacros.h"
0035 DEFINE_FWK_EVENTSETUP_MODULE(L1TMuonOverlapFwVersionESProducer);