00001 // -*- C++ -*- 00002 // 00003 // Package: Framework 00004 // Class : SourceFactory 00005 // 00006 // Implementation: 00007 // <Notes on implementation> 00008 // 00009 // Author: Chris Jones 00010 // Created: Wed May 25 19:27:37 EDT 2005 00011 // $Id: SourceFactory.cc,v 1.7 2012/04/16 15:43:50 wdd Exp $ 00012 // 00013 00014 // system include files 00015 00016 // user include files 00017 #include "FWCore/Framework/interface/SourceFactory.h" 00018 #include "FWCore/Framework/src/EventSetupsController.h" 00019 00020 // 00021 // static member functions 00022 // 00023 namespace edm { 00024 namespace eventsetup { 00025 00026 std::string SourceMakerTraits::name() { return "CMS EDM Framework ESSource"; } 00027 00028 boost::shared_ptr<SourceMakerTraits::base_type> const* 00029 SourceMakerTraits::getAlreadyMadeComponent(EventSetupsController const& esController, 00030 ParameterSet const& iConfiguration) { 00031 return esController.getAlreadyMadeESSource(iConfiguration); 00032 } 00033 00034 void SourceMakerTraits::putComponent(EventSetupsController& esController, 00035 ParameterSet const& iConfiguration, 00036 boost::shared_ptr<base_type> const& component) { 00037 esController.putESSource(iConfiguration, component); 00038 } 00039 } 00040 } 00041 00042 COMPONENTFACTORY_GET(edm::eventsetup::SourceMakerTraits);