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 26 of file HcalL1TriggerObjectsXml.h.

Constructor & Destructor Documentation

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

Definition at line 28 of file HcalL1TriggerObjectsXml.cc.

References comment.

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

Definition at line 51 of file HcalL1TriggerObjectsXml.cc.

52 {
53 }

Member Function Documentation

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

Definition at line 56 of file HcalL1TriggerObjectsXml.cc.

References XMLProcessor::_toXMLCh().

56  {
57  DOMElement * _data_elem = get_data_element(_dataset);
58  add_element(_data_elem, XMLProcessor::_toXMLCh("AVERAGE_PEDESTAL"), XMLProcessor::_toXMLCh(ped));
59  add_element(_data_elem, XMLProcessor::_toXMLCh("RESPONSE_CORRECTED_GAIN"), XMLProcessor::_toXMLCh(gain));
61  //
62  return _data_elem;
63 }
long int flag
Definition: mlp_lapack.h:47
MemBufInputSource * _dataset
DOMElement * get_data_element(DOMNode *_dataset)
static XMLCh * _toXMLCh(std::string temp)
Definition: XMLProcessor.h:185
DOMElement * add_element(DOMElement *parent, XMLCh *tagname, XMLCh *value)
Definition: XMLDOMBlock.cc:524
DOMNode * HcalL1TriggerObjectsXml::add_hcal_channel_dataset ( int  ieta,
int  iphi,
int  depth,
std::string  subdetector,
double  ped,
double  gain,
int  flag 
)

Definition at line 66 of file HcalL1TriggerObjectsXml.cc.

Referenced by WriteL1TriggerObjetsXml::analyze().

67  {
68  DOMNode * _dataset = add_dataset();
69  add_hcal_channel(_dataset, ieta, iphi, depth, subdetector);
70  add_data(_dataset, ped, gain, flag);
71  return _dataset;
72 }
long int flag
Definition: mlp_lapack.h:47
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)