CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ProcessDesc.h
Go to the documentation of this file.
1 #ifndef ParameterSet_ProcessDesc_h
2 #define ParameterSet_ProcessDesc_h
3 
4 #include "boost/shared_ptr.hpp"
5 #include <string>
6 #include <vector>
7 
8 namespace edm {
9 
10  class ParameterSet;
11 
12  class ProcessDesc {
13 
14  public:
15  explicit ProcessDesc(ParameterSet const& pset);
16 
18  explicit ProcessDesc(std::string const& config);
19 
20  ~ProcessDesc();
21 
23  boost::shared_ptr<ParameterSet> getProcessPSet() const;
24 
26 
28  std::string getDependencies(std::string const& modulename);
29 
31  boost::shared_ptr<std::vector<ParameterSet> > getServicesPSets() const;
32 
33  void addService(ParameterSet& pset);
35  void addService(std::string const& service);
37  void addDefaultService(std::string const& service);
39  void addServices(std::vector<std::string> const& defaultServices,
40  std::vector<std::string> const& forcedServices);
41 
42  std::string dump() const;
43  private:
44 
45  //Path and sequence information
46  boost::shared_ptr<ParameterSet> pset_;
47  boost::shared_ptr<std::vector<ParameterSet> > services_;
48  };
49 }
50 
51 #endif
void addDefaultService(std::string const &service)
add a service if it&#39;s not already there
Definition: ProcessDesc.cc:54
void addServices(std::vector< std::string > const &defaultServices, std::vector< std::string > const &forcedServices)
add some defaults services, and some forced
Definition: ProcessDesc.cc:76
boost::shared_ptr< std::vector< ParameterSet > > services_
Definition: ProcessDesc.h:47
void addService(ParameterSet &pset)
Definition: ProcessDesc.cc:43
tuple pset
Definition: CrabTask.py:85
boost::shared_ptr< ParameterSet > pset_
Definition: ProcessDesc.h:46
boost::shared_ptr< std::vector< ParameterSet > > getServicesPSets() const
get the descriptions of the services
Definition: ProcessDesc.cc:38
boost::shared_ptr< ParameterSet > getProcessPSet() const
get the ParameterSet that describes the process
Definition: ProcessDesc.cc:33
std::string getDependencies(std::string const &modulename)
get the dependencies for this module
std::string dump() const
Definition: ProcessDesc.cc:97
tuple config
Definition: cmsDriver.py:17
ProcessDesc(ParameterSet const &pset)
Definition: ProcessDesc.cc:18