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

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

Detailed Description

Definition at line 59 of file HcalDQMDbInterface.h.

Constructor & Destructor Documentation

HcalHotCellDbInterface::HcalHotCellDbInterface ( )
inline

Definition at line 62 of file HcalDQMDbInterface.h.

62 {};

Member Function Documentation

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

Definition at line 132 of file HcalDQMDbInterface.cc.

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

Referenced by createDataset().

132  {
133  DOMElement* dataElem = createElement(doc,parent,"DATA");
134  createElement(doc,dataElem,"CHANNEL_ON_OFF_STATE",itoa(item.mMasked));
135  createElement(doc,dataElem,"CHANNEL_STATUS_WORD",itoa(item. mQuality));
136  createElement(doc,dataElem,"COMMENT_DESCRIPTION",item.mComment.c_str());
137  return dataElem;
138 }
parent
Definition: confdb.py:1052
XERCES_CPP_NAMESPACE::DOMElement * createElement(XERCES_CPP_NAMESPACE::DOMDocument *doc, XERCES_CPP_NAMESPACE::DOMElement *parent, const char *name)
const char * itoa(int i)
void HcalHotCellDbInterface::createDataset ( XERCES_CPP_NAMESPACE::DOMDocument *  doc,
const HcalDQMChannelQuality::Item item,
const char *  gmtime,
const char *  version 
)

Definition at line 141 of file HcalDQMDbInterface.cc.

References HcalDQMDbInterface::createChannel(), createData(), HcalDQMDbInterface::createElement(), and HcalDQMChannelQuality::Item::mId.

144  {
145 
146  DOMElement* parent = doc->getDocumentElement();
147  DOMElement* dataSetElem = createElement(doc,parent,"DATA_SET");
148  createElement(doc,dataSetElem,"VERSION",version);
149  createElement(doc,dataSetElem,"CREATION_TIMESTAMP",gmtime);
150  createElement(doc,dataSetElem,"CREATED_BY","wfisher");
151 
152  HcalDetId id(item.mId);
153  createChannel(doc, dataSetElem, id);
154  createData(doc, dataSetElem,item);
155 }
XERCES_CPP_NAMESPACE::DOMElement * createData(XERCES_CPP_NAMESPACE::DOMDocument *doc, XERCES_CPP_NAMESPACE::DOMElement *parent, const HcalDQMChannelQuality::Item &item)
parent
Definition: confdb.py:1052
XERCES_CPP_NAMESPACE::DOMElement * createElement(XERCES_CPP_NAMESPACE::DOMDocument *doc, XERCES_CPP_NAMESPACE::DOMElement *parent, const char *name)
XERCES_CPP_NAMESPACE::DOMElement * createChannel(XERCES_CPP_NAMESPACE::DOMDocument *doc, XERCES_CPP_NAMESPACE::DOMElement *parent, HcalDetId id)
void HcalHotCellDbInterface::createHeader ( XERCES_CPP_NAMESPACE::DOMDocument *  doc,
unsigned int  runno,
const char *  startTime 
)

Definition at line 106 of file HcalDQMDbInterface.cc.

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

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