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

XERCES_CPP_NAMESPACE::DOMElement * add_data (XERCES_CPP_NAMESPACE::DOMNode *_dataset, double ped, double gain, int flag)
 
XERCES_CPP_NAMESPACE::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
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 ()
 

Additional Inherited Members

- Protected Member Functions inherited from XMLDOMBlock
int init (std::string _root)
 
- Protected Attributes inherited from HcalChannelDataXml
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
 

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 ( XERCES_CPP_NAMESPACE::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));
58  add_element(_data_elem, XMLProcessor::_toXMLCh("FLAG"), XMLProcessor::_toXMLCh(flag));
59  //
60  return _data_elem;
61 }
XERCES_CPP_NAMESPACE::MemBufInputSource * _dataset
XERCES_CPP_NAMESPACE::DOMElement * get_data_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
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 }
XERCES_CPP_NAMESPACE::MemBufInputSource * _dataset
XERCES_CPP_NAMESPACE::DOMNode * add_hcal_channel(XERCES_CPP_NAMESPACE::DOMNode *_dataset, int ieta, int iphi, int depth, std::string subdetector)
XERCES_CPP_NAMESPACE::DOMNode * add_dataset(void)
XERCES_CPP_NAMESPACE::DOMElement * add_data(XERCES_CPP_NAMESPACE::DOMNode *_dataset, double ped, double gain, int flag)