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,
48  ParameterSetIdConverter& idConverter,
49  bool alreadyByReference);
51  ParameterSetIdConverter const& parameterSetIdConverter() const { return parameterSetIdConverter_; }
52 
53  private:
54  void convertParameterSets();
55  void noConvertParameterSets();
56  StringWithIDList parameterSets_;
57  std::vector<MainParameterSet> mainParameterSets_;
58  std::vector<TriggerPath> triggerPaths_;
59  StringMap replace_;
60  ParameterSetIdConverter& parameterSetIdConverter_;
61  };
62 } // namespace edm
63 #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_