CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/EventFilter/EcalRawToDigi/plugins/EcalUnpackerWorkerESProducer.cc

Go to the documentation of this file.
00001 #include "EventFilter/EcalRawToDigi/plugins/EcalUnpackerWorkerESProducer.h"
00002 
00003 EcalUnpackerWorkerESProducer::EcalUnpackerWorkerESProducer(const edm::ParameterSet& iConfig)
00004 {
00005   conf_ = iConfig;
00006   if (conf_.exists("ComponentName"))
00007     setWhatProduced(this,conf_.getParameter<std::string>("ComponentName"));
00008   else
00009     setWhatProduced(this,"");
00010 }
00011 
00012 
00013 EcalUnpackerWorkerESProducer::~EcalUnpackerWorkerESProducer(){}
00014 
00015 
00016 EcalUnpackerWorkerESProducer::ReturnType
00017 EcalUnpackerWorkerESProducer::produce(const EcalUnpackerWorkerRecord & iRecord)
00018 {
00019    using namespace edm::es;
00020 
00021    EcalUnpackerWorkerESProducer::ReturnType euw(new EcalUnpackerWorker(conf_));
00022 
00023    //set eshandles
00024    euw->setHandles(iRecord);
00025 
00026    return euw;
00027 }