Main Page
Namespaces
Classes
Package Documentation
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/02/23 16:55:18 $
6
* $Revision: 1.1 $
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:7
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
DropBoxMetadata::knowsRecord
bool knowsRecord(const std::string &record) const
Definition:
DropBoxMetadata.cc:49
crabWrapper.key
key
Definition:
crabWrapper.py:19
DropBoxMetadata::Parameters::getParameter
std::string getParameter(const std::string &key) const
Definition:
DropBoxMetadata.cc:25
DropBoxMetadata::Parameters
Definition:
DropBoxMetadata.h:27
DropBoxMetadata::Parameters::getParameterMap
const std::map< std::string, std::string > & getParameterMap() const
Definition:
DropBoxMetadata.cc:34
value
Definition:
value.py:1
DropBoxMetadata::Parameters::addParameter
void addParameter(const std::string &key, const std::string &vale)
Definition:
DropBoxMetadata.cc:21
relativeConstraints.value
value
Definition:
relativeConstraints.py:53
genParticles_cff.map
map
Definition:
genParticles_cff.py:11
DropBoxMetadata::recordSet
std::map< std::string, DropBoxMetadata::Parameters > recordSet
Definition:
DropBoxMetadata.h:53
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.11