CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalFloatCondObjectContainerXMLTranslator.h
Go to the documentation of this file.
1 
10 #ifndef __EcalFloatCondObjectContainterXMLTranslator_h_
11 #define __EcalFloatCondObjectContainterXMLTranslator_h_
12 
16 #include <xercesc/dom/DOMNode.hpp>
17 #include <string>
18 #include <vector>
19 
20 
22 
23 public:
24 
25 
26  static int readXML (const std::string& filename,
27  EcalCondHeader& header,
29 
30  static std::vector<float> barrelfromXML(const std::string& filename);
31 
32  static std::vector<float> endcapfromXML(const std::string& filename);
33 
34  static int writeXML (const std::string& filename,
35  const EcalCondHeader& header,
36  const EcalFloatCondObjectContainer& record);
37 
38  // dump the CMSSW object container to XML
39  static std::string dumpXML(const EcalCondHeader& header,
40  const EcalFloatCondObjectContainer& record);
41 
42  // dump the two flat arrays (hashed-indexed as in EBDetId, EEDetId) to XML
43  static std::string dumpXML(const EcalCondHeader& header,
44  const std::vector<float>& eb,
45  const std::vector<float>& ee);
46 
47 };
48 
49 
50 
51 #endif // __EcalFloatCondObjectContainerXMLTranslator_h_
52 
53 // Configure (x)emacs for this file ...
54 // Local Variables:
55 // mode:c++
56 // compile-command: "cd ..; scram b"
57 // End:
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:13
static int readXML(const std::string &filename, EcalCondHeader &header, EcalFloatCondObjectContainer &record)
static std::string dumpXML(const EcalCondHeader &header, const EcalFloatCondObjectContainer &record)
static std::vector< float > endcapfromXML(const std::string &filename)
tuple filename
Definition: lut2db_cfg.py:20