CMS 3D CMS Logo

LutXml.h

Go to the documentation of this file.
00001 #ifndef CaloOnlineTools_HcalOnlineDb_LutXml_h
00002 #define CaloOnlineTools_HcalOnlineDb_LutXml_h
00003 // -*- C++ -*-
00004 //
00005 // Package:     CaloOnlineTools/HcalOnlineDb
00006 // Class  :     LutXml
00007 // 
00016 //
00017 // Original Author:  Gena Kukartsev, kukarzev@fnal.gov
00018 //         Created:  Tue Mar 18 14:30:33 CDT 2008
00019 // $Id: LutXml.h,v 1.1 2008/04/10 21:12:09 kukartse Exp $
00020 //
00021 
00022 #include <vector>
00023 #include "CaloOnlineTools/HcalOnlineDb/interface/XMLDOMBlock.h"
00024 
00025 
00026 
00027 
00028 class LutXml : public XMLDOMBlock
00029 {
00030   
00031  public:
00032     
00033   typedef struct _Config
00034   {
00035     _Config();
00036     int ieta, iphi, depth, crate, slot, topbottom, fiber, fiberchan, lut_type;
00037     string creationtag;
00038     string creationstamp;
00039     string formatrevision;
00040     string targetfirmware;
00041     int generalizedindex;
00042     std::vector<unsigned int> lut;
00043   } Config;
00044   
00045   LutXml();
00046   virtual ~LutXml();
00047   
00048   void init( void );
00049   void addLut( Config & _config );
00050   std::string & getCurrentBrick( void );
00051 
00052  protected:  
00053 
00054   DOMElement * addParameter( string _name, string _type, string _value );
00055   DOMElement * addParameter( string _name, string _type, int _value );
00056   DOMElement * addData( string _elements, string _encoding, std::vector<unsigned int> _lut );
00057 
00058   DOMElement * brickElem;
00059 
00060 };
00061 
00062 
00063 #endif

Generated on Tue Jun 9 17:25:55 2009 for CMSSW by  doxygen 1.5.4