CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
HcalHotCellDbInterface Class Reference

#include <HcalDQMDbInterface.h>

Inheritance diagram for HcalHotCellDbInterface:
HcalDQMDbInterface

Public Member Functions

DOMElement * createData (DOMDocument *doc, DOMElement *parent, HcalDQMChannelQuality::Item item)
 
void createDataset (DOMDocument *doc, HcalDQMChannelQuality::Item item, const char *gmtime, const char *version)
 
void createHeader (DOMDocument *doc, unsigned int runno, const char *startTime)
 
 HcalHotCellDbInterface ()
 
- Public Member Functions inherited from HcalDQMDbInterface
DOMElement * createChannel (DOMDocument *doc, DOMElement *parent, HcalDetId id)
 
DOMDocument * createDocument ()
 
DOMElement * createElement (DOMDocument *doc, DOMElement *parent, char *name)
 
DOMElement * createElement (DOMDocument *doc, DOMElement *parent, char *name, char *value)
 
DOMElement * createElement (DOMDocument *doc, DOMElement *parent, char *name, const char *value)
 
DOMElement * createFooter (DOMDocument *doc, unsigned long long fIovBegin, unsigned long long fIovEnd, const char *fTagName, const char *fDetectorName, const char *fComment)
 
DOMElement * createIOV (DOMDocument *doc, DOMElement *parent, unsigned long long fIovBegin, unsigned long long fIovEnd)
 
DOMElement * createTag (DOMDocument *doc, DOMElement *parent, const char *fTagName, const char *fDetectorName, const char *fComment)
 
 HcalDQMDbInterface ()
 
const char * itoa (int i)
 
DOMElement * makeMapDataset (DOMDocument *doc, DOMElement *fIov)
 
DOMElement * makeMapIOV (DOMDocument *doc, DOMElement *fTag)
 
DOMElement * makeMapTag (DOMDocument *doc, DOMElement *fMap)
 
void writeDocument (DOMDocument *doc, const char *xmlFile)
 

Detailed Description

Definition at line 61 of file HcalDQMDbInterface.h.

Constructor & Destructor Documentation

HcalHotCellDbInterface::HcalHotCellDbInterface ( )
inline

Definition at line 64 of file HcalDQMDbInterface.h.

64 {};

Member Function Documentation

DOMElement * HcalHotCellDbInterface::createData ( DOMDocument *  doc,
DOMElement *  parent,
HcalDQMChannelQuality::Item  item 
)

Definition at line 136 of file HcalDQMDbInterface.cc.

References HcalDQMDbInterface::createElement(), HcalDQMDbInterface::itoa(), HcalDQMChannelQuality::Item::mComment, and HcalDQMChannelQuality::Item::mMasked.

Referenced by createDataset().

136  {
137  DOMElement* dataElem = createElement(doc,parent,(char*)"DATA");
138  createElement(doc,dataElem,(char*)"CHANNEL_ON_OFF_STATE",itoa(item.mMasked));
139  createElement(doc,dataElem,(char*)"CHANNEL_STATUS_WORD",itoa(item. mQuality));
140  createElement(doc,dataElem,(char*)"COMMENT_DESCRIPTION",item.mComment.c_str());
141  return dataElem;
142 }
list parent
Definition: dbtoconf.py:74
tuple doc
Definition: asciidump.py:381
const char * itoa(int i)
DOMElement * createElement(DOMDocument *doc, DOMElement *parent, char *name)
void HcalHotCellDbInterface::createDataset ( DOMDocument *  doc,
HcalDQMChannelQuality::Item  item,
const char *  gmtime,
const char *  version 
)

Definition at line 145 of file HcalDQMDbInterface.cc.

References HcalDQMDbInterface::createChannel(), createData(), HcalDQMDbInterface::createElement(), errorMatrix2Lands_multiChannel::id, HcalDQMChannelQuality::Item::mId, and dbtoconf::parent.

148  {
149 
150  DOMElement* parent = doc->getDocumentElement();
151  DOMElement* dataSetElem = createElement(doc,parent,(char*)"DATA_SET");
152  createElement(doc,dataSetElem,(char*)"VERSION",version);
153  createElement(doc,dataSetElem,(char*)"CREATION_TIMESTAMP",gmtime);
154  createElement(doc,dataSetElem,(char*)"CREATED_BY",(char*)"wfisher");
155 
156  HcalDetId id(item.mId);
157  createChannel(doc, dataSetElem, id);
158  createData(doc, dataSetElem,item);
159 }
list parent
Definition: dbtoconf.py:74
DOMElement * createChannel(DOMDocument *doc, DOMElement *parent, HcalDetId id)
tuple doc
Definition: asciidump.py:381
DOMElement * createData(DOMDocument *doc, DOMElement *parent, HcalDQMChannelQuality::Item item)
DOMElement * createElement(DOMDocument *doc, DOMElement *parent, char *name)
void HcalHotCellDbInterface::createHeader ( DOMDocument *  doc,
unsigned int  runno,
const char *  startTime 
)

Definition at line 110 of file HcalDQMDbInterface.cc.

References HcalDQMDbInterface::createElement(), HcalDQMDbInterface::itoa(), and dbtoconf::parent.

110  {
111  DOMElement* parent = doc->getDocumentElement();
112  DOMElement* headerElem = createElement(doc,parent,(char*)"HEADER");
113  DOMElement* typeElem = createElement(doc,headerElem,(char*)"TYPE");
114  createElement(doc,typeElem,(char*)"EXTENSION_TABLE_NAME",(char*)"HCAL_CHANNEL_ON_OFF_STATES");
115  createElement(doc,typeElem,(char*)"NAME",(char*)"HCAL channel on off states");
116  DOMElement* runElem = createElement(doc,headerElem,(char*)"RUN");
117  createElement(doc,runElem,(char*)"RUN_TYPE",(char*)"hcal-dqm-onoff-test");
118  createElement(doc,runElem,(char*)"RUN_NUMBER",itoa(runno));
119  createElement(doc,runElem,(char*)"RUN_BEGIN_TIMESTAMP",startTime);
120  createElement(doc,runElem,(char*)"COMMENT_DESCRIPTION",(char*)"dqm data");
121 }
list parent
Definition: dbtoconf.py:74
tuple doc
Definition: asciidump.py:381
const char * itoa(int i)
DOMElement * createElement(DOMDocument *doc, DOMElement *parent, char *name)