CMS 3D CMS Logo

Public Member Functions

HcalL1TriggerObjectsXml Class Reference

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

Inheritance diagram for HcalL1TriggerObjectsXml:
HcalChannelDataXml XMLDOMBlock

List of all members.

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 ()

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.

{
  extension_table_name="HCAL_L1_TRIGGER_OBJECTS_V1";
  type_name="HCAL L1 Trigger Objects [V1]";
  run_number = 1;
  channel_map = "HCAL_CHANNELS";
  data_set_id = -1;
  iov_id = 1;
  iov_begin = 1;
  iov_end = -1;
  tag_id = 2;
  tag_mode = "auto";
  //tag_name = "test_L1TriggerObjects";
  tag_name = input_tag_name;
  detector_name = "HCAL";
  comment = hcal_ass.getRandomQuote();
  tag_idref = 2;
  iov_idref = 1;
  data_set_idref = -1;
  init_data();
}
HcalL1TriggerObjectsXml::~HcalL1TriggerObjectsXml ( ) [virtual]

Definition at line 51 of file HcalL1TriggerObjectsXml.cc.

{
}

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().

                                                                                                    {
  DOMElement * _data_elem = get_data_element(_dataset);
  add_element(_data_elem, XMLProcessor::_toXMLCh("AVERAGE_PEDESTAL"), XMLProcessor::_toXMLCh(ped));
  add_element(_data_elem, XMLProcessor::_toXMLCh("RESPONSE_CORRECTED_GAIN"), XMLProcessor::_toXMLCh(gain));
  add_element(_data_elem, XMLProcessor::_toXMLCh("FLAG"), XMLProcessor::_toXMLCh(flag));
  //
  return _data_elem;
}
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().

                                                                                             {
  DOMNode * _dataset = add_dataset();
  add_hcal_channel(_dataset, ieta, iphi, depth, subdetector);
  add_data(_dataset, ped, gain, flag);
  return _dataset;
}