CMS 3D CMS Logo

MakeParameterSets.cc

Go to the documentation of this file.
00001 #include "FWCore/ParameterSet/interface/MakeParameterSets.h"
00002 #include "FWCore/ParameterSet/interface/PythonProcessDesc.h"
00003 namespace edm
00004 {
00005 
00006   boost::shared_ptr<ProcessDesc>
00007   readConfig(const std::string & config)
00008   {
00009     PythonProcessDesc pythonProcessDesc(config);
00010     return pythonProcessDesc.processDesc();
00011   }
00012 
00013   boost::shared_ptr<edm::ProcessDesc>
00014   readConfig(const std::string & config, int argc, char * argv[])
00015   {
00016     PythonProcessDesc pythonProcessDesc(config, argc, argv);
00017     return pythonProcessDesc.processDesc();
00018   }
00019 
00020 
00021   void
00022   makeParameterSets(std::string const& configtext,
00023                   boost::shared_ptr<ParameterSet>& main,
00024                   boost::shared_ptr<std::vector<ParameterSet> >& serviceparams)
00025   {
00026     PythonProcessDesc pythonProcessDesc(configtext);
00027     boost::shared_ptr<edm::ProcessDesc> processDesc = pythonProcessDesc.processDesc();
00028     main = processDesc->getProcessPSet();
00029     serviceparams = processDesc->getServicesPSets();
00030   }
00031 
00032 } // namespace edm

Generated on Tue Jun 9 17:36:28 2009 for CMSSW by  doxygen 1.5.4