CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
LutXml Class Reference

#include <CalibCalorimetry/HcalTPGAlgos/interface/LutXml.h>

Inheritance diagram for LutXml:
XMLDOMBlock

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)
 
XMLDOMBlockoperator+= (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
 
XMLProcessortheProcessor
 

Detailed Description

Description: <one line="" class="" summary>="">

Usage: <usage>

Definition at line 27 of file LutXml.h.

Member Typedef Documentation

typedef std::map<uint32_t,std::vector<unsigned int> >::const_iterator LutXml::const_iterator

Definition at line 74 of file LutXml.h.

Constructor & Destructor Documentation

LutXml::LutXml ( )

Definition at line 91 of file LutXml.cc.

LutXml::LutXml ( XERCES_CPP_NAMESPACE::InputSource &  _source)
LutXml::LutXml ( std::string  filename)

Definition at line 103 of file LutXml.cc.

LutXml::~LutXml ( )
virtual

Definition at line 109 of file LutXml.cc.

Member Function Documentation

int LutXml::a_to_i ( char *  inbuf)

Definition at line 486 of file LutXml.cc.

DOMElement * LutXml::add_checksum ( XERCES_CPP_NAMESPACE::DOMDocument *  parent,
Config config 
)
protected

Definition at line 280 of file LutXml.cc.

DOMElement * LutXml::addData ( std::string  _elements,
std::string  _encoding,
const std::vector< unsigned int > &  _lut 
)
protected

Definition at line 253 of file LutXml.cc.

void LutXml::addLut ( LutXml::Config _config,
XMLDOMBlock checksums_xml = 0 
)

Definition at line 210 of file LutXml.cc.

DOMElement * LutXml::addParameter ( std::string  _name,
std::string  _type,
std::string  _value 
)
protected
DOMElement * LutXml::addParameter ( std::string  _name,
std::string  _type,
int  _value 
)
protected
LutXml::const_iterator LutXml::begin ( ) const

Definition at line 585 of file LutXml.cc.

int LutXml::create_lut_map ( void  )

Definition at line 497 of file LutXml.cc.

LutXml::const_iterator LutXml::end ( ) const

Definition at line 589 of file LutXml.cc.

LutXml::const_iterator LutXml::find ( uint32_t  id) const

Definition at line 593 of file LutXml.cc.

std::string LutXml::get_checksum ( std::vector< unsigned int > &  lut)
static

Definition at line 338 of file LutXml.cc.

std::string & LutXml::getCurrentBrick ( void  )

Definition at line 330 of file LutXml.cc.

std::vector< unsigned int > * LutXml::getLutFast ( uint32_t  det_id)

Definition at line 127 of file LutXml.cc.

void LutXml::init ( void  )

Definition at line 118 of file LutXml.cc.

HcalSubdetector LutXml::subdet_from_crate ( int  crate,
int  eta,
int  depth 
)

Definition at line 458 of file LutXml.cc.

int LutXml::test_access ( std::string  filename)

Definition at line 376 of file LutXml.cc.

Member Data Documentation

XMLCh* LutXml::brick
protected

Definition at line 82 of file LutXml.h.

XERCES_CPP_NAMESPACE::DOMElement* LutXml::brickElem
protected

Definition at line 89 of file LutXml.h.

std::map<uint32_t,std::vector<unsigned int> > LutXml::lut_map
protected

Definition at line 92 of file LutXml.h.

XMLCh* LutXml::root
protected

Definition at line 81 of file LutXml.h.