CMS 3D CMS Logo

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

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

Inheritance diagram for HcalL1TriggerObjectsXml:
HcalChannelDataXml XMLDOMBlock

Public Member Functions

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

Additional Inherited Members

- Protected Member Functions inherited from XMLDOMBlock
int init (std::string _root)
 
- Protected Attributes inherited from HcalChannelDataXml
MemBufInputSource * _dataset
 
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
DOMDocument * document
 
ErrorHandler * errHandler
 
XercesDOMParser * parser
 
std::string * the_string
 
std::string theFileName
 
XMLProcessortheProcessor
 

Detailed Description

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

Usage: <usage>

Definition at line 25 of file HcalL1TriggerObjectsXml.h.

Constructor & Destructor Documentation

HcalL1TriggerObjectsXml::HcalL1TriggerObjectsXml ( const std::string &  input_tag_name)

Definition at line 26 of file HcalL1TriggerObjectsXml.cc.

References comment, and cmsHarvester::run_number.

27 {
28  extension_table_name="HCAL_L1_TRIGGER_OBJECTS_V1";
29  type_name="HCAL L1 Trigger Objects [V1]";
30  run_number = 1;
31  channel_map = "HCAL_CHANNELS";
32  data_set_id = -1;
33  iov_id = 1;
34  iov_begin = 1;
35  iov_end = -1;
36  tag_id = 2;
37  tag_mode = "auto";
38  //tag_name = "test_L1TriggerObjects";
39  tag_name = input_tag_name;
40  detector_name = "HCAL";
42  tag_idref = 2;
43  iov_idref = 1;
44  data_set_idref = -1;
45  init_data();
46 }
std::string getRandomQuote(void)
std::string extension_table_name
HcalL1TriggerObjectsXml::~HcalL1TriggerObjectsXml ( )
virtual

Definition at line 49 of file HcalL1TriggerObjectsXml.cc.

50 {
51 }

Member Function Documentation

DOMElement * HcalL1TriggerObjectsXml::add_data ( DOMNode *  _dataset,
double  ped,
double  gain,
int  flag 
)

Definition at line 54 of file HcalL1TriggerObjectsXml.cc.

References XMLProcessor::_toXMLCh().

54  {
55  DOMElement * _data_elem = get_data_element(_dataset);
56  add_element(_data_elem, XMLProcessor::_toXMLCh("AVERAGE_PEDESTAL"), XMLProcessor::_toXMLCh(ped));
57  add_element(_data_elem, XMLProcessor::_toXMLCh("RESPONSE_CORRECTED_GAIN"), XMLProcessor::_toXMLCh(gain));
59  //
60  return _data_elem;
61 }
MemBufInputSource * _dataset
DOMElement * get_data_element(DOMNode *_dataset)
static XMLCh * _toXMLCh(std::string temp)
Definition: XMLProcessor.h:184
DOMElement * add_element(DOMElement *parent, XMLCh *tagname, XMLCh *value)
Definition: XMLDOMBlock.cc:523
DOMNode * HcalL1TriggerObjectsXml::add_hcal_channel_dataset ( int  ieta,
int  iphi,
int  depth,
std::string  subdetector,
double  ped,
double  gain,
int  flag 
)

Definition at line 64 of file HcalL1TriggerObjectsXml.cc.

Referenced by WriteL1TriggerObjetsXml::analyze().

65  {
66  DOMNode * _dataset = add_dataset();
67  add_hcal_channel(_dataset, ieta, iphi, depth, subdetector);
68  add_data(_dataset, ped, gain, flag);
69  return _dataset;
70 }
MemBufInputSource * _dataset
DOMNode * add_dataset(void)
DOMElement * add_data(DOMNode *_dataset, double ped, double gain, int flag)
DOMNode * add_hcal_channel(DOMNode *_dataset, int ieta, int iphi, int depth, std::string subdetector)