CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/TrackingTools/RecoGeometry/plugins/DetLayerGeometryESProducer.cc

Go to the documentation of this file.
00001 #include "TrackingTools/RecoGeometry/plugins/DetLayerGeometryESProducer.h"
00002 
00003 #include "FWCore/Framework/interface/EventSetup.h"
00004 #include "FWCore/Framework/interface/ESHandle.h"
00005 #include "FWCore/Framework/interface/ModuleFactory.h"
00006 #include "FWCore/Framework/interface/ESProducer.h"
00007 
00008 
00009 #include <memory>
00010 #include <string>
00011 
00012 using namespace edm;
00013 
00014 DetLayerGeometryESProducer::DetLayerGeometryESProducer(const edm::ParameterSet & p) 
00015 {
00016   std::string myName = p.getParameter<std::string>("ComponentName");
00017   setWhatProduced(this,myName);
00018 }
00019  
00020 DetLayerGeometryESProducer::~DetLayerGeometryESProducer() {}
00021 
00022 boost::shared_ptr<DetLayerGeometry> 
00023 DetLayerGeometryESProducer::produce(const RecoGeometryRecord & iRecord){ 
00024 
00025 
00026   geometry_  = boost::shared_ptr<DetLayerGeometry>(new DetLayerGeometry());
00027   return geometry_;
00028 }
00029 
00030 
00031 DEFINE_FWK_EVENTSETUP_MODULE(DetLayerGeometryESProducer);