#include <CaloOnlineTools/HcalOnlineDb/interface/HcalChannelQualityXml.h>
Classes | |
struct | _ChannelQuality |
Public Types | |
typedef struct HcalChannelQualityXml::_ChannelQuality | ChannelQuality |
Public Member Functions | |
DOMElement * | add_data (DOMNode *_dataset, int _channel_status, int _on_off, std::string _comment) |
DOMNode * | add_hcal_channel_dataset (int ieta, int iphi, int depth, std::string subdetector, int _channel_status, int _on_off, std::string _comment) |
int | addChannelQualityGeom (std::map< int, ChannelQuality > &_cq) |
int | addChannelToGeomIdMap (int ieta, int iphi, int depth, std::string subdetector, int _channel_status, int _on_off, std::string _comment) |
int | dumpIovsFromOmdsToStdout (std::string tag) |
int | dumpTagsFromOmdsToStdout (void) |
int | getBaseLineFromOmds (std::string _tag, int _iov_begin) |
std::vector< int > | getIovsFromOmds (std::string tag) |
std::vector< std::string > | getTagsFromOmds (void) |
HcalChannelQualityXml () | |
int | makeXmlFromAsciiStream (int _runnumber, int _iov_begin, int _iov_end, std::string _tag, std::string _elements_comment, std::string _base="hex") |
int | readStatusWordFromStdin (std::string base="hex") |
int | set_all_channels_on_off (int _hb, int _he, int _hf, int _ho) |
int | set_all_channels_status (uint32_t _hb, uint32_t _he, uint32_t _hf, uint32_t _ho) |
int | writeBaseLineFromOmdsToStdout (std::string _tag, int _iov_begin, std::string base="hex") |
int | writeStatusWordToStdout (std::string base="hex") |
virtual | ~HcalChannelQualityXml () |
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) |
XMLDOMBlock & | operator+= (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 () |
Public Attributes | |
std::map< int, ChannelQuality > | detid_cq |
std::map< int, ChannelQuality > | geomid_cq |
Private Member Functions | |
std::string | get_random_comment (void) |
Private Attributes | |
HcalAssistant | hAss |
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 |
XMLProcessor * | theProcessor |
Description: <one line="" class="" summary>="">
Usage: <usage>
Definition at line 26 of file HcalChannelQualityXml.h.
HcalChannelQualityXml::HcalChannelQualityXml | ( | ) |
Definition at line 37 of file HcalChannelQualityXml.cc.
References comment.
|
virtual |
Definition at line 83 of file HcalChannelQualityXml.cc.
DOMElement * HcalChannelQualityXml::add_data | ( | DOMNode * | _dataset, |
int | _channel_status, | ||
int | _on_off, | ||
std::string | _comment | ||
) |
Definition at line 88 of file HcalChannelQualityXml.cc.
References XMLProcessor::_toXMLCh().
DOMNode * HcalChannelQualityXml::add_hcal_channel_dataset | ( | int | ieta, |
int | iphi, | ||
int | depth, | ||
std::string | subdetector, | ||
int | _channel_status, | ||
int | _on_off, | ||
std::string | _comment | ||
) |
Definition at line 98 of file HcalChannelQualityXml.cc.
int HcalChannelQualityXml::addChannelQualityGeom | ( | std::map< int, ChannelQuality > & | _cq | ) |
Definition at line 253 of file HcalChannelQualityXml.cc.
int HcalChannelQualityXml::addChannelToGeomIdMap | ( | int | ieta, |
int | iphi, | ||
int | depth, | ||
std::string | subdetector, | ||
int | _channel_status, | ||
int | _on_off, | ||
std::string | _comment | ||
) |
Definition at line 273 of file HcalChannelQualityXml.cc.
References HcalChannelQualityXml::_ChannelQuality::comment, HcalChannelQualityXml::_ChannelQuality::onoff, and HcalChannelQualityXml::_ChannelQuality::status.
int HcalChannelQualityXml::dumpIovsFromOmdsToStdout | ( | std::string | tag | ) |
Definition at line 451 of file HcalChannelQualityXml.cc.
References gather_cfg::cout.
int HcalChannelQualityXml::dumpTagsFromOmdsToStdout | ( | void | ) |
Definition at line 409 of file HcalChannelQualityXml.cc.
References gather_cfg::cout, and GlobalPosition_Frontier_DevDB_cff::tag.
|
private |
Definition at line 177 of file HcalChannelQualityXml.cc.
int HcalChannelQualityXml::getBaseLineFromOmds | ( | std::string | _tag, |
int | _iov_begin | ||
) |
Definition at line 186 of file HcalChannelQualityXml.cc.
References dtNoiseDBValidation_cfg::cerr, HcalChannelQualityXml::_ChannelQuality::comment, results_mgr::conn, ConnectionManager::connect(), ConnectionManager::disconnect(), alignCSCRings::e, ConnectionManager::getStatement(), HcalChannelQualityXml::_ChannelQuality::onoff, o2o::query, HcalChannelQualityXml::_ChannelQuality::status, and toString().
std::vector< int > HcalChannelQualityXml::getIovsFromOmds | ( | std::string | tag | ) |
Definition at line 462 of file HcalChannelQualityXml.cc.
References dtNoiseDBValidation_cfg::cerr, results_mgr::conn, ConnectionManager::connect(), ConnectionManager::disconnect(), alignCSCRings::e, ConnectionManager::getStatement(), o2o::query, and toString().
std::vector< std::string > HcalChannelQualityXml::getTagsFromOmds | ( | void | ) |
Definition at line 420 of file HcalChannelQualityXml.cc.
References dtNoiseDBValidation_cfg::cerr, results_mgr::conn, ConnectionManager::connect(), ConnectionManager::disconnect(), alignCSCRings::e, ConnectionManager::getStatement(), o2o::query, and toString().
int HcalChannelQualityXml::makeXmlFromAsciiStream | ( | int | _runnumber, |
int | _iov_begin, | ||
int | _iov_end, | ||
std::string | _tag, | ||
std::string | _elements_comment, | ||
std::string | _base = "hex" |
||
) |
Definition at line 378 of file HcalChannelQualityXml.cc.
References TablePrint::write.
int HcalChannelQualityXml::readStatusWordFromStdin | ( | std::string | base = "hex" | ) |
Definition at line 293 of file HcalChannelQualityXml.cc.
References dtNoiseDBValidation_cfg::cerr, HcalChannelQualityXml::_ChannelQuality::comment, cmsRelvalreport::exit, HcalChannelQualityXml::_ChannelQuality::onoff, and HcalChannelQualityXml::_ChannelQuality::status.
int HcalChannelQualityXml::set_all_channels_on_off | ( | int | _hb, |
int | _he, | ||
int | _hf, | ||
int | _ho | ||
) |
Definition at line 107 of file HcalChannelQualityXml.cc.
References HcalChannelIterator::begin(), HcalChannelIterator::end(), HcalChannelIterator::getDepth(), HcalChannelIterator::getHcalSubdetector(), HcalChannelIterator::getIeta(), HcalChannelIterator::getIphi(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, HcalChannelIterator::initHBEFListFromLmapAscii(), and HcalChannelIterator::next().
int HcalChannelQualityXml::set_all_channels_status | ( | uint32_t | _hb, |
uint32_t | _he, | ||
uint32_t | _hf, | ||
uint32_t | _ho | ||
) |
Definition at line 140 of file HcalChannelQualityXml.cc.
References HcalChannelIterator::begin(), HcalChannelIterator::end(), HcalChannelIterator::getDepth(), HcalChannelIterator::getHcalSubdetector(), HcalChannelIterator::getIeta(), HcalChannelIterator::getIphi(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, HcalChannelIterator::initHBEFListFromLmapAscii(), and HcalChannelIterator::next().
int HcalChannelQualityXml::writeBaseLineFromOmdsToStdout | ( | std::string | _tag, |
int | _iov_begin, | ||
std::string | base = "hex" |
||
) |
Definition at line 398 of file HcalChannelQualityXml.cc.
int HcalChannelQualityXml::writeStatusWordToStdout | ( | std::string | base = "hex" | ) |
Definition at line 337 of file HcalChannelQualityXml.cc.
References dtNoiseDBValidation_cfg::cerr, gather_cfg::cout, and cmsRelvalreport::exit.
std::map<int,ChannelQuality> HcalChannelQualityXml::detid_cq |
Definition at line 100 of file HcalChannelQualityXml.h.
std::map<int,ChannelQuality> HcalChannelQualityXml::geomid_cq |
Definition at line 101 of file HcalChannelQualityXml.h.
|
private |
Definition at line 105 of file HcalChannelQualityXml.h.