CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch12/src/SimTracker/TrackAssociation/plugins/CosmicParametersDefinerForTPESProducer.cc

Go to the documentation of this file.
00001 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00002 #include "SimTracker/Records/interface/TrackAssociatorRecord.h"
00003 #include "SimTracker/TrackAssociation/plugins/CosmicParametersDefinerForTPESProducer.h"
00004 #include "FWCore/Framework/interface/ESProducer.h"
00005 
00006 // system include files
00007 #include <memory>
00008 #include "boost/shared_ptr.hpp"
00009 
00010 #include "FWCore/Framework/interface/ModuleFactory.h"
00011 #include "FWCore/Framework/interface/ESProducer.h"
00012 #include "FWCore/Framework/interface/ESHandle.h"
00013 
00014 #include "SimTracker/Records/interface/TrackAssociatorRecord.h"
00015 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00016 
00017 
00018 
00019 CosmicParametersDefinerForTPESProducer::CosmicParametersDefinerForTPESProducer(const edm::ParameterSet& iConfig)
00020 {
00021   //the following line is needed to tell the framework what
00022   // data is being produced
00023   std::string myName=iConfig.getParameter<std::string>("ComponentName");
00024   setWhatProduced(this,myName);
00025 
00026    //now do what ever other initialization is needed
00027    //conf_=iConfig;
00028 }
00029 
00030 
00031 CosmicParametersDefinerForTPESProducer::~CosmicParametersDefinerForTPESProducer()
00032 {
00033  
00034    // do anything here that needs to be done at desctruction time
00035    // (e.g. close files, deallocate resources etc.)
00036 
00037 }
00038 
00039 
00040 //
00041 // member functions
00042 //
00043 
00044 // ------------ method called to produce the data  ------------
00045 CosmicParametersDefinerForTPESProducer::ReturnType
00046 CosmicParametersDefinerForTPESProducer::produce(const TrackAssociatorRecord& iRecord)
00047 {
00048   ReturnType parametersDefiner_ (new CosmicParametersDefinerForTP());
00049   return parametersDefiner_ ;
00050 }
00051 
00052 //define this as a plug-in
00053 DEFINE_FWK_EVENTSETUP_MODULE(CosmicParametersDefinerForTPESProducer);
00054