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, char* name);
38  DOMElement* createElement(DOMDocument* doc, DOMElement* parent, char* name, char* value);
39  DOMElement* createElement(DOMDocument* doc, DOMElement* parent, char* name, const char* value);
40  DOMElement* createIOV(DOMDocument* doc, DOMElement* parent,
41  unsigned long long fIovBegin, unsigned long long fIovEnd);
42  DOMElement* createTag(DOMDocument* doc, DOMElement* parent,
43  const char* fTagName, const char* fDetectorName, const char* fComment);
44  DOMElement* makeMapTag(DOMDocument* doc, DOMElement* fMap);
45  DOMElement* makeMapIOV(DOMDocument* doc, DOMElement* fTag);
46  DOMElement* makeMapDataset(DOMDocument* doc, DOMElement* fIov);
47  DOMElement* createFooter(DOMDocument* doc,
48  unsigned long long fIovBegin, unsigned long long fIovEnd,
49  const char* fTagName, const char* fDetectorName, const char* fComment);
50  DOMElement* createChannel(DOMDocument* doc,DOMElement* parent, HcalDetId id);
51 
52  const char* itoa(int i){
53  char temp[256];
54  sprintf(temp,"%d",i);
55  std::string outVal(temp);
56  return outVal.c_str();
57  }
58 };
59 
60 
62  public:
63 
65 
66  DOMElement* createData(DOMDocument* doc,DOMElement* parent, HcalDQMChannelQuality::Item item);
67  void createDataset(DOMDocument* doc, HcalDQMChannelQuality::Item item, const char* gmtime, const char* version);
68  void createHeader(DOMDocument* doc, unsigned int runno, const char* startTime);
69 
70 };
71 
73  public:
74 
76 
77  void createData(DOMDocument* doc,DOMElement* parent, HcalHLXMask mask);
78  DOMElement* createDataset(DOMDocument* doc, const HcalHLXMask mask, const char* gmtime, const char* version, const char* subversion);
79  void createHeader(DOMDocument* doc);
80 };
81 
82 
83 
84 
85 /*
86 class HcalRunSummaryDbInterface : public HcalDQMDbInterface{
87  public:
88 
89  HcalDQMDbInterface(){};
90 
91  DOMElement* createChannel(DOMDocument* doc,DOMElement* parent );
92  DOMElement* createData(DOMDocument* doc,DOMElement* parent );
93  void createDataset(DOMDocument* doc);
94 
95 
96 };
97 */
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 * 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 * createElement(DOMDocument *doc, DOMElement *parent, char *name)
DOMElement * createIOV(DOMDocument *doc, DOMElement *parent, unsigned long long fIovBegin, unsigned long long fIovEnd)