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>
13 
14 namespace edm {
15 
16  typedef std::vector<std::string> StringVector;
17 
19  MainParameterSet(ParameterSetID const& oldID, std::string const& psetString);
25  std::set<std::string> triggerPaths_;
26  };
27 
28  struct TriggerPath {
30  ~TriggerPath();
33  std::set<std::string> triggerPaths_;
34  };
35 
36  //------------------------------------------------------------
37  // Class ParameterSetConverter
38 
39  typedef std::map<ParameterSetID, ParameterSetBlob> ParameterSetMap;
41  public:
42  typedef std::list<std::string> StringList;
43  typedef std::map<std::string, std::string> StringMap;
44  typedef std::list<std::pair<std::string, ParameterSetID> > StringWithIDList;
45  typedef std::map<ParameterSetID, ParameterSetID> ParameterSetIdConverter;
47  ParameterSetIdConverter& idConverter,
48  bool alreadyByReference);
52 
54 
55  private:
56  void convertParameterSets();
59  std::vector<MainParameterSet> mainParameterSets_;
60  std::vector<TriggerPath> triggerPaths_;
63  };
64 } // namespace edm
65 #endif
edm::ParameterSetConverter::mainParameterSets_
std::vector< MainParameterSet > mainParameterSets_
Definition: ParameterSetConverter.h:59
edm::ParameterSetConverter::convertParameterSets
void convertParameterSets()
Definition: ParameterSetConverter.cc:111
edm::ParameterSetConverter::triggerPaths_
std::vector< TriggerPath > triggerPaths_
Definition: ParameterSetConverter.h:60
edm::ParameterSetConverter::noConvertParameterSets
void noConvertParameterSets()
Definition: ParameterSetConverter.cc:96
edm
HLT enums.
Definition: AlignableModifier.h:19
ParameterSetBlob.h
edm::ParameterSetConverter::StringWithIDList
std::list< std::pair< std::string, ParameterSetID > > StringWithIDList
Definition: ParameterSetConverter.h:44
edm::MainParameterSet
Definition: ParameterSetConverter.h:18
edm::TriggerPath::triggerPaths_
std::set< std::string > triggerPaths_
Definition: ParameterSetConverter.h:33
edm::ParameterSetConverter
Definition: ParameterSetConverter.h:40
edm::TriggerPath::~TriggerPath
~TriggerPath()
Definition: ParameterSetConverter.cc:55
edm::ParameterSetMap
std::map< ParameterSetID, ParameterSetBlob > ParameterSetMap
Definition: ParameterSetConverter.h:39
edm::MainParameterSet::endPaths_
StringVector endPaths_
Definition: ParameterSetConverter.h:24
edm::ParameterSetConverter::replace_
StringMap replace_
Definition: ParameterSetConverter.h:61
StringMap
Definition: StringMap.h:8
edm::ParameterSetConverter::parameterSetIdConverter
ParameterSetIdConverter const & parameterSetIdConverter() const
Definition: ParameterSetConverter.h:53
edm::ParameterSetConverter::~ParameterSetConverter
~ParameterSetConverter()
Definition: ParameterSetConverter.cc:94
edm::ParameterSetConverter::StringList
std::list< std::string > StringList
Definition: ParameterSetConverter.h:42
edm::Hash< ParameterSetType >
edm::TriggerPath::parameterSet_
ParameterSet parameterSet_
Definition: ParameterSetConverter.h:31
edm::MainParameterSet::paths_
StringVector paths_
Definition: ParameterSetConverter.h:23
edm::MainParameterSet::MainParameterSet
MainParameterSet(ParameterSetID const &oldID, std::string const &psetString)
Definition: ParameterSetConverter.cc:30
edm::TriggerPath::tPaths_
StringVector tPaths_
Definition: ParameterSetConverter.h:32
edm::ParameterSet
Definition: ParameterSet.h:47
edm::MainParameterSet::triggerPaths_
std::set< std::string > triggerPaths_
Definition: ParameterSetConverter.h:25
edm::StringVector
std::vector< std::string > StringVector
Definition: ParameterSetConverter.h:16
edm::ParameterSetConverter::parameterSets_
StringWithIDList parameterSets_
Definition: ParameterSetConverter.h:58
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::TriggerPath
Definition: ParameterSetConverter.h:28
edm::MainParameterSet::parameterSet_
ParameterSet parameterSet_
Definition: ParameterSetConverter.h:22
edm::MainParameterSet::~MainParameterSet
~MainParameterSet()
Definition: ParameterSetConverter.cc:46
edm::ParameterSetConverter::ParameterSetConverter
ParameterSetConverter(ParameterSetMap const &psetMap, ParameterSetIdConverter &idConverter, bool alreadyByReference)
Definition: ParameterSetConverter.cc:59
edm::MainParameterSet::oldID_
ParameterSetID oldID_
Definition: ParameterSetConverter.h:21
ParameterSetID.h
edm::TriggerPath::TriggerPath
TriggerPath(ParameterSet const &pset)
Definition: ParameterSetConverter.cc:48
ParameterSet.h
edm::ParameterSetConverter::parameterSetIdConverter_
ParameterSetIdConverter & parameterSetIdConverter_
Definition: ParameterSetConverter.h:62
edm::ParameterSetConverter::ParameterSetIdConverter
std::map< ParameterSetID, ParameterSetID > ParameterSetIdConverter
Definition: ParameterSetConverter.h:45
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
edm::ParameterSetConverter::operator=
ParameterSetConverter & operator=(const ParameterSetConverter &)=delete
edm::ParameterSetConverter::StringMap
std::map< std::string, std::string > StringMap
Definition: ParameterSetConverter.h:43