#include <CaloOnlineTools/HcalOnlineDb/interface/XMLLUTLoader.h>
Classes | |
struct | _checksumsDBConfig |
struct | _loaderBaseConfig |
struct | _lutDBConfig |
Public Types | |
typedef XMLLUTLoader::_checksumsDBConfig | checksumsDBConfig |
typedef XMLLUTLoader::_loaderBaseConfig | loaderBaseConfig |
typedef XMLLUTLoader::_lutDBConfig | lutDBConfig |
Public Member Functions | |
int | addChecksums (checksumsDBConfig *config, std::string templateFileName="HCAL_TRIG_PRIM_LOOKUP_TABLE.checksums.template") |
int | addLUT (lutDBConfig *config, std::string templateFileName="HCAL_TRIG_PRIM_LOOKUP_TABLE.dataset.template") |
int | createLoader (const std::vector< int > &crate_number, const std::vector< std::string > &file_name) |
const XMLLUTLoader & | operator= (const XMLLUTLoader &)=delete |
XMLLUTLoader () | |
XMLLUTLoader (XMLProcessor::loaderBaseConfig *config, std::string templateBase="HCAL_TRIG_PRIM_LOOKUP_TABLE.XMLloader.template") | |
XMLLUTLoader (const XMLLUTLoader &)=delete | |
~XMLLUTLoader () override | |
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=nullptr) |
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=nullptr) |
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=nullptr) |
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 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 29 of file XMLLUTLoader.h.
XMLLUTLoader::XMLLUTLoader | ( | ) |
Definition at line 46 of file XMLLUTLoader.cc.
XMLLUTLoader::XMLLUTLoader | ( | XMLProcessor::loaderBaseConfig * | config, |
std::string | templateBase = "HCAL_TRIG_PRIM_LOOKUP_TABLE.XMLloader.template" |
||
) |
Definition at line 48 of file XMLLUTLoader.cc.
References XMLProcessor::_loaderBaseConfig::comment_description, XMLProcessor::_loaderBaseConfig::data_set_id, XMLProcessor::_loaderBaseConfig::detector_name, XMLProcessor::_loaderBaseConfig::extention_table_name, XMLProcessor::_loaderBaseConfig::iov_begin, XMLProcessor::_loaderBaseConfig::iov_end, XMLProcessor::_loaderBaseConfig::iov_id, XMLProcessor::_loaderBaseConfig::name, XMLProcessor::_loaderBaseConfig::run_mode, XMLDOMBlock::setTagAttribute(), XMLDOMBlock::setTagValue(), XMLProcessor::_loaderBaseConfig::tag_id, XMLProcessor::_loaderBaseConfig::tag_mode, and XMLProcessor::_loaderBaseConfig::tag_name.
|
delete |
|
override |
Definition at line 73 of file XMLLUTLoader.cc.
int XMLLUTLoader::addChecksums | ( | checksumsDBConfig * | config, |
std::string | templateFileName = "HCAL_TRIG_PRIM_LOOKUP_TABLE.checksums.template" |
||
) |
Definition at line 116 of file XMLLUTLoader.cc.
References XMLLUTLoader::_checksumsDBConfig::comment_description, XMLLUTLoader::_checksumsDBConfig::crate, XMLProcessor::_DBConfig::create_timestamp, XMLProcessor::_DBConfig::created_by_user, XMLDOMBlock::document, XMLDOMBlock::getDocument(), XMLLUTLoader::_checksumsDBConfig::name_label, XMLDOMBlock::setTagValue(), XMLProcessor::_DBConfig::subversion, XMLLUTLoader::_checksumsDBConfig::trig_prim_lookuptbl_data_file, and XMLProcessor::_DBConfig::version.
Referenced by HcalLutManager::create_lut_loader(), and createLoader().
int XMLLUTLoader::addLUT | ( | lutDBConfig * | config, |
std::string | templateFileName = "HCAL_TRIG_PRIM_LOOKUP_TABLE.dataset.template" |
||
) |
Definition at line 90 of file XMLLUTLoader.cc.
References XMLLUTLoader::_lutDBConfig::crate, XMLProcessor::_DBConfig::create_timestamp, XMLProcessor::_DBConfig::created_by_user, XMLDOMBlock::document, XMLDOMBlock::getDocument(), XMLLUTLoader::_lutDBConfig::kind_of_part, XMLLUTLoader::_lutDBConfig::name_label, XMLDOMBlock::setTagValue(), XMLProcessor::_DBConfig::subversion, XMLLUTLoader::_lutDBConfig::trig_prim_lookuptbl_data_file, and XMLProcessor::_DBConfig::version.
Referenced by HcalLutManager::create_lut_loader(), and createLoader().
int XMLLUTLoader::createLoader | ( | const std::vector< int > & | crate_number, |
const std::vector< std::string > & | file_name | ||
) |
Definition at line 142 of file XMLLUTLoader.cc.
References addChecksums(), addLUT(), XMLLUTLoader::_lutDBConfig::crate, XMLLUTLoader::_lutDBConfig::name_label, AlCaHLTBitMon_QueryRunRegistry::string, XMLLUTLoader::_lutDBConfig::trig_prim_lookuptbl_data_file, XMLLUTLoader::_checksumsDBConfig::trig_prim_lookuptbl_data_file, and XMLDOMBlock::write().
|
delete |