Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
CondFormats
Common
src
DropBoxMetadata.cc
Go to the documentation of this file.
1
2
/*
3
* See header file for a description of this class.
4
*
5
* $Date: 2011/03/02 17:09:28 $
6
* $Revision: 1.2 $
7
* \author G. Cerminara - CERN
8
*/
9
10
#include "
CondFormats/Common/interface/DropBoxMetadata.h
"
11
12
using
std::string;
13
using
std::map
;
14
15
16
DropBoxMetadata::DropBoxMetadata
(){}
17
18
DropBoxMetadata::~DropBoxMetadata
(){}
19
20
21
void
DropBoxMetadata::Parameters::addParameter
(
const
string
&
key
,
const
string
&
value
) {
22
theParameters
[
key
] =
value
;
23
}
24
25
string
DropBoxMetadata::Parameters::getParameter
(
const
string
&
key
)
const
{
26
string
ret
;
27
map<string, string>::const_iterator thePair = theParameters.find(key);
28
if
(thePair != theParameters.end()) {
29
ret = (*thePair).second;
30
}
31
return
ret
;
32
}
33
34
const
map<string, string> &
DropBoxMetadata::Parameters::getParameterMap
()
const
{
35
return
theParameters;
36
}
37
38
39
40
41
void
DropBoxMetadata::addRecordParameters
(
const
string
&
record
,
const
Parameters
& params) {
42
recordSet
[
record
] = params;
43
}
44
45
const
DropBoxMetadata::Parameters
&
DropBoxMetadata::getRecordParameters
(
const
string
&
record
)
const
{
46
return
recordSet
.find(record)->second;
47
}
48
49
bool
DropBoxMetadata::knowsRecord
(
const
std::string&
record
)
const
{
50
if
(
recordSet
.find(record) !=
recordSet
.end())
return
true
;
51
52
return
false
;
53
}
record
JetCorrectorParameters::Record record
Definition:
classes.h:11
relativeConstraints.value
tuple value
Definition:
relativeConstraints.py:54
DropBoxMetadata::knowsRecord
bool knowsRecord(const std::string &record) const
Definition:
DropBoxMetadata.cc:49
run_regression.ret
int ret
Definition:
run_regression.py:388
DropBoxMetadata::Parameters::getParameter
std::string getParameter(const std::string &key) const
Definition:
DropBoxMetadata.cc:25
Association.map
dictionary map
Definition:
Association.py:196
DropBoxMetadata::Parameters
Definition:
DropBoxMetadata.h:25
DropBoxMetadata::Parameters::theParameters
std::map< std::string, std::string > theParameters
Definition:
DropBoxMetadata.h:36
DropBoxMetadata::Parameters::getParameterMap
const std::map< std::string, std::string > & getParameterMap() const
Definition:
DropBoxMetadata.cc:34
DropBoxMetadata::Parameters::addParameter
void addParameter(const std::string &key, const std::string &vale)
Definition:
DropBoxMetadata.cc:21
combine.key
list key
Definition:
combine.py:13
DropBoxMetadata::recordSet
std::map< std::string, DropBoxMetadata::Parameters > recordSet
Definition:
DropBoxMetadata.h:49
DropBoxMetadata.h
DropBoxMetadata::addRecordParameters
void addRecordParameters(const std::string &record, const Parameters ¶ms)
Definition:
DropBoxMetadata.cc:41
DropBoxMetadata::~DropBoxMetadata
virtual ~DropBoxMetadata()
Destructor.
Definition:
DropBoxMetadata.cc:18
DropBoxMetadata::getRecordParameters
const Parameters & getRecordParameters(const std::string &record) const
Definition:
DropBoxMetadata.cc:45
DropBoxMetadata::DropBoxMetadata
DropBoxMetadata()
Constructor.
Definition:
DropBoxMetadata.cc:16
Generated for CMSSW Reference Manual by
1.8.5