CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/TrackingTools/Producers/src/TrajectoryCleanerESProducer.cc

Go to the documentation of this file.
00001 #include "TrackingTools/Producers/interface/TrajectoryCleanerESProducer.h"
00002 #include "TrackingTools/TrajectoryCleaning/interface/TrajectoryCleanerFactory.h"
00003 
00004 TrajectoryCleanerESProducer::TrajectoryCleanerESProducer(const edm::ParameterSet& iConfig)
00005 {
00006   theComponentName = iConfig.getParameter<std::string>("ComponentName");
00007   theComponentType = iConfig.getParameter<std::string>("ComponentType");
00008 
00009   theConfig = iConfig;
00010   setWhatProduced(this, theComponentName);
00011 }
00012 
00013 
00014 TrajectoryCleanerESProducer::~TrajectoryCleanerESProducer(){}
00015 
00016 // ------------ method called to produce the data  ------------
00017 TrajectoryCleanerESProducer::ReturnType
00018 TrajectoryCleanerESProducer::produce(const  TrackingComponentsRecord & iRecord)
00019 {
00020    using namespace edm::es;
00021    
00022    ReturnType tc(TrajectoryCleanerFactory::get()->create(theComponentType, theConfig));
00023    return tc;
00024 }