CMS 3D CMS Logo

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

#include <CaloOnlineTools/HcalOnlineDb/interface/HcalChannelDataXml.h>

Inheritance diagram for HcalChannelDataXml:
XMLDOMBlock HcalChannelQualityXml HcalL1TriggerObjectsXml

Public Member Functions

XERCES_CPP_NAMESPACE::DOMNode * add_dataset (void)
 
XERCES_CPP_NAMESPACE::DOMNode * add_hcal_channel (XERCES_CPP_NAMESPACE::DOMNode *_dataset, int ieta, int iphi, int depth, std::string subdetector)
 
XERCES_CPP_NAMESPACE::DOMElement * get_channel_element (XERCES_CPP_NAMESPACE::DOMNode *_dataset)
 
XERCES_CPP_NAMESPACE::DOMElement * get_data_element (XERCES_CPP_NAMESPACE::DOMNode *_dataset)
 
 HcalChannelDataXml ()
 
int init_data (void)
 
XERCES_CPP_NAMESPACE::DOMNode * set_elements_comment (std::string value)
 
XERCES_CPP_NAMESPACE::DOMNode * set_elements_dataset_id (int id)
 
XERCES_CPP_NAMESPACE::DOMNode * set_elements_detector_name (std::string value)
 
XERCES_CPP_NAMESPACE::DOMNode * set_elements_iov_begin (int value)
 
XERCES_CPP_NAMESPACE::DOMNode * set_elements_iov_end (int value)
 
XERCES_CPP_NAMESPACE::DOMNode * set_elements_iov_id (int id)
 
XERCES_CPP_NAMESPACE::DOMNode * set_elements_tag_id (int value)
 
XERCES_CPP_NAMESPACE::DOMNode * set_elements_tag_mode (std::string value)
 
XERCES_CPP_NAMESPACE::DOMNode * set_elements_tag_name (std::string value)
 
XERCES_CPP_NAMESPACE::DOMNode * set_header_channel_map (std::string name)
 
XERCES_CPP_NAMESPACE::DOMNode * set_header_run_number (int run)
 
XERCES_CPP_NAMESPACE::DOMNode * set_header_table_name (std::string name)
 
XERCES_CPP_NAMESPACE::DOMNode * set_header_type (std::string type)
 
XERCES_CPP_NAMESPACE::DOMNode * set_maps_dataset_idref (int value)
 
XERCES_CPP_NAMESPACE::DOMNode * set_maps_iov_idref (int value)
 
XERCES_CPP_NAMESPACE::DOMNode * set_maps_tag_idref (int value)
 
virtual ~HcalChannelDataXml ()
 
- Public Member Functions inherited from XMLDOMBlock
XERCES_CPP_NAMESPACE::DOMElement * add_element (XERCES_CPP_NAMESPACE::DOMElement *parent, XMLCh *tagname, XMLCh *value)
 
XERCES_CPP_NAMESPACE::DOMDocument * getDocument (void)
 
XERCES_CPP_NAMESPACE::DOMDocument * getDocumentConst (void) const
 
XERCES_CPP_NAMESPACE::DOMDocument * getNewDocument (std::string xmlFileName)
 
std::string & getString (void)
 
std::string & getString (XERCES_CPP_NAMESPACE::DOMNode *_node)
 
const char * getTagAttribute (const std::string &tagName, const std::string &attrName, int _item=0)
 
const char * getTagValue (const std::string &tagName, int _item=0, XERCES_CPP_NAMESPACE::DOMDocument *_document=NULL)
 
const char * getTagValue (const std::string &tagName, int _item, XERCES_CPP_NAMESPACE::DOMElement *_document)
 
std::string getTimestamp (time_t _time)
 
XMLDOMBlockoperator+= (const XMLDOMBlock &other)
 
void parse (XERCES_CPP_NAMESPACE::InputSource &_source)
 
XERCES_CPP_NAMESPACE::DOMNode * setTagAttribute (const std::string &tagName, const std::string &attrName, const std::string &attrValue, int _item=0)
 
XERCES_CPP_NAMESPACE::DOMNode * setTagAttribute (XERCES_CPP_NAMESPACE::DOMElement *_elem, const std::string &tagName, const std::string &attrName, const std::string &attrValue, int _item=0)
 
XERCES_CPP_NAMESPACE::DOMNode * setTagAttribute (const std::string &tagName, const std::string &attrName, const int &attrValue, int _item=0)
 
XERCES_CPP_NAMESPACE::DOMNode * setTagAttribute (XERCES_CPP_NAMESPACE::DOMElement *_elem, const std::string &tagName, const std::string &attrName, const int &attrValue, int _item=0)
 
XERCES_CPP_NAMESPACE::DOMNode * setTagValue (const std::string &tagName, const std::string &tagValue, int _item=0, XERCES_CPP_NAMESPACE::DOMDocument *_document=NULL)
 
XERCES_CPP_NAMESPACE::DOMNode * setTagValue (XERCES_CPP_NAMESPACE::DOMElement *_elem, const std::string &tagName, const std::string &tagValue, int _item=0)
 
XERCES_CPP_NAMESPACE::DOMNode * setTagValue (const std::string &tagName, const int &tagValue, int _item=0, XERCES_CPP_NAMESPACE::DOMDocument *_document=NULL)
 
XERCES_CPP_NAMESPACE::DOMNode * setTagValue (XERCES_CPP_NAMESPACE::DOMElement *_elem, const std::string &tagName, const int &tagValue, int _item=0)
 
int write (std::string target="stdout")
 
 XMLDOMBlock ()
 
 XMLDOMBlock (std::string xmlFileName)
 
 XMLDOMBlock (XERCES_CPP_NAMESPACE::InputSource &_source)
 
 XMLDOMBlock (std::string _root, int rootElementName)
 
virtual ~XMLDOMBlock ()
 

Protected Attributes

XERCES_CPP_NAMESPACE::MemBufInputSource * _dataset
 
XERCES_CPP_NAMESPACE::MemBufInputSource * _root
 
std::string channel_map
 
std::string comment
 
int data_set_id
 
int data_set_idref
 
std::string dataset_comment
 
int dataset_count
 
std::string detector_name
 
std::string extension_table_name
 
time_t global_timestamp
 
HcalAssistant hcal_ass
 
int iov_begin
 
int iov_end
 
int iov_id
 
int iov_idref
 
int run_number
 
int tag_id
 
int tag_idref
 
std::string tag_mode
 
std::string tag_name
 
std::string type_name
 
std::string username
 
- Protected Attributes inherited from XMLDOMBlock
XERCES_CPP_NAMESPACE::DOMDocument * document
 
XERCES_CPP_NAMESPACE::ErrorHandler * errHandler
 
XERCES_CPP_NAMESPACE::XercesDOMParser * parser
 
std::string * the_string
 
std::string theFileName
 
XMLProcessortheProcessor
 

Additional Inherited Members

- Protected Member Functions inherited from XMLDOMBlock
int init (std::string _root)
 

Detailed Description

Description: <one line="" class="" summary>="">

Usage: <usage>

Definition at line 25 of file HcalChannelDataXml.h.

Constructor & Destructor Documentation

HcalChannelDataXml::HcalChannelDataXml ( )

Definition at line 26 of file HcalChannelDataXml.cc.

References comment, and NULL.

26  {
28  //init_data();
29  dataset_count = 0;
30  global_timestamp = time(NULL);
31 }
std::string getRandomQuote(void)
#define NULL
Definition: scimark2.h:8
HcalChannelDataXml::~HcalChannelDataXml ( )
virtual

Definition at line 34 of file HcalChannelDataXml.cc.

35 {
36  delete _root;
37  delete _dataset;
38 }
XERCES_CPP_NAMESPACE::MemBufInputSource * _dataset
XERCES_CPP_NAMESPACE::MemBufInputSource * _root

Member Function Documentation

DOMNode * HcalChannelDataXml::add_dataset ( void  )

Definition at line 138 of file HcalChannelDataXml.cc.

References XMLProcessor::_toXMLCh(), AlCaHLTBitMon_QueryRunRegistry::string, and personalPlayback::username.

138  {
139  XMLDOMBlock dataset_block( *_dataset );
140  DOMDocument * dataset_doc = dataset_block . getDocument();
141  DOMElement * root_elem = (DOMElement *)(document -> getElementsByTagName( XMLProcessor::_toXMLCh( "ROOT" ) ) -> item(0));
142  DOMNode * dataset_node = document -> importNode( dataset_doc -> getDocumentElement(), true );
143  root_elem -> appendChild( dataset_node );
144  //
145  //_____ set defaults
146  //
147  //
148  //_____ fix due to the new convention: version/subversion combo must be unique for every payload
149  //
150  char _buf[128];
151  //time_t _offset = time(NULL);
152  time_t _offset = global_timestamp;
153  sprintf( _buf, "%d", (uint32_t)_offset );
154  std::string _version;
155  _version.clear();
156  _version.append(tag_name);
157  _version.append(".");
158  _version.append(_buf);
159  //
160  DOMElement * dataset_elem = (DOMElement *)dataset_node;
161  setTagValue(dataset_elem, "COMMENT_DESCRIPTION", dataset_comment);
162  setTagValue(dataset_elem, "CREATE_TIMESTAMP", getTimestamp(time(0)));
163  setTagValue(dataset_elem, "CREATED_BY_USER", username);
164  setTagValue(dataset_elem, "VERSION", _version);
165  setTagValue(dataset_elem, "SUBVERSION", dataset_count);
166  //
167  //_____ set the chanel table name consistent with the header HINT
168  //
169  setTagValue(dataset_elem, "EXTENSION_TABLE_NAME", channel_map);
170  //
171  if (dataset_node) ++dataset_count;
172  return dataset_node;
173 }
XERCES_CPP_NAMESPACE::MemBufInputSource * _dataset
XERCES_CPP_NAMESPACE::DOMDocument * document
Definition: XMLDOMBlock.h:96
std::string getTimestamp(time_t _time)
Definition: XMLDOMBlock.cc:446
XERCES_CPP_NAMESPACE::DOMDocument * getDocument(void)
Definition: XMLDOMBlock.cc:312
XERCES_CPP_NAMESPACE::DOMNode * setTagValue(const std::string &tagName, const std::string &tagValue, int _item=0, XERCES_CPP_NAMESPACE::DOMDocument *_document=NULL)
static XMLCh * _toXMLCh(std::string temp)
Definition: XMLProcessor.h:183
DOMNode * HcalChannelDataXml::add_hcal_channel ( XERCES_CPP_NAMESPACE::DOMNode *  _dataset,
int  ieta,
int  iphi,
int  depth,
std::string  subdetector 
)

Definition at line 125 of file HcalChannelDataXml.cc.

References XMLProcessor::_toXMLCh().

125  {
126  DOMElement * _channel = get_channel_element(_dataset);
127  if (_channel){
132  }
133 
134  return (DOMNode *)_channel;
135 }
XERCES_CPP_NAMESPACE::MemBufInputSource * _dataset
TString subdetector
XERCES_CPP_NAMESPACE::DOMElement * get_channel_element(XERCES_CPP_NAMESPACE::DOMNode *_dataset)
XERCES_CPP_NAMESPACE::DOMElement * add_element(XERCES_CPP_NAMESPACE::DOMElement *parent, XMLCh *tagname, XMLCh *value)
Definition: XMLDOMBlock.cc:523
static XMLCh * _toXMLCh(std::string temp)
Definition: XMLProcessor.h:183
DOMElement * HcalChannelDataXml::get_channel_element ( XERCES_CPP_NAMESPACE::DOMNode *  _dataset)

Definition at line 185 of file HcalChannelDataXml.cc.

References XMLProcessor::_toXMLCh().

185  {
186  DOMElement * _element = 0;
187  if (_dataset){
188  _element = (DOMElement *)(((DOMElement *)_dataset) -> getElementsByTagName(XMLProcessor::_toXMLCh("CHANNEL"))->item( 0 ));
189  }
190  return _element;
191 }
XERCES_CPP_NAMESPACE::MemBufInputSource * _dataset
static XMLCh * _toXMLCh(std::string temp)
Definition: XMLProcessor.h:183
DOMElement * HcalChannelDataXml::get_data_element ( XERCES_CPP_NAMESPACE::DOMNode *  _dataset)

Definition at line 176 of file HcalChannelDataXml.cc.

References XMLProcessor::_toXMLCh().

176  {
177  DOMElement * _element = 0;
178  if (_dataset){
179  _element = (DOMElement *)(((DOMElement *)_dataset) -> getElementsByTagName(XMLProcessor::_toXMLCh("DATA"))->item( 0 ));
180  }
181  return _element;
182 }
XERCES_CPP_NAMESPACE::MemBufInputSource * _dataset
static XMLCh * _toXMLCh(std::string temp)
Definition: XMLProcessor.h:183
int HcalChannelDataXml::init_data ( void  )

Definition at line 41 of file HcalChannelDataXml.cc.

References comment, dumpparser::parse(), cmsHarvester::run_number, and personalPlayback::username.

42 {
43  static const char * _str = "\
44 <ROOT>\n\
45  <HEADER>\n\
46  <TYPE>\n\
47  <EXTENSION_TABLE_NAME>HCAL_CHANNEL_QUALITY_V1</EXTENSION_TABLE_NAME>\n\
48  <NAME>HCAL Channel Quality [V1]</NAME>\n\
49  </TYPE>\n\
50  <RUN>\n\
51  <RUN_NUMBER>1</RUN_NUMBER>\n\
52  </RUN>\n\
53  <HINTS channelmap='HCAL_CHANNELS'/>\n\
54  </HEADER>\n\
55  <ELEMENTS>\n\
56  <DATA_SET id='-1'/>\n\
57  <IOV id='1'>\n\
58  <INTERVAL_OF_VALIDITY_BEGIN>1</INTERVAL_OF_VALIDITY_BEGIN>\n\
59  <INTERVAL_OF_VALIDITY_END>-1</INTERVAL_OF_VALIDITY_END>\n\
60  </IOV>\n\
61  <TAG id='2' mode='auto'>\n\
62  <TAG_NAME>test-channel-status-01jul2009-v4</TAG_NAME>\n\
63  <DETECTOR_NAME>HCAL</DETECTOR_NAME>\n\
64  <COMMENT_DESCRIPTION>testing channel status recording</COMMENT_DESCRIPTION>\n\
65  </TAG>\n\
66  </ELEMENTS>\n\
67  <MAPS>\n\
68  <TAG idref='2'>\n\
69  <IOV idref='1'>\n\
70  <DATA_SET idref='-1'/>\n\
71  </IOV>\n\
72  </TAG>\n\
73  </MAPS>\n\
74  </ROOT>\n\
75  ";
76  const XMLByte * _template = (const XMLByte *)_str;
77  _root = new MemBufInputSource( _template, strlen( (const char *)_template ), "_root", false );
78  parse(*_root);
79  //
80  //_____ fill header tags that will be redefined in the derived classes
81  //
98  //
99  static const char * _str2 = "\
100  <DATA_SET>\n\
101  <COMMENT_DESCRIPTION>test-channel-status-26jun2009-v1</COMMENT_DESCRIPTION>\n\
102  <CREATE_TIMESTAMP>2009-04-06 17:36:40.0</CREATE_TIMESTAMP>\n\
103  <CREATED_BY_USER>user</CREATED_BY_USER>\n\
104  <VERSION>test-channel-status-26jun2009-v1</VERSION>\n\
105  <SUBVERSION>1</SUBVERSION>\n\
106  <CHANNEL>\n\
107  <EXTENSION_TABLE_NAME>HCAL_CHANNELS</EXTENSION_TABLE_NAME>\n\
108  </CHANNEL>\n\
109  <DATA>\n\
110  </DATA>\n\
111  </DATA_SET>\n\
112  ";
113  const XMLByte * _template2 = (const XMLByte *)_str2;
114  _dataset = new MemBufInputSource( _template2, strlen( (const char *)_template2 ), "_dataset", false );
115 
116  //
117  //_____ some more default initialization
120  //
121  return 0;
122 }
XERCES_CPP_NAMESPACE::DOMNode * set_header_channel_map(std::string name)
XERCES_CPP_NAMESPACE::MemBufInputSource * _dataset
XERCES_CPP_NAMESPACE::DOMNode * set_elements_detector_name(std::string value)
XERCES_CPP_NAMESPACE::DOMNode * set_header_run_number(int run)
std::string getRandomQuote(void)
XERCES_CPP_NAMESPACE::DOMNode * set_maps_iov_idref(int value)
XERCES_CPP_NAMESPACE::DOMNode * set_elements_iov_begin(int value)
XERCES_CPP_NAMESPACE::DOMNode * set_header_table_name(std::string name)
XERCES_CPP_NAMESPACE::DOMNode * set_maps_dataset_idref(int value)
XERCES_CPP_NAMESPACE::DOMNode * set_header_type(std::string type)
XERCES_CPP_NAMESPACE::MemBufInputSource * _root
std::string extension_table_name
XERCES_CPP_NAMESPACE::DOMNode * set_maps_tag_idref(int value)
XERCES_CPP_NAMESPACE::DOMNode * set_elements_comment(std::string value)
XERCES_CPP_NAMESPACE::DOMNode * set_elements_dataset_id(int id)
XERCES_CPP_NAMESPACE::DOMNode * set_elements_iov_id(int id)
XERCES_CPP_NAMESPACE::DOMNode * set_elements_tag_id(int value)
XERCES_CPP_NAMESPACE::DOMNode * set_elements_tag_mode(std::string value)
XERCES_CPP_NAMESPACE::DOMNode * set_elements_iov_end(int value)
void parse(XERCES_CPP_NAMESPACE::InputSource &_source)
Definition: XMLDOMBlock.cc:122
XERCES_CPP_NAMESPACE::DOMNode * set_elements_tag_name(std::string value)
std::string getUserName(void)
DOMNode * HcalChannelDataXml::set_elements_comment ( std::string  value)

Definition at line 278 of file HcalChannelDataXml.cc.

References comment, XERCES_CPP_NAMESPACE_USE::transcode(), and relativeConstraints::value.

278  {
279  comment = value;
280  DOMElement * _elements = (DOMElement *)(document -> getElementsByTagName( XMLString::transcode("ELEMENTS") ) -> item(0));
281  return setTagValue(_elements, "COMMENT_DESCRIPTION", comment);
282 }
XERCES_CPP_NAMESPACE::DOMDocument * document
Definition: XMLDOMBlock.h:96
XMLCh * transcode(const T &fInput)
XERCES_CPP_NAMESPACE::DOMNode * setTagValue(const std::string &tagName, const std::string &tagValue, int _item=0, XERCES_CPP_NAMESPACE::DOMDocument *_document=NULL)
DOMNode * HcalChannelDataXml::set_elements_dataset_id ( int  id)

Definition at line 222 of file HcalChannelDataXml.cc.

References XERCES_CPP_NAMESPACE_USE::transcode().

222  {
223  data_set_id = id;
224  DOMElement * _elements = (DOMElement *)(document -> getElementsByTagName( XMLString::transcode("ELEMENTS") ) -> item(0));
225  return setTagAttribute(_elements, "DATA_SET", "id", data_set_id);
226 }
XERCES_CPP_NAMESPACE::DOMDocument * document
Definition: XMLDOMBlock.h:96
XMLCh * transcode(const T &fInput)
XERCES_CPP_NAMESPACE::DOMNode * setTagAttribute(const std::string &tagName, const std::string &attrName, const std::string &attrValue, int _item=0)
Definition: XMLDOMBlock.cc:408
DOMNode * HcalChannelDataXml::set_elements_detector_name ( std::string  value)

Definition at line 271 of file HcalChannelDataXml.cc.

References XERCES_CPP_NAMESPACE_USE::transcode(), and relativeConstraints::value.

271  {
273  DOMElement * _elements = (DOMElement *)(document -> getElementsByTagName( XMLString::transcode("ELEMENTS") ) -> item(0));
274  return setTagValue(_elements, "DETECTOR_NAME", detector_name);
275 }
XERCES_CPP_NAMESPACE::DOMDocument * document
Definition: XMLDOMBlock.h:96
XMLCh * transcode(const T &fInput)
XERCES_CPP_NAMESPACE::DOMNode * setTagValue(const std::string &tagName, const std::string &tagValue, int _item=0, XERCES_CPP_NAMESPACE::DOMDocument *_document=NULL)
DOMNode * HcalChannelDataXml::set_elements_iov_begin ( int  value)

Definition at line 236 of file HcalChannelDataXml.cc.

References XERCES_CPP_NAMESPACE_USE::transcode(), and relativeConstraints::value.

236  {
237  iov_begin = value;
238  DOMElement * _elements = (DOMElement *)(document -> getElementsByTagName( XMLString::transcode("ELEMENTS") ) -> item(0));
239  return setTagValue(_elements, "INTERVAL_OF_VALIDITY_BEGIN", iov_begin);
240 }
XERCES_CPP_NAMESPACE::DOMDocument * document
Definition: XMLDOMBlock.h:96
XMLCh * transcode(const T &fInput)
XERCES_CPP_NAMESPACE::DOMNode * setTagValue(const std::string &tagName, const std::string &tagValue, int _item=0, XERCES_CPP_NAMESPACE::DOMDocument *_document=NULL)
DOMNode * HcalChannelDataXml::set_elements_iov_end ( int  value)

Definition at line 243 of file HcalChannelDataXml.cc.

References XERCES_CPP_NAMESPACE_USE::transcode(), and relativeConstraints::value.

243  {
244  iov_end = value;
245  DOMElement * _elements = (DOMElement *)(document -> getElementsByTagName( XMLString::transcode("ELEMENTS") ) -> item(0));
246  return setTagValue(_elements, "INTERVAL_OF_VALIDITY_END", iov_end);
247 }
XERCES_CPP_NAMESPACE::DOMDocument * document
Definition: XMLDOMBlock.h:96
XMLCh * transcode(const T &fInput)
XERCES_CPP_NAMESPACE::DOMNode * setTagValue(const std::string &tagName, const std::string &tagValue, int _item=0, XERCES_CPP_NAMESPACE::DOMDocument *_document=NULL)
DOMNode * HcalChannelDataXml::set_elements_iov_id ( int  id)

Definition at line 229 of file HcalChannelDataXml.cc.

References XERCES_CPP_NAMESPACE_USE::transcode().

229  {
230  iov_id = id;
231  DOMElement * _elements = (DOMElement *)(document -> getElementsByTagName( XMLString::transcode("ELEMENTS") ) -> item(0));
232  return setTagAttribute(_elements, "IOV", "id", iov_id);
233 }
XERCES_CPP_NAMESPACE::DOMDocument * document
Definition: XMLDOMBlock.h:96
XMLCh * transcode(const T &fInput)
XERCES_CPP_NAMESPACE::DOMNode * setTagAttribute(const std::string &tagName, const std::string &attrName, const std::string &attrValue, int _item=0)
Definition: XMLDOMBlock.cc:408
DOMNode * HcalChannelDataXml::set_elements_tag_id ( int  value)

Definition at line 250 of file HcalChannelDataXml.cc.

References XERCES_CPP_NAMESPACE_USE::transcode(), and relativeConstraints::value.

250  {
251  tag_id = value;
252  DOMElement * _elements = (DOMElement *)(document -> getElementsByTagName( XMLString::transcode("ELEMENTS") ) -> item(0));
253  return setTagAttribute(_elements, "TAG", "id", tag_id);
254 }
XERCES_CPP_NAMESPACE::DOMDocument * document
Definition: XMLDOMBlock.h:96
XMLCh * transcode(const T &fInput)
XERCES_CPP_NAMESPACE::DOMNode * setTagAttribute(const std::string &tagName, const std::string &attrName, const std::string &attrValue, int _item=0)
Definition: XMLDOMBlock.cc:408
DOMNode * HcalChannelDataXml::set_elements_tag_mode ( std::string  value)

Definition at line 257 of file HcalChannelDataXml.cc.

References XERCES_CPP_NAMESPACE_USE::transcode(), and relativeConstraints::value.

257  {
258  tag_mode = value;
259  DOMElement * _elements = (DOMElement *)(document -> getElementsByTagName( XMLString::transcode("ELEMENTS") ) -> item(0));
260  return setTagAttribute(_elements, "TAG", "mode", tag_mode);
261 }
XERCES_CPP_NAMESPACE::DOMDocument * document
Definition: XMLDOMBlock.h:96
XMLCh * transcode(const T &fInput)
XERCES_CPP_NAMESPACE::DOMNode * setTagAttribute(const std::string &tagName, const std::string &attrName, const std::string &attrValue, int _item=0)
Definition: XMLDOMBlock.cc:408
DOMNode * HcalChannelDataXml::set_elements_tag_name ( std::string  value)

Definition at line 264 of file HcalChannelDataXml.cc.

References XERCES_CPP_NAMESPACE_USE::transcode(), and relativeConstraints::value.

264  {
265  tag_name = value;
266  DOMElement * _elements = (DOMElement *)(document -> getElementsByTagName( XMLString::transcode("ELEMENTS") ) -> item(0));
267  return setTagValue(_elements, "TAG_NAME", tag_name);
268 }
XERCES_CPP_NAMESPACE::DOMDocument * document
Definition: XMLDOMBlock.h:96
XMLCh * transcode(const T &fInput)
XERCES_CPP_NAMESPACE::DOMNode * setTagValue(const std::string &tagName, const std::string &tagValue, int _item=0, XERCES_CPP_NAMESPACE::DOMDocument *_document=NULL)
DOMNode * HcalChannelDataXml::set_header_channel_map ( std::string  name)

Definition at line 215 of file HcalChannelDataXml.cc.

References mergeVDriftHistosByStation::name, and XERCES_CPP_NAMESPACE_USE::transcode().

215  {
216  channel_map = name;
217  DOMElement * _header = (DOMElement *)(document -> getElementsByTagName( XMLString::transcode("HEADER") ) -> item(0));
218  return setTagAttribute(_header, "HINTS", "channelmap", channel_map);
219 }
XERCES_CPP_NAMESPACE::DOMDocument * document
Definition: XMLDOMBlock.h:96
XMLCh * transcode(const T &fInput)
XERCES_CPP_NAMESPACE::DOMNode * setTagAttribute(const std::string &tagName, const std::string &attrName, const std::string &attrValue, int _item=0)
Definition: XMLDOMBlock.cc:408
DOMNode * HcalChannelDataXml::set_header_run_number ( int  run)

Definition at line 208 of file HcalChannelDataXml.cc.

References DTTTrigCorrFirst::run, cmsHarvester::run_number, and XERCES_CPP_NAMESPACE_USE::transcode().

208  {
209  run_number = run;
210  DOMElement * _header = (DOMElement *)(document -> getElementsByTagName( XMLString::transcode("HEADER") ) -> item(0));
211  return setTagValue(_header, "RUN_NUMBER", run_number);
212 }
XERCES_CPP_NAMESPACE::DOMDocument * document
Definition: XMLDOMBlock.h:96
XMLCh * transcode(const T &fInput)
XERCES_CPP_NAMESPACE::DOMNode * setTagValue(const std::string &tagName, const std::string &tagValue, int _item=0, XERCES_CPP_NAMESPACE::DOMDocument *_document=NULL)
DOMNode * HcalChannelDataXml::set_header_table_name ( std::string  name)

Definition at line 194 of file HcalChannelDataXml.cc.

References mergeVDriftHistosByStation::name, and XERCES_CPP_NAMESPACE_USE::transcode().

194  {
196  DOMElement * _header = (DOMElement *)(document -> getElementsByTagName( XMLString::transcode("HEADER") ) -> item(0));
197  return setTagValue(_header, "EXTENSION_TABLE_NAME", extension_table_name);
198 }
XERCES_CPP_NAMESPACE::DOMDocument * document
Definition: XMLDOMBlock.h:96
std::string extension_table_name
XMLCh * transcode(const T &fInput)
XERCES_CPP_NAMESPACE::DOMNode * setTagValue(const std::string &tagName, const std::string &tagValue, int _item=0, XERCES_CPP_NAMESPACE::DOMDocument *_document=NULL)
DOMNode * HcalChannelDataXml::set_header_type ( std::string  type)

Definition at line 201 of file HcalChannelDataXml.cc.

References XERCES_CPP_NAMESPACE_USE::transcode().

201  {
202  type_name = type;
203  DOMElement * _header = (DOMElement *)(document -> getElementsByTagName( XMLString::transcode("HEADER") ) -> item(0));
204  return setTagValue(_header, "NAME", type_name);
205 }
type
Definition: HCALResponse.h:21
XERCES_CPP_NAMESPACE::DOMDocument * document
Definition: XMLDOMBlock.h:96
XMLCh * transcode(const T &fInput)
XERCES_CPP_NAMESPACE::DOMNode * setTagValue(const std::string &tagName, const std::string &tagValue, int _item=0, XERCES_CPP_NAMESPACE::DOMDocument *_document=NULL)
DOMNode * HcalChannelDataXml::set_maps_dataset_idref ( int  value)

Definition at line 299 of file HcalChannelDataXml.cc.

References XERCES_CPP_NAMESPACE_USE::transcode(), and relativeConstraints::value.

299  {
301  DOMElement * _maps = (DOMElement *)(document -> getElementsByTagName( XMLString::transcode("MAPS") ) -> item(0));
302  return setTagAttribute(_maps, "DATA_SET", "idref", data_set_idref);
303 }
XERCES_CPP_NAMESPACE::DOMDocument * document
Definition: XMLDOMBlock.h:96
XMLCh * transcode(const T &fInput)
XERCES_CPP_NAMESPACE::DOMNode * setTagAttribute(const std::string &tagName, const std::string &attrName, const std::string &attrValue, int _item=0)
Definition: XMLDOMBlock.cc:408
DOMNode * HcalChannelDataXml::set_maps_iov_idref ( int  value)

Definition at line 292 of file HcalChannelDataXml.cc.

References XERCES_CPP_NAMESPACE_USE::transcode(), and relativeConstraints::value.

292  {
293  iov_idref = value;
294  DOMElement * _maps = (DOMElement *)(document -> getElementsByTagName( XMLString::transcode("MAPS") ) -> item(0));
295  return setTagAttribute(_maps, "IOV", "idref", iov_idref);
296 }
XERCES_CPP_NAMESPACE::DOMDocument * document
Definition: XMLDOMBlock.h:96
XMLCh * transcode(const T &fInput)
XERCES_CPP_NAMESPACE::DOMNode * setTagAttribute(const std::string &tagName, const std::string &attrName, const std::string &attrValue, int _item=0)
Definition: XMLDOMBlock.cc:408
DOMNode * HcalChannelDataXml::set_maps_tag_idref ( int  value)

Definition at line 285 of file HcalChannelDataXml.cc.

References XERCES_CPP_NAMESPACE_USE::transcode(), and relativeConstraints::value.

285  {
286  tag_idref = value;
287  DOMElement * _maps = (DOMElement *)(document -> getElementsByTagName( XMLString::transcode("MAPS") ) -> item(0));
288  return setTagAttribute(_maps, "TAG", "idref", tag_idref);
289 }
XERCES_CPP_NAMESPACE::DOMDocument * document
Definition: XMLDOMBlock.h:96
XMLCh * transcode(const T &fInput)
XERCES_CPP_NAMESPACE::DOMNode * setTagAttribute(const std::string &tagName, const std::string &attrName, const std::string &attrValue, int _item=0)
Definition: XMLDOMBlock.cc:408

Member Data Documentation

XERCES_CPP_NAMESPACE::MemBufInputSource* HcalChannelDataXml::_dataset
protected

Definition at line 74 of file HcalChannelDataXml.h.

XERCES_CPP_NAMESPACE::MemBufInputSource* HcalChannelDataXml::_root
protected
std::string HcalChannelDataXml::channel_map
protected

Definition at line 81 of file HcalChannelDataXml.h.

std::string HcalChannelDataXml::comment
protected

Definition at line 92 of file HcalChannelDataXml.h.

int HcalChannelDataXml::data_set_id
protected

Definition at line 84 of file HcalChannelDataXml.h.

int HcalChannelDataXml::data_set_idref
protected

Definition at line 97 of file HcalChannelDataXml.h.

std::string HcalChannelDataXml::dataset_comment
protected

Definition at line 101 of file HcalChannelDataXml.h.

int HcalChannelDataXml::dataset_count
protected

Definition at line 104 of file HcalChannelDataXml.h.

std::string HcalChannelDataXml::detector_name
protected

Definition at line 91 of file HcalChannelDataXml.h.

std::string HcalChannelDataXml::extension_table_name
protected

Definition at line 78 of file HcalChannelDataXml.h.

time_t HcalChannelDataXml::global_timestamp
protected

Definition at line 105 of file HcalChannelDataXml.h.

HcalAssistant HcalChannelDataXml::hcal_ass
protected

Definition at line 103 of file HcalChannelDataXml.h.

int HcalChannelDataXml::iov_begin
protected

Definition at line 86 of file HcalChannelDataXml.h.

int HcalChannelDataXml::iov_end
protected

Definition at line 87 of file HcalChannelDataXml.h.

int HcalChannelDataXml::iov_id
protected

Definition at line 85 of file HcalChannelDataXml.h.

int HcalChannelDataXml::iov_idref
protected

Definition at line 96 of file HcalChannelDataXml.h.

int HcalChannelDataXml::run_number
protected

Definition at line 80 of file HcalChannelDataXml.h.

int HcalChannelDataXml::tag_id
protected

Definition at line 88 of file HcalChannelDataXml.h.

int HcalChannelDataXml::tag_idref
protected

Definition at line 95 of file HcalChannelDataXml.h.

std::string HcalChannelDataXml::tag_mode
protected

Definition at line 89 of file HcalChannelDataXml.h.

std::string HcalChannelDataXml::tag_name
protected

Definition at line 90 of file HcalChannelDataXml.h.

Referenced by o2o.O2ORunMgr::executeJob(), and o2o.O2ORunMgr::startJob().

std::string HcalChannelDataXml::type_name
protected

Definition at line 79 of file HcalChannelDataXml.h.

std::string HcalChannelDataXml::username
protected

Definition at line 100 of file HcalChannelDataXml.h.