#include <CalibCalorimetry/HcalTPGAlgos/interface/LutXml.h>
Classes | |
struct | _Config |
Public Types | |
typedef struct LutXml::_Config | Config |
typedef std::map< uint32_t, std::vector< unsigned int > >::const_iterator | const_iterator |
Public Member Functions | |
int | a_to_i (char *inbuf) |
void | addLut (Config &_config, XMLDOMBlock *checksums_xml=0) |
const_iterator | begin () const |
int | create_lut_map (void) |
const_iterator | end () const |
const_iterator | find (uint32_t) const |
std::string & | getCurrentBrick (void) |
std::vector< unsigned int > * | getLutFast (uint32_t det_id) |
void | init (void) |
LutXml () | |
LutXml (XERCES_CPP_NAMESPACE::InputSource &_source) | |
LutXml (std::string filename) | |
HcalSubdetector | subdet_from_crate (int crate, int eta, int depth) |
int | test_access (std::string filename) |
virtual | ~LutXml () |
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 () |
Static Public Member Functions | |
static std::string | get_checksum (std::vector< unsigned int > &lut) |
Protected Member Functions | |
XERCES_CPP_NAMESPACE::DOMElement * | add_checksum (XERCES_CPP_NAMESPACE::DOMDocument *parent, Config &config) |
XERCES_CPP_NAMESPACE::DOMElement * | addData (std::string _elements, std::string _encoding, const std::vector< unsigned int > &_lut) |
XERCES_CPP_NAMESPACE::DOMElement * | addParameter (std::string _name, std::string _type, std::string _value) |
XERCES_CPP_NAMESPACE::DOMElement * | addParameter (std::string _name, std::string _type, int _value) |
Protected Member Functions inherited from XMLDOMBlock | |
int | init (std::string _root) |
Protected Attributes | |
XMLCh * | brick |
XERCES_CPP_NAMESPACE::DOMElement * | brickElem |
std::map< uint32_t, std::vector< unsigned int > > | lut_map |
XMLCh * | 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>
typedef struct LutXml::_Config LutXml::Config |
typedef std::map<uint32_t,std::vector<unsigned int> >::const_iterator LutXml::const_iterator |
LutXml::LutXml | ( | XERCES_CPP_NAMESPACE::InputSource & | _source | ) |
|
virtual |
Definition at line 109 of file LutXml.cc.
References brick, fetchall_from_DQM_v2::release, and root.
int LutXml::a_to_i | ( | char * | inbuf | ) |
Definition at line 486 of file LutXml.cc.
References mps_fire::result.
Referenced by create_lut_map().
|
protected |
Definition at line 280 of file LutXml.cc.
References XMLProcessor::_toXMLCh(), class-composition::child, LutXml::_Config::crate, LutXml::_Config::fiber, LutXml::_Config::fiberchan, get_checksum(), LutXml::_Config::lut, LutXml::_Config::lut_type, LutXml::_Config::slot, and LutXml::_Config::topbottom.
Referenced by addLut().
|
protected |
Definition at line 253 of file LutXml.cc.
References XMLProcessor::_toXMLCh(), brickElem, class-composition::child, XMLDOMBlock::document, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by addLut().
void LutXml::addLut | ( | LutXml::Config & | _config, |
XMLDOMBlock * | checksums_xml = 0 |
||
) |
Definition at line 210 of file LutXml.cc.
References XMLProcessor::_toXMLCh(), add_checksum(), addData(), addParameter(), brickElem, LutXml::_Config::crate, LutXml::_Config::creationstamp, LutXml::_Config::creationtag, LutXml::_Config::depth, XMLDOMBlock::document, LutXml::_Config::fiber, LutXml::_Config::fiberchan, LutXml::_Config::formatrevision, LutXml::_Config::generalizedindex, get_checksum(), XMLDOMBlock::getDocument(), LutXml::_Config::ieta, LutXml::_Config::iphi, LutXml::_Config::lut, LutXml::_Config::lut_type, LutXml::_Config::slot, LutXml::_Config::targetfirmware, and LutXml::_Config::topbottom.
|
protected |
Definition at line 304 of file LutXml.cc.
References XMLProcessor::_toXMLCh(), brickElem, class-composition::child, and XMLDOMBlock::document.
Referenced by editorTools.UserCodeTool::__init__(), metTools.AddMETCollection::__init__(), trackTools.MakeAODTrackCandidates::__init__(), HiCoreTools.RestrictInputToAOD::__init__(), coreTools.RunOnData::__init__(), runJetUncertainties.RunJetUncertainties::__init__(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties::__init__(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ImportTool::__init__(), editorTools.ChangeSource::__init__(), cmsswVersionTools.PickRelValInputFiles::__init__(), HiCoreTools.RemoveMCMatching::__init__(), coreTools.RemoveMCMatching::__init__(), trackTools.MakePATTrackCandidates::__init__(), trigTools.SwitchOnTrigger::__init__(), HiCoreTools.RemoveAllPATObjectsBut::__init__(), HiCoreTools.RemoveSpecificPATObjects::__init__(), trigTools.SwitchOnTriggerStandAlone::__init__(), trackTools.MakeTrackCandidates::__init__(), tauTools.AddTauCollection::__init__(), trigTools.SwitchOnTriggerMatching::__init__(), HiCoreTools.RemoveCleaning::__init__(), HiCoreTools.AddCleaning::__init__(), trigTools.SwitchOnTriggerMatchingStandAlone::__init__(), jetTools.AddJetCollection::__init__(), trigTools.SwitchOnTriggerMatchEmbedding::__init__(), jetTools.SwitchJetCollection::__init__(), jetTools.UpdateJetCollection::__init__(), jetTools.AddJetID::__init__(), jetTools.SetTagInfos::__init__(), addLut(), and addParameter().
|
protected |
Definition at line 319 of file LutXml.cc.
References addParameter(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by editorTools.UserCodeTool::__init__(), metTools.AddMETCollection::__init__(), trackTools.MakeAODTrackCandidates::__init__(), coreTools.RunOnData::__init__(), HiCoreTools.RestrictInputToAOD::__init__(), runJetUncertainties.RunJetUncertainties::__init__(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties::__init__(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ImportTool::__init__(), editorTools.ChangeSource::__init__(), cmsswVersionTools.PickRelValInputFiles::__init__(), HiCoreTools.RemoveMCMatching::__init__(), coreTools.RemoveMCMatching::__init__(), trackTools.MakePATTrackCandidates::__init__(), trigTools.SwitchOnTrigger::__init__(), HiCoreTools.RemoveAllPATObjectsBut::__init__(), HiCoreTools.RemoveSpecificPATObjects::__init__(), trigTools.SwitchOnTriggerStandAlone::__init__(), trackTools.MakeTrackCandidates::__init__(), tauTools.AddTauCollection::__init__(), trigTools.SwitchOnTriggerMatching::__init__(), HiCoreTools.RemoveCleaning::__init__(), HiCoreTools.AddCleaning::__init__(), trigTools.SwitchOnTriggerMatchingStandAlone::__init__(), jetTools.AddJetCollection::__init__(), trigTools.SwitchOnTriggerMatchEmbedding::__init__(), jetTools.SwitchJetCollection::__init__(), jetTools.UpdateJetCollection::__init__(), jetTools.AddJetID::__init__(), and jetTools.SetTagInfos::__init__().
LutXml::const_iterator LutXml::begin | ( | ) | const |
int LutXml::create_lut_map | ( | void | ) |
Definition at line 497 of file LutXml.cc.
References XMLProcessor::_toXMLCh(), a_to_i(), funct::abs(), brick, HLT_25ns10e33_v2_cff::depth, XMLDOMBlock::document, i, j, lut_map, DetId::rawId(), subdet_from_crate(), and XERCES_CPP_NAMESPACE_USE::transcode().
Referenced by HcaluLUTTPGCoder::updateXML().
LutXml::const_iterator LutXml::end | ( | ) | const |
Definition at line 589 of file LutXml.cc.
References lut_map.
Referenced by Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().
LutXml::const_iterator LutXml::find | ( | uint32_t | id | ) | const |
Definition at line 593 of file LutXml.cc.
References lut_map.
Referenced by BeautifulSoup.Tag::__getattr__(), and BeautifulSoup.Tag::firstText().
|
static |
Definition at line 338 of file LutXml.cc.
References cmsRelvalreport::exit, i, md5_append(), md5_finish(), md5_init(), mps_fire::result, and findQualityFiles::size.
Referenced by add_checksum(), and addLut().
std::string & LutXml::getCurrentBrick | ( | void | ) |
std::vector< unsigned int > * LutXml::getLutFast | ( | uint32_t | det_id | ) |
Definition at line 127 of file LutXml.cc.
References lut_map.
Referenced by test_access(), and HcaluLUTTPGCoder::updateXML().
void LutXml::init | ( | void | ) |
Definition at line 118 of file LutXml.cc.
References brick, brickElem, root, and XERCES_CPP_NAMESPACE_USE::transcode().
Referenced by LutXml().
HcalSubdetector LutXml::subdet_from_crate | ( | int | crate, |
int | eta, | ||
int | depth | ||
) |
Definition at line 458 of file LutXml.cc.
References cmsRelvalreport::exit, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, and mps_fire::result.
Referenced by create_lut_map().
int LutXml::test_access | ( | std::string | filename | ) |
Definition at line 376 of file LutXml.cc.
References HcalEmap::get_map(), getLutFast(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, cmsLHEtoEOSManager::l, lut_map, NULL, DetId::rawId(), and findQualityFiles::size.
|
protected |
Definition at line 82 of file LutXml.h.
Referenced by create_lut_map(), init(), and ~LutXml().
|
protected |
Definition at line 89 of file LutXml.h.
Referenced by addData(), addLut(), addParameter(), getCurrentBrick(), and init().
|
protected |
Definition at line 92 of file LutXml.h.
Referenced by begin(), create_lut_map(), end(), find(), getLutFast(), and test_access().
|
protected |
Definition at line 81 of file LutXml.h.
Referenced by init(), data_sources.formula_tree::to_sql(), and ~LutXml().