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::map
;
13
using
std::string
;
14
15
DropBoxMetadata::DropBoxMetadata
() {}
16
17
DropBoxMetadata::~DropBoxMetadata
() {}
18
19
void
DropBoxMetadata::Parameters::addParameter
(
const
string
&
key
,
const
string
&
value
) {
theParameters
[
key
] =
value
; }
20
21
string
DropBoxMetadata::Parameters::getParameter
(
const
string
&
key
)
const
{
22
string
ret
;
23
map<string, string>::const_iterator thePair = theParameters.find(
key
);
24
if
(thePair != theParameters.end()) {
25
ret
= (*thePair).second;
26
}
27
return
ret
;
28
}
29
30
const
map<string, string>&
DropBoxMetadata::Parameters::getParameterMap
()
const
{
return
theParameters; }
31
32
void
DropBoxMetadata::addRecordParameters
(
const
string
&
record
,
const
Parameters
&
params
) {
33
recordSet
[
record
] =
params
;
34
}
35
36
const
DropBoxMetadata::Parameters
&
DropBoxMetadata::getRecordParameters
(
const
string
&
record
)
const
{
37
return
recordSet
.find(
record
)->second;
38
}
39
40
bool
DropBoxMetadata::knowsRecord
(
const
std::string
&
record
)
const
{
41
if
(
recordSet
.find(
record
) !=
recordSet
.end())
42
return
true
;
43
44
return
false
;
45
}
runTheMatrix.ret
ret
prodAgent to be discontinued
Definition:
runTheMatrix.py:355
DropBoxMetadata::recordSet
std::map< std::string, DropBoxMetadata::Parameters > recordSet
Definition:
DropBoxMetadata.h:48
CalibrationSummaryClient_cfi.params
params
Definition:
CalibrationSummaryClient_cfi.py:14
DropBoxMetadata::knowsRecord
bool knowsRecord(const std::string &record) const
Definition:
DropBoxMetadata.cc:40
GlobalPosition_Frontier_DevDB_cff.record
record
Definition:
GlobalPosition_Frontier_DevDB_cff.py:10
DropBoxMetadata::~DropBoxMetadata
virtual ~DropBoxMetadata()
Destructor.
Definition:
DropBoxMetadata.cc:17
DropBoxMetadata.h
DropBoxMetadata::Parameters::getParameter
std::string getParameter(const std::string &key) const
Definition:
DropBoxMetadata.cc:21
DropBoxMetadata::addRecordParameters
void addRecordParameters(const std::string &record, const Parameters ¶ms)
Definition:
DropBoxMetadata.cc:32
DropBoxMetadata::DropBoxMetadata
DropBoxMetadata()
Constructor.
Definition:
DropBoxMetadata.cc:15
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
DropBoxMetadata::Parameters::theParameters
std::map< std::string, std::string > theParameters
Definition:
DropBoxMetadata.h:34
value
Definition:
value.py:1
DropBoxMetadata::Parameters::addParameter
void addParameter(const std::string &key, const std::string &vale)
Definition:
DropBoxMetadata.cc:19
DropBoxMetadata::Parameters::getParameterMap
const std::map< std::string, std::string > & getParameterMap() const
Definition:
DropBoxMetadata.cc:30
relativeConstraints.value
value
Definition:
relativeConstraints.py:53
DropBoxMetadata::getRecordParameters
const Parameters & getRecordParameters(const std::string &record) const
Definition:
DropBoxMetadata.cc:36
genParticles_cff.map
map
Definition:
genParticles_cff.py:11
DropBoxMetadata::Parameters
Definition:
DropBoxMetadata.h:25
crabWrapper.key
key
Definition:
crabWrapper.py:19
Generated for CMSSW Reference Manual by
1.8.16