#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 (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 | |
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 () |
Static Public Member Functions | |
static std::string | get_checksum (std::vector< unsigned int > &lut) |
Protected Member Functions | |
DOMElement * | add_checksum (DOMDocument *parent, Config &config) |
DOMElement * | addData (std::string _elements, std::string _encoding, const std::vector< unsigned int > &_lut) |
DOMElement * | addParameter (std::string _name, std::string _type, std::string _value) |
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 |
DOMElement * | brickElem |
std::map< uint32_t, std::vector< unsigned int > > | lut_map |
XMLCh * | 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>
typedef struct LutXml::_Config LutXml::Config |
typedef std::map<uint32_t,std::vector<unsigned int> >::const_iterator LutXml::const_iterator |
LutXml::LutXml | ( | InputSource & | _source | ) |
|
virtual |
Definition at line 108 of file LutXml.cc.
References brick, fetchall_from_DQM_v2::release, and root.
int LutXml::a_to_i | ( | char * | inbuf | ) |
|
protected |
Definition at line 279 of file LutXml.cc.
References XMLProcessor::_toXMLCh(), 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 252 of file LutXml.cc.
References XMLProcessor::_toXMLCh(), brickElem, XMLDOMBlock::document, getDQMSummary::iter, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by addLut().
void LutXml::addLut | ( | LutXml::Config & | _config, |
XMLDOMBlock * | checksums_xml = 0 |
||
) |
Definition at line 209 of file LutXml.cc.
References XMLProcessor::_toXMLCh(), add_checksum(), addData(), addParameter(), brickElem, gather_cfg::cout, 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 303 of file LutXml.cc.
References XMLProcessor::_toXMLCh(), brickElem, and XMLDOMBlock::document.
Referenced by editorTools.UserCodeTool::__init__(), metTools.AddMETCollection::__init__(), trackTools.MakeAODTrackCandidates::__init__(), coreTools.RunOnData::__init__(), HiCoreTools.RestrictInputToAOD::__init__(), metUncertaintyTools.RunMEtUncertainties::__init__(), jetTools.AddJetCollection::__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.SwitchJetCollection::__init__(), trigTools.SwitchOnTriggerMatchEmbedding::__init__(), jetTools.AddJetID::__init__(), jetTools.SetTagInfos::__init__(), addLut(), and addParameter().
|
protected |
Definition at line 318 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__(), metUncertaintyTools.RunMEtUncertainties::__init__(), jetTools.AddJetCollection::__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.SwitchJetCollection::__init__(), trigTools.SwitchOnTriggerMatchEmbedding::__init__(), jetTools.AddJetID::__init__(), and jetTools.SetTagInfos::__init__().
LutXml::const_iterator LutXml::begin | ( | ) | const |
int LutXml::create_lut_map | ( | void | ) |
Definition at line 496 of file LutXml.cc.
References XMLProcessor::_toXMLCh(), a_to_i(), funct::abs(), brick, dtNoiseDBValidation_cfg::cerr, XMLDOMBlock::document, i, j, lut_map, DetId::rawId(), and subdet_from_crate().
Referenced by HcaluLUTTPGCoder::updateXML().
LutXml::const_iterator LutXml::end | ( | ) | const |
Definition at line 588 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 592 of file LutXml.cc.
References lut_map.
Referenced by BeautifulSoup.Tag::__getattr__(), and BeautifulSoup.Tag::firstText().
|
static |
Definition at line 337 of file LutXml.cc.
References gather_cfg::cout, cmsRelvalreport::exit, i, md5_append(), md5_finish(), md5_init(), query::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 126 of file LutXml.cc.
References dtNoiseDBValidation_cfg::cerr, and lut_map.
Referenced by test_access(), and HcaluLUTTPGCoder::updateXML().
void LutXml::init | ( | void | ) |
HcalSubdetector LutXml::subdet_from_crate | ( | int | crate, |
int | eta, | ||
int | depth | ||
) |
Definition at line 458 of file LutXml.cc.
References dtNoiseDBValidation_cfg::cerr, cmsRelvalreport::exit, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, and query::result.
Referenced by create_lut_map().
int LutXml::test_access | ( | std::string | filename | ) |
Definition at line 375 of file LutXml.cc.
References gather_cfg::cout, HcalEmap::get_map(), getLutFast(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, prof2calltree::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().