Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:47:34

0001 #include "FWCore/Framework/interface/ModuleFactory.h"
0002 
0003 #include "CalibMuon/CSCCalibration/interface/CSCIndexerESProducer.h"
0004 #include "CalibMuon/CSCCalibration/interface/CSCIndexerFactory.h"
0005 
0006 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0007 
0008 CSCIndexerESProducer::CSCIndexerESProducer(const edm::ParameterSet &pset) {
0009   algoName = pset.getParameter<std::string>("AlgoName");
0010 
0011   LogTrace("CSCIndexerESProducer") << " will produce: " << algoName;
0012 
0013   setWhatProduced(this);
0014 }
0015 
0016 CSCIndexerESProducer::~CSCIndexerESProducer() {}
0017 
0018 CSCIndexerESProducer::BSP_TYPE CSCIndexerESProducer::produce(const CSCIndexerRecord &) {
0019   LogTrace("CSCIndexerESProducer") << " producing: " << algoName;
0020 
0021   return CSCIndexerESProducer::BSP_TYPE(CSCIndexerFactory::get()->create(algoName));
0022 }
0023 
0024 // define this as a plug-in
0025 DEFINE_FWK_EVENTSETUP_MODULE(CSCIndexerESProducer);