File indexing completed on 2024-04-06 11:58:21
0001 #include "FWCore/Framework/interface/ModuleFactory.h"
0002
0003 #include "CalibMuon/CSCCalibration/interface/CSCChannelMapperESProducer.h"
0004 #include "CalibMuon/CSCCalibration/interface/CSCChannelMapperFactory.h"
0005
0006 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0007
0008 CSCChannelMapperESProducer::CSCChannelMapperESProducer(const edm::ParameterSet &pset) {
0009 algoName = pset.getParameter<std::string>("AlgoName");
0010
0011 LogTrace("CSCChannelMapperESProducer") << " will produce: " << algoName;
0012
0013 setWhatProduced(this);
0014 }
0015
0016 CSCChannelMapperESProducer::~CSCChannelMapperESProducer() {}
0017
0018 CSCChannelMapperESProducer::BSP_TYPE CSCChannelMapperESProducer::produce(const CSCChannelMapperRecord &) {
0019 LogTrace("CSCChannelMapperESProducer") << " producing: " << algoName;
0020
0021 return CSCChannelMapperESProducer::BSP_TYPE(CSCChannelMapperFactory::get()->create(algoName));
0022 }
0023
0024
0025 DEFINE_FWK_EVENTSETUP_MODULE(CSCChannelMapperESProducer);