CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
11 
12 using std::string;
13 using std::map;
14 
15 
17 
19 
20 
21 void DropBoxMetadata::Parameters::addParameter(const string& key, const string& 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 
46  return recordSet.find(record)->second;
47 }
48 
50  if(recordSet.find(record) != recordSet.end()) return true;
51 
52  return false;
53 }
tuple ret
prodAgent to be discontinued
JetCorrectorParameters::Record record
Definition: classes.h:7
bool knowsRecord(const std::string &record) const
std::string getParameter(const std::string &key) const
std::map< std::string, std::string > theParameters
const std::map< std::string, std::string > & getParameterMap() const
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
void addParameter(const std::string &key, const std::string &vale)
std::map< std::string, DropBoxMetadata::Parameters > recordSet
void addRecordParameters(const std::string &record, const Parameters &params)
virtual ~DropBoxMetadata()
Destructor.
const Parameters & getRecordParameters(const std::string &record) const
DropBoxMetadata()
Constructor.