FWCore
ParameterSet
interface
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 "
DataFormats/Provenance/interface/ParameterSetID.h
"
11
#include "
DataFormats/Provenance/interface/ParameterSetBlob.h
"
12
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
13
14
namespace
edm
{
15
16
typedef
std::vector<std::string>
StringVector
;
17
18
struct
MainParameterSet
{
19
MainParameterSet
(
ParameterSetID
const
& oldID,
std::string
const
& psetString);
20
~MainParameterSet
();
21
ParameterSetID
oldID_
;
22
ParameterSet
parameterSet_
;
23
StringVector
paths_
;
24
StringVector
endPaths_
;
25
std::set<std::string>
triggerPaths_
;
26
};
27
28
struct
TriggerPath
{
29
TriggerPath
(
ParameterSet
const
&
pset
);
30
~TriggerPath
();
31
ParameterSet
parameterSet_
;
32
StringVector
tPaths_
;
33
std::set<std::string>
triggerPaths_
;
34
};
35
36
//------------------------------------------------------------
37
// Class ParameterSetConverter
38
39
typedef
std::map<ParameterSetID, ParameterSetBlob>
ParameterSetMap
;
40
class
ParameterSetConverter
{
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
;
46
ParameterSetConverter
(
ParameterSetMap
const
& psetMap,
47
ParameterSetIdConverter
& idConverter,
48
bool
alreadyByReference);
49
~ParameterSetConverter
();
50
ParameterSetConverter
(
const
ParameterSetConverter
&) =
delete
;
51
ParameterSetConverter
&
operator=
(
const
ParameterSetConverter
&) =
delete
;
52
53
ParameterSetIdConverter
const
&
parameterSetIdConverter
()
const
{
return
parameterSetIdConverter_
; }
54
55
private
:
56
void
convertParameterSets
();
57
void
noConvertParameterSets
();
58
StringWithIDList
parameterSets_
;
59
std::vector<MainParameterSet>
mainParameterSets_
;
60
std::vector<TriggerPath>
triggerPaths_
;
61
StringMap
replace_
;
62
ParameterSetIdConverter
&
parameterSetIdConverter_
;
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
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
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
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
Generated for CMSSW Reference Manual by
1.8.16