#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) |
template<typename T > | |
DOMElement * | addData (std::string _elements, std::string _encoding, const T &_lut) |
void | addLut (Config &_config, XMLDOMBlock *checksums_xml=nullptr) |
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 slot, int fiber) |
int | test_access (std::string filename) |
~LutXml () 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 () |
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) |
template<typename T > | |
XERCES_CPP_NAMESPACE::DOMElement * | addData (std::string _elements, std::string _encoding, const T &_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 | ) |
|
override |
Definition at line 61 of file LutXml.cc.
References brick, and fetchall_from_DQM_v2::release.
int LutXml::a_to_i | ( | char * | inbuf | ) |
Definition at line 327 of file LutXml.cc.
References mps_fire::result.
Referenced by create_lut_map().
|
protected |
Definition at line 159 of file LutXml.cc.
References XMLProcessor::_toXMLCh(), submitPVValidationJobs::child, get_checksum(), and class-composition::parent.
Referenced by addLut().
|
protected |
Referenced by addLut().
DOMElement* LutXml::addData | ( | std::string | _elements, |
std::string | _encoding, | ||
const T & | _lut | ||
) |
Definition at line 136 of file LutXml.cc.
References XMLProcessor::_toXMLCh(), brickElem, visDQMUpload::buf, submitPVValidationJobs::child, XMLDOMBlock::document, and AlCaHLTBitMon_QueryRunRegistry::string.
void LutXml::addLut | ( | LutXml::Config & | _config, |
XMLDOMBlock * | checksums_xml = nullptr |
||
) |
Definition at line 80 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::infotype, LutXml::_Config::iphi, LutXml::_Config::lut, LutXml::_Config::lut_type, LutXml::_Config::mask, LutXml::_Config::slot, LutXml::_Config::targetfirmware, cond::impl::to_string(), LutXml::_Config::topbottom, and LutXml::_Config::weight.
|
protected |
Definition at line 177 of file LutXml.cc.
References XMLProcessor::_toXMLCh(), brickElem, submitPVValidationJobs::child, and XMLDOMBlock::document.
Referenced by metTools.AddMETCollection::__init__(), trackTools.MakeAODTrackCandidates::__init__(), coreTools.RunOnData::__init__(), runJetUncertainties.RunJetUncertainties::__init__(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties::__init__(), cmsswVersionTools.PickRelValInputFiles::__init__(), coreTools.RemoveMCMatching::__init__(), trackTools.MakePATTrackCandidates::__init__(), trigTools.SwitchOnTrigger::__init__(), trigTools.SwitchOnTriggerStandAlone::__init__(), tauTools.AddTauCollection::__init__(), trackTools.MakeTrackCandidates::__init__(), trigTools.SwitchOnTriggerMatching::__init__(), trigTools.SwitchOnTriggerMatchingStandAlone::__init__(), trigTools.SwitchOnTriggerMatchEmbedding::__init__(), jetTools.AddJetCollection::__init__(), jetTools.SwitchJetCollection::__init__(), jetTools.UpdateJetCollection::__init__(), jetTools.AddJetID::__init__(), jetTools.SetTagInfos::__init__(), addLut(), and addParameter().
|
protected |
Definition at line 189 of file LutXml.cc.
References addParameter(), visDQMUpload::buf, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by metTools.AddMETCollection::__init__(), trackTools.MakeAODTrackCandidates::__init__(), coreTools.RunOnData::__init__(), runJetUncertainties.RunJetUncertainties::__init__(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties::__init__(), cmsswVersionTools.PickRelValInputFiles::__init__(), coreTools.RemoveMCMatching::__init__(), trackTools.MakePATTrackCandidates::__init__(), trigTools.SwitchOnTrigger::__init__(), trigTools.SwitchOnTriggerStandAlone::__init__(), tauTools.AddTauCollection::__init__(), trackTools.MakeTrackCandidates::__init__(), trigTools.SwitchOnTriggerMatching::__init__(), trigTools.SwitchOnTriggerMatchingStandAlone::__init__(), trigTools.SwitchOnTriggerMatchEmbedding::__init__(), jetTools.AddJetCollection::__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 338 of file LutXml.cc.
References XMLProcessor::_toXMLCh(), a_to_i(), funct::abs(), brick, LEDCalibrationChannels::depth, XMLDOMBlock::document, mps_fire::i, LEDCalibrationChannels::ieta, LEDCalibrationChannels::iphi, dqmiolumiharvest::j, lut_map, DetId::rawId(), slb(), subdet_from_crate(), and BeamSplash_cfg::version.
Referenced by HcalLutAnalyzer::analyze(), main(), and HcaluLUTTPGCoder::updateXML().
LutXml::const_iterator LutXml::end | ( | ) | const |
Definition at line 448 of file LutXml.cc.
References lut_map.
Referenced by Types.LuminosityBlockRange::cppID(), Types.EventRange::cppID(), and dumpLutDiff().
LutXml::const_iterator LutXml::find | ( | uint32_t | id | ) | const |
Definition at line 450 of file LutXml.cc.
References lut_map.
Referenced by BeautifulSoup.Tag::__getattr__(), dumpLutDiff(), and BeautifulSoup.Tag::firstText().
|
static |
Definition at line 199 of file LutXml.cc.
References beamvalidation::exit(), mps_fire::i, and mps_fire::result.
Referenced by add_checksum(), and addLut().
std::string & LutXml::getCurrentBrick | ( | void | ) |
std::vector< unsigned int > * LutXml::getLutFast | ( | uint32_t | det_id | ) |
Definition at line 72 of file LutXml.cc.
References lut_map.
Referenced by test_access(), and HcaluLUTTPGCoder::updateXML().
void LutXml::init | ( | void | ) |
HcalSubdetector LutXml::subdet_from_crate | ( | int | crate, |
int | slot, | ||
int | fiber | ||
) |
Definition at line 303 of file LutXml.cc.
References HcalBarrel, HcalEmpty, HcalEndcap, HcalForward, and HcalOuter.
Referenced by create_lut_map().
int LutXml::test_access | ( | std::string | filename | ) |
Definition at line 253 of file LutXml.cc.
References HcalEmap::get_map(), getLutFast(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, cmsLHEtoEOSManager::l, lut_map, and DetId::rawId().
|
protected |
Definition at line 80 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().