#include <CaloOnlineTools/HcalOnlineDb/interface/HcalChannelQualityXml.h>
Classes | |
struct | _ChannelQuality |
Public Types | |
typedef struct HcalChannelQualityXml::_ChannelQuality | ChannelQuality |
Public Member Functions | |
XERCES_CPP_NAMESPACE::DOMElement * | add_data (XERCES_CPP_NAMESPACE::DOMNode *_dataset, int _channel_status, int _on_off, std::string _comment) |
XERCES_CPP_NAMESPACE::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 | |
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) |
XMLDOMBlock & | operator+= (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 () |
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 | |
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 |
XMLProcessor * | theProcessor |
Description: <one line="" class="" summary>="">
Usage: <usage>
Definition at line 25 of file HcalChannelQualityXml.h.
HcalChannelQualityXml::HcalChannelQualityXml | ( | ) |
Definition at line 40 of file HcalChannelQualityXml.cc.
References comment.
|
virtual |
Definition at line 86 of file HcalChannelQualityXml.cc.
DOMElement * HcalChannelQualityXml::add_data | ( | XERCES_CPP_NAMESPACE::DOMNode * | _dataset, |
int | _channel_status, | ||
int | _on_off, | ||
std::string | _comment | ||
) |
Definition at line 91 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 101 of file HcalChannelQualityXml.cc.
int HcalChannelQualityXml::addChannelQualityGeom | ( | std::map< int, ChannelQuality > & | _cq | ) |
Definition at line 256 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 276 of file HcalChannelQualityXml.cc.
References HcalChannelQualityXml::_ChannelQuality::comment, particleFlowClusterECALTimeSelected_cfi::depth, HcalChannelQualityXml::_ChannelQuality::onoff, and HcalChannelQualityXml::_ChannelQuality::status.
int HcalChannelQualityXml::dumpIovsFromOmdsToStdout | ( | std::string | tag | ) |
Definition at line 454 of file HcalChannelQualityXml.cc.
References gather_cfg::cout.
int HcalChannelQualityXml::dumpTagsFromOmdsToStdout | ( | void | ) |
Definition at line 412 of file HcalChannelQualityXml.cc.
References gather_cfg::cout, and GlobalPosition_Frontier_DevDB_cff::tag.
|
private |
Definition at line 180 of file HcalChannelQualityXml.cc.
int HcalChannelQualityXml::getBaseLineFromOmds | ( | std::string | _tag, |
int | _iov_begin | ||
) |
Definition at line 189 of file HcalChannelQualityXml.cc.
References MessageLogger_cfi::cerr, HcalChannelQualityXml::_ChannelQuality::comment, ConnectionManager::connect(), ConnectionManager::disconnect(), MillePedeFileConverter_cfg::e, ConnectionManager::getStatement(), HcalChannelQualityXml::_ChannelQuality::onoff, HcalChannelQualityXml::_ChannelQuality::status, AlCaHLTBitMon_QueryRunRegistry::string, and toolbox::toString().
std::vector< int > HcalChannelQualityXml::getIovsFromOmds | ( | std::string | tag | ) |
Definition at line 465 of file HcalChannelQualityXml.cc.
References MessageLogger_cfi::cerr, ConnectionManager::connect(), ConnectionManager::disconnect(), MillePedeFileConverter_cfg::e, ConnectionManager::getStatement(), AlCaHLTBitMon_QueryRunRegistry::string, and toolbox::toString().
std::vector< std::string > HcalChannelQualityXml::getTagsFromOmds | ( | void | ) |
Definition at line 423 of file HcalChannelQualityXml.cc.
References MessageLogger_cfi::cerr, ConnectionManager::connect(), ConnectionManager::disconnect(), MillePedeFileConverter_cfg::e, ConnectionManager::getStatement(), AlCaHLTBitMon_QueryRunRegistry::string, and toolbox::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 381 of file HcalChannelQualityXml.cc.
References TriggerAnalyzer::write().
int HcalChannelQualityXml::readStatusWordFromStdin | ( | std::string | base = "hex" | ) |
Definition at line 296 of file HcalChannelQualityXml.cc.
References MessageLogger_cfi::cerr, HcalChannelQualityXml::_ChannelQuality::comment, cmsRelvalreport::exit, HcalChannelQualityXml::_ChannelQuality::onoff, HcalChannelQualityXml::_ChannelQuality::status, and AlCaHLTBitMon_QueryRunRegistry::string.
int HcalChannelQualityXml::set_all_channels_on_off | ( | int | _hb, |
int | _he, | ||
int | _hf, | ||
int | _ho | ||
) |
Definition at line 110 of file HcalChannelQualityXml.cc.
References HcalChannelIterator::begin(), HcalChannelIterator::end(), HcalChannelIterator::getDepth(), HcalChannelIterator::getHcalSubdetector(), HcalChannelIterator::getIeta(), HcalChannelIterator::getIphi(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, HcalChannelIterator::initHBEFListFromLmapAscii(), HcalChannelIterator::next(), and AlCaHLTBitMon_QueryRunRegistry::string.
int HcalChannelQualityXml::set_all_channels_status | ( | uint32_t | _hb, |
uint32_t | _he, | ||
uint32_t | _hf, | ||
uint32_t | _ho | ||
) |
Definition at line 143 of file HcalChannelQualityXml.cc.
References HcalChannelIterator::begin(), HcalChannelIterator::end(), HcalChannelIterator::getDepth(), HcalChannelIterator::getHcalSubdetector(), HcalChannelIterator::getIeta(), HcalChannelIterator::getIphi(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, HcalChannelIterator::initHBEFListFromLmapAscii(), HcalChannelIterator::next(), and AlCaHLTBitMon_QueryRunRegistry::string.
int HcalChannelQualityXml::writeBaseLineFromOmdsToStdout | ( | std::string | _tag, |
int | _iov_begin, | ||
std::string | base = "hex" |
||
) |
Definition at line 401 of file HcalChannelQualityXml.cc.
int HcalChannelQualityXml::writeStatusWordToStdout | ( | std::string | base = "hex" | ) |
Definition at line 340 of file HcalChannelQualityXml.cc.
References MessageLogger_cfi::cerr, gather_cfg::cout, and cmsRelvalreport::exit.
std::map<int,ChannelQuality> HcalChannelQualityXml::detid_cq |
Definition at line 99 of file HcalChannelQualityXml.h.
std::map<int,ChannelQuality> HcalChannelQualityXml::geomid_cq |
Definition at line 100 of file HcalChannelQualityXml.h.
|
private |
Definition at line 104 of file HcalChannelQualityXml.h.