CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch12/src/EventFilter/ESRawToDigi/src/ESUnpackerWorkerESProducer.cc

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