#include <CaloOnlineTools/HcalOnlineDb/interface/XMLHTRPatternLoader.h>
Classes | |
struct | _checksumsDBConfig |
struct | _datasetDBConfig |
struct | _loaderBaseConfig |
Public Types | |
typedef XMLHTRPatternLoader::_checksumsDBConfig | checksumsDBConfig |
typedef XMLHTRPatternLoader::_datasetDBConfig | datasetDBConfig |
typedef XMLHTRPatternLoader::_loaderBaseConfig | loaderBaseConfig |
Public Member Functions | |
int | addChecksums (checksumsDBConfig *config, std::string templateFileName="HCAL_HTR_DATA_PATTERNS.checksums.template") |
int | addPattern (datasetDBConfig *config, std::string templateFileName="HCAL_HTR_DATA_PATTERNS.dataset.template") |
int | createLoader (const std::vector< int > &crate_number, const std::vector< std::string > &file_name) |
XMLHTRPatternLoader () | |
XMLHTRPatternLoader (XMLProcessor::loaderBaseConfig *config, std::string templateBase="HCAL_HTR_DATA_PATTERNS.XMLloader.template") | |
virtual | ~XMLHTRPatternLoader () |
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 () |
Private Member Functions | |
const XMLHTRPatternLoader & | operator= (const XMLHTRPatternLoader &) |
XMLHTRPatternLoader (const XMLHTRPatternLoader &) | |
Additional Inherited Members | |
Protected Member Functions inherited from XMLDOMBlock | |
int | init (std::string _root) |
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 29 of file XMLHTRPatternLoader.h.
XMLHTRPatternLoader::XMLHTRPatternLoader | ( | ) |
Definition at line 63 of file XMLHTRPatternLoader.cc.
XMLHTRPatternLoader::XMLHTRPatternLoader | ( | XMLProcessor::loaderBaseConfig * | config, |
std::string | templateBase = "HCAL_HTR_DATA_PATTERNS.XMLloader.template" |
||
) |
Definition at line 67 of file XMLHTRPatternLoader.cc.
References mergeVDriftHistosByStation::name, XMLDOMBlock::setTagAttribute(), and XMLDOMBlock::setTagValue().
|
virtual |
Definition at line 92 of file XMLHTRPatternLoader.cc.
|
private |
int XMLHTRPatternLoader::addChecksums | ( | checksumsDBConfig * | config, |
std::string | templateFileName = "HCAL_HTR_DATA_PATTERNS.checksums.template" |
||
) |
Definition at line 138 of file XMLHTRPatternLoader.cc.
References XMLDOMBlock::document, XMLDOMBlock::getDocument(), dbtoconf::root, XMLDOMBlock::setTagValue(), and relval_steps::version.
int XMLHTRPatternLoader::addPattern | ( | datasetDBConfig * | config, |
std::string | templateFileName = "HCAL_HTR_DATA_PATTERNS.dataset.template" |
||
) |
Definition at line 111 of file XMLHTRPatternLoader.cc.
References XMLDOMBlock::document, XMLDOMBlock::getDocument(), dbtoconf::root, XMLDOMBlock::setTagValue(), and relval_steps::version.
Referenced by createLoader().
int XMLHTRPatternLoader::createLoader | ( | const std::vector< int > & | crate_number, |
const std::vector< std::string > & | file_name | ||
) |
Definition at line 165 of file XMLHTRPatternLoader.cc.
References addPattern(), python.multivaluedict::append(), begin, dbtoconf::conf, end, AlCaHLTBitMon_QueryRunRegistry::string, and XMLDOMBlock::write().
|
private |