CMS 3D CMS Logo

Public Member Functions

HcalHotCellDbInterface Class Reference

#include <HcalDQMDbInterface.h>

Inheritance diagram for HcalHotCellDbInterface:
HcalDQMDbInterface

List of all members.

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 ()

Detailed Description

Definition at line 60 of file HcalDQMDbInterface.h.


Constructor & Destructor Documentation

HcalHotCellDbInterface::HcalHotCellDbInterface ( ) [inline]

Definition at line 63 of file HcalDQMDbInterface.h.

{};

Member Function Documentation

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

Definition at line 130 of file HcalDQMDbInterface.cc.

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

Referenced by createDataset().

                                                                                                                 {
  DOMElement*  dataElem = createElement(doc,parent,"DATA");
  createElement(doc,dataElem,"CHANNEL_ON_OFF_STATE",itoa(item.mMasked));
  createElement(doc,dataElem,"CHANNEL_STATUS_WORD",itoa(item. mQuality));
  createElement(doc,dataElem,"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 139 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,"DATA_SET");
  createElement(doc,dataSetElem,"VERSION",version);
  createElement(doc,dataSetElem,"CREATION_TIMESTAMP",gmtime);
  createElement(doc,dataSetElem,"CREATED_BY","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 104 of file HcalDQMDbInterface.cc.

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

                                                                                                    {
  DOMElement*  parent = doc->getDocumentElement();
  DOMElement*  headerElem = createElement(doc,parent,"HEADER");
  DOMElement*  typeElem = createElement(doc,headerElem,"TYPE");
  createElement(doc,typeElem,"EXTENSION_TABLE_NAME","HCAL_CHANNEL_ON_OFF_STATES");
  createElement(doc,typeElem,"NAME","HCAL channel on off states");
  DOMElement*  runElem = createElement(doc,headerElem,"RUN");
  createElement(doc,runElem,"RUN_TYPE","hcal-dqm-onoff-test");
  createElement(doc,runElem,"RUN_NUMBER",itoa(runno));
  createElement(doc,runElem,"RUN_BEGIN_TIMESTAMP",startTime);
  createElement(doc,runElem,"COMMENT_DESCRIPTION","dqm data");
}