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, const HcalDQMChannelQuality::Item &item)
 
void createDataset (DOMDocument *doc, const 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, const char *name)
 
DOMElement * createElement (DOMDocument *doc, DOMElement *parent, const 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 60 of file HcalDQMDbInterface.h.

Constructor & Destructor Documentation

HcalHotCellDbInterface::HcalHotCellDbInterface ( )
inline

Definition at line 63 of file HcalDQMDbInterface.h.

63 {};

Member Function Documentation

DOMElement * HcalHotCellDbInterface::createData ( DOMDocument *  doc,
DOMElement *  parent,
const 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().

130  {
131  DOMElement* dataElem = createElement(doc,parent,"DATA");
132  createElement(doc,dataElem,"CHANNEL_ON_OFF_STATE",itoa(item.mMasked));
133  createElement(doc,dataElem,"CHANNEL_STATUS_WORD",itoa(item. mQuality));
134  createElement(doc,dataElem,"COMMENT_DESCRIPTION",item.mComment.c_str());
135  return dataElem;
136 }
list parent
Definition: dbtoconf.py:74
DOMElement * createElement(DOMDocument *doc, DOMElement *parent, const char *name)
tuple doc
Definition: asciidump.py:381
const char * itoa(int i)
void HcalHotCellDbInterface::createDataset ( DOMDocument *  doc,
const 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.

142  {
143 
144  DOMElement* parent = doc->getDocumentElement();
145  DOMElement* dataSetElem = createElement(doc,parent,"DATA_SET");
146  createElement(doc,dataSetElem,"VERSION",version);
147  createElement(doc,dataSetElem,"CREATION_TIMESTAMP",gmtime);
148  createElement(doc,dataSetElem,"CREATED_BY","wfisher");
149 
150  HcalDetId id(item.mId);
151  createChannel(doc, dataSetElem, id);
152  createData(doc, dataSetElem,item);
153 }
DOMElement * createData(DOMDocument *doc, DOMElement *parent, const HcalDQMChannelQuality::Item &item)
list parent
Definition: dbtoconf.py:74
DOMElement * createElement(DOMDocument *doc, DOMElement *parent, const char *name)
DOMElement * createChannel(DOMDocument *doc, DOMElement *parent, HcalDetId id)
tuple doc
Definition: asciidump.py:381
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.

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