test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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 "boost/utility.hpp"
11
#include "
DataFormats/Provenance/interface/ParameterSetID.h
"
12
#include "
DataFormats/Provenance/interface/ParameterSetBlob.h
"
13
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
14
15
namespace
edm {
16
17
typedef
std::vector<std::string>
StringVector
;
18
19
struct
MainParameterSet
{
20
MainParameterSet
(
ParameterSetID
const
& oldID,
std::string
const
& psetString);
21
~MainParameterSet
();
22
ParameterSetID
oldID_
;
23
ParameterSet
parameterSet_
;
24
StringVector
paths_
;
25
StringVector
endPaths_
;
26
std::set<std::string>
triggerPaths_
;
27
};
28
29
struct
TriggerPath
{
30
TriggerPath
(
ParameterSet
const
&
pset
);
31
~TriggerPath
();
32
ParameterSet
parameterSet_
;
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);
48
~ParameterSetConverter
();
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
edm::ParameterSetConverter::~ParameterSetConverter
~ParameterSetConverter()
Definition:
ParameterSetConverter.cc:98
edm::ParameterSetConverter::parameterSetIdConverter
ParameterSetIdConverter const & parameterSetIdConverter() const
Definition:
ParameterSetConverter.h:49
edm::Hash< ParameterSetType >
edm::TriggerPath::tPaths_
StringVector tPaths_
Definition:
ParameterSetConverter.h:33
TrackValidation_cff.pset
tuple pset
Definition:
TrackValidation_cff.py:374
edm::TriggerPath::TriggerPath
TriggerPath(ParameterSet const &pset)
Definition:
ParameterSetConverter.cc:49
edm::StringVector
std::vector< std::string > StringVector
Definition:
ParameterSetConverter.h:17
edm::ParameterSetConverter::parameterSets_
StringWithIDList parameterSets_
Definition:
ParameterSetConverter.h:53
edm::MainParameterSet::endPaths_
StringVector endPaths_
Definition:
ParameterSetConverter.h:25
edm::ParameterSetConverter::parameterSetIdConverter_
ParameterSetIdConverter & parameterSetIdConverter_
Definition:
ParameterSetConverter.h:57
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
ParameterSet.h
edm::ParameterSetConverter::ParameterSetConverter
ParameterSetConverter(ParameterSetMap const &psetMap, ParameterSetIdConverter &idConverter, bool alreadyByReference)
Definition:
ParameterSetConverter.cc:62
edm::ParameterSetConverter::mainParameterSets_
std::vector< MainParameterSet > mainParameterSets_
Definition:
ParameterSetConverter.h:54
edm::TriggerPath
Definition:
ParameterSetConverter.h:29
edm::MainParameterSet::oldID_
ParameterSetID oldID_
Definition:
ParameterSetConverter.h:22
StringMap
Definition:
StringMap.h:8
edm::ParameterSetConverter::triggerPaths_
std::vector< TriggerPath > triggerPaths_
Definition:
ParameterSetConverter.h:55
edm::MainParameterSet::parameterSet_
ParameterSet parameterSet_
Definition:
ParameterSetConverter.h:23
edm::ParameterSetConverter::convertParameterSets
void convertParameterSets()
Definition:
ParameterSetConverter.cc:117
edm::MainParameterSet::paths_
StringVector paths_
Definition:
ParameterSetConverter.h:24
edm::ParameterSetConverter::ParameterSetIdConverter
std::map< ParameterSetID, ParameterSetID > ParameterSetIdConverter
Definition:
ParameterSetConverter.h:46
edm::ParameterSetConverter::StringMap
std::map< std::string, std::string > StringMap
Definition:
ParameterSetConverter.h:44
edm::TriggerPath::~TriggerPath
~TriggerPath()
Definition:
ParameterSetConverter.cc:58
ParameterSetID.h
edm::ParameterSetConverter
Definition:
ParameterSetConverter.h:41
edm::TriggerPath::parameterSet_
ParameterSet parameterSet_
Definition:
ParameterSetConverter.h:32
edm::ParameterSetMap
std::map< ParameterSetID, ParameterSetBlob > ParameterSetMap
Definition:
ParameterSetConverter.h:40
edm::ParameterSetConverter::noConvertParameterSets
void noConvertParameterSets()
Definition:
ParameterSetConverter.cc:101
edm::MainParameterSet::triggerPaths_
std::set< std::string > triggerPaths_
Definition:
ParameterSetConverter.h:26
edm::ParameterSetConverter::StringWithIDList
std::list< std::pair< std::string, ParameterSetID > > StringWithIDList
Definition:
ParameterSetConverter.h:45
ParameterSetBlob.h
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::ParameterSetConverter::StringList
std::list< std::string > StringList
Definition:
ParameterSetConverter.h:43
edm::MainParameterSet::MainParameterSet
MainParameterSet(ParameterSetID const &oldID, std::string const &psetString)
Definition:
ParameterSetConverter.cc:31
edm::ParameterSetConverter::replace_
StringMap replace_
Definition:
ParameterSetConverter.h:56
edm::MainParameterSet::~MainParameterSet
~MainParameterSet()
Definition:
ParameterSetConverter.cc:47
edm::TriggerPath::triggerPaths_
std::set< std::string > triggerPaths_
Definition:
ParameterSetConverter.h:34
edm::MainParameterSet
Definition:
ParameterSetConverter.h:19
Generated for CMSSW Reference Manual by
1.8.5