CMS 3D CMS Logo

EcalFloatCondObjectContainerXMLTranslator.h
Go to the documentation of this file.
1 
10 #ifndef __EcalFloatCondObjectContainterXMLTranslator_h_
11 #define __EcalFloatCondObjectContainterXMLTranslator_h_
12 
15 #include <string>
16 #include <vector>
17 
19 
20 public:
21 
22 
23  static int readXML (const std::string& filename,
26 
27  static std::vector<float> barrelfromXML(const std::string& filename);
28 
29  static std::vector<float> endcapfromXML(const std::string& filename);
30 
31  static int writeXML (const std::string& filename,
32  const EcalCondHeader& header,
33  const EcalFloatCondObjectContainer& record);
34 
35  // dump the two flat arrays (hashed-indexed as in EBDetId, EEDetId) to XML
36  static std::string dumpXML(const EcalCondHeader& header,
37  const std::vector<float>& eb,
38  const std::vector<float>& ee);
39 private:
40 
41  // dump the CMSSW object container to XML
42  static std::string dumpXML(const EcalCondHeader& header,
43  const EcalFloatCondObjectContainer& record);
44 
45 };
46 
47 #endif // __EcalFloatCondObjectContainerXMLTranslator_h_
static int writeXML(const std::string &filename, const EcalCondHeader &header, const EcalFloatCondObjectContainer &record)
static std::vector< float > barrelfromXML(const std::string &filename)
JetCorrectorParameters::Record record
Definition: classes.h:7
static int readXML(const std::string &filename, EcalCondHeader &header, EcalFloatCondObjectContainer &record)
static std::vector< float > endcapfromXML(const std::string &filename)
static std::string dumpXML(const EcalCondHeader &header, const std::vector< float > &eb, const std::vector< float > &ee)