CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalDQMDbInterface.h
Go to the documentation of this file.
1 #include <xercesc/util/XMLString.hpp>
2 #include <xercesc/framework/LocalFileFormatTarget.hpp>
3 #include <xercesc/dom/DOM.hpp>
4 #include <xercesc/dom/DOMImplementationLS.hpp>
5 #include <xercesc/dom/DOMWriter.hpp>
6 
11 //#include "CondTools/Hcal/include/HcalDbXml.h"
12 
13 #include "time.h"
14 #include <fstream>
15 #include <sstream>
16 #include <iostream>
17 #include <string>
18 
19 #if defined(XERCES_NEW_IOSTREAMS)
20 #include <iostream>
21 #else
22 #include <iostream.h>
23 #endif
24 
25 XERCES_CPP_NAMESPACE_USE
26 #define XML(str) XMLString::transcode(str)
27 
28 
30 public:
31 
33 
34  DOMDocument* createDocument();
35  void writeDocument(DOMDocument* doc, const char* xmlFile);
36 
37  DOMElement* createElement(DOMDocument* doc, DOMElement* parent, const char* name);
38  DOMElement* createElement(DOMDocument* doc, DOMElement* parent, const char* name, const char* value);
39  DOMElement* createIOV(DOMDocument* doc, DOMElement* parent,
40  unsigned long long fIovBegin, unsigned long long fIovEnd);
41  DOMElement* createTag(DOMDocument* doc, DOMElement* parent,
42  const char* fTagName, const char* fDetectorName, const char* fComment);
43  DOMElement* makeMapTag(DOMDocument* doc, DOMElement* fMap);
44  DOMElement* makeMapIOV(DOMDocument* doc, DOMElement* fTag);
45  DOMElement* makeMapDataset(DOMDocument* doc, DOMElement* fIov);
46  DOMElement* createFooter(DOMDocument* doc,
47  unsigned long long fIovBegin, unsigned long long fIovEnd,
48  const char* fTagName, const char* fDetectorName, const char* fComment);
49  DOMElement* createChannel(DOMDocument* doc,DOMElement* parent, HcalDetId id);
50 
51  const char* itoa(int i){
52  char temp[256];
53  sprintf(temp,"%d",i);
54  std::string outVal(temp);
55  return outVal.c_str();
56  }
57 };
58 
59 
61  public:
62 
64 
65  DOMElement* createData(DOMDocument* doc,DOMElement* parent, HcalDQMChannelQuality::Item item);
66  void createDataset(DOMDocument* doc, HcalDQMChannelQuality::Item item, const char* gmtime, const char* version);
67  void createHeader(DOMDocument* doc, unsigned int runno, const char* startTime);
68 
69 };
70 
72  public:
73 
75 
76  void createData(DOMDocument* doc,DOMElement* parent, HcalHLXMask mask);
77  DOMElement* createDataset(DOMDocument* doc, const HcalHLXMask mask, const char* gmtime, const char* version, const char* subversion);
78  void createHeader(DOMDocument* doc);
79 };
80 
81 
82 
83 
84 /*
85 class HcalRunSummaryDbInterface : public HcalDQMDbInterface{
86  public:
87 
88  HcalDQMDbInterface(){};
89 
90  DOMElement* createChannel(DOMDocument* doc,DOMElement* parent );
91  DOMElement* createData(DOMDocument* doc,DOMElement* parent );
92  void createDataset(DOMDocument* doc);
93 
94 
95 };
96 */
int i
Definition: DBlmapReader.cc:9
void createHeader(DOMDocument *doc, unsigned int runno, const char *startTime)
DOMElement * createFooter(DOMDocument *doc, unsigned long long fIovBegin, unsigned long long fIovEnd, const char *fTagName, const char *fDetectorName, const char *fComment)
list parent
Definition: dbtoconf.py:74
void createDataset(DOMDocument *doc, HcalDQMChannelQuality::Item item, const char *gmtime, const char *version)
DOMDocument * createDocument()
DOMElement * createElement(DOMDocument *doc, DOMElement *parent, const char *name)
DOMElement * createChannel(DOMDocument *doc, DOMElement *parent, HcalDetId id)
tuple doc
Definition: asciidump.py:381
DOMElement * createTag(DOMDocument *doc, DOMElement *parent, const char *fTagName, const char *fDetectorName, const char *fComment)
DOMElement * createDataset(DOMDocument *doc, const HcalHLXMask mask, const char *gmtime, const char *version, const char *subversion)
DOMElement * makeMapIOV(DOMDocument *doc, DOMElement *fTag)
void writeDocument(DOMDocument *doc, const char *xmlFile)
bool xmlFile(const std::string fParam)
const char * itoa(int i)
void createHeader(DOMDocument *doc)
void createData(DOMDocument *doc, DOMElement *parent, HcalHLXMask mask)
DOMElement * makeMapTag(DOMDocument *doc, DOMElement *fMap)
DOMElement * createData(DOMDocument *doc, DOMElement *parent, HcalDQMChannelQuality::Item item)
DOMElement * makeMapDataset(DOMDocument *doc, DOMElement *fIov)
DOMElement * createIOV(DOMDocument *doc, DOMElement *parent, unsigned long long fIovBegin, unsigned long long fIovEnd)