#include <HcalDQMDbInterface.h>
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 () |
Definition at line 61 of file HcalDQMDbInterface.h.
HcalHotCellDbInterface::HcalHotCellDbInterface | ( | ) | [inline] |
Definition at line 64 of file HcalDQMDbInterface.h.
{};
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().
{ DOMElement* dataElem = createElement(doc,parent,(char*)"DATA"); createElement(doc,dataElem,(char*)"CHANNEL_ON_OFF_STATE",itoa(item.mMasked)); createElement(doc,dataElem,(char*)"CHANNEL_STATUS_WORD",itoa(item. mQuality)); createElement(doc,dataElem,(char*)"COMMENT_DESCRIPTION",item.mComment.c_str()); return dataElem; }
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(), HcalDQMChannelQuality::Item::mId, and dbtoconf::parent.
{ DOMElement* parent = doc->getDocumentElement(); DOMElement* dataSetElem = createElement(doc,parent,(char*)"DATA_SET"); createElement(doc,dataSetElem,(char*)"VERSION",version); createElement(doc,dataSetElem,(char*)"CREATION_TIMESTAMP",gmtime); createElement(doc,dataSetElem,(char*)"CREATED_BY",(char*)"wfisher"); HcalDetId id(item.mId); createChannel(doc, dataSetElem, id); createData(doc, dataSetElem,item); }
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.
{ DOMElement* parent = doc->getDocumentElement(); DOMElement* headerElem = createElement(doc,parent,(char*)"HEADER"); DOMElement* typeElem = createElement(doc,headerElem,(char*)"TYPE"); createElement(doc,typeElem,(char*)"EXTENSION_TABLE_NAME",(char*)"HCAL_CHANNEL_ON_OFF_STATES"); createElement(doc,typeElem,(char*)"NAME",(char*)"HCAL channel on off states"); DOMElement* runElem = createElement(doc,headerElem,(char*)"RUN"); createElement(doc,runElem,(char*)"RUN_TYPE",(char*)"hcal-dqm-onoff-test"); createElement(doc,runElem,(char*)"RUN_NUMBER",itoa(runno)); createElement(doc,runElem,(char*)"RUN_BEGIN_TIMESTAMP",startTime); createElement(doc,runElem,(char*)"COMMENT_DESCRIPTION",(char*)"dqm data"); }