CMS 3D CMS Logo

ParameterSetConverter.h
Go to the documentation of this file.
1 #ifndef FWCore_ParameterSet_ParameterSetConverter_h
2 #define FWCore_ParameterSet_ParameterSetConverter_h
3 
4 #include <map>
5 #include <list>
6 #include <set>
7 #include <string>
8 #include <utility>
9 #include <vector>
10 #include "boost/utility.hpp"
14 
15 namespace edm {
16 
17  typedef std::vector<std::string> StringVector;
18 
20  MainParameterSet(ParameterSetID const& oldID, std::string const& psetString);
24  StringVector paths_;
25  StringVector endPaths_;
26  std::set<std::string> triggerPaths_;
27  };
28 
29  struct TriggerPath {
31  ~TriggerPath();
33  StringVector tPaths_;
34  std::set<std::string> triggerPaths_;
35  };
36 
37  //------------------------------------------------------------
38  // Class ParameterSetConverter
39 
40  typedef std::map<ParameterSetID, ParameterSetBlob> ParameterSetMap;
41  class ParameterSetConverter : private boost::noncopyable {
42  public:
43  typedef std::list<std::string> StringList;
44  typedef std::map<std::string, std::string> StringMap;
45  typedef std::list<std::pair<std::string, ParameterSetID> > StringWithIDList;
46  typedef std::map<ParameterSetID, ParameterSetID> ParameterSetIdConverter;
47  ParameterSetConverter(ParameterSetMap const& psetMap, ParameterSetIdConverter& idConverter, bool alreadyByReference);
49  ParameterSetIdConverter const& parameterSetIdConverter() const {return parameterSetIdConverter_;}
50  private:
51  void convertParameterSets();
52  void noConvertParameterSets();
53  StringWithIDList parameterSets_;
54  std::vector<MainParameterSet> mainParameterSets_;
55  std::vector<TriggerPath> triggerPaths_;
56  StringMap replace_;
57  ParameterSetIdConverter& parameterSetIdConverter_;
58  };
59 }
60 #endif
ParameterSetIdConverter const & parameterSetIdConverter() const
std::vector< std::string > StringVector
ParameterSetIdConverter & parameterSetIdConverter_
std::vector< MainParameterSet > mainParameterSets_
std::vector< TriggerPath > triggerPaths_
std::map< ParameterSetID, ParameterSetID > ParameterSetIdConverter
std::map< std::string, std::string > StringMap
ParameterSet parameterSet_
std::map< ParameterSetID, ParameterSetBlob > ParameterSetMap
std::set< std::string > triggerPaths_
HLT enums.
std::list< std::pair< std::string, ParameterSetID > > StringWithIDList
std::list< std::string > StringList
MainParameterSet(ParameterSetID const &oldID, std::string const &psetString)
std::set< std::string > triggerPaths_