CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_7_hltpatch2/src/CaloOnlineTools/HcalOnlineDb/interface/DBlmapWriter.h

Go to the documentation of this file.
00001 #include "CalibCalorimetry/HcalTPGAlgos/interface/XMLDOMBlock.h"
00002 
00003 class DBlmapWriter
00004 {
00005   
00006  public:
00007   typedef struct _LMapRowHBEF
00008   {
00009     int    side;
00010     int    eta;
00011     int    phi;
00012     int    dphi;
00013     int    depth;
00014     std::string det;
00015     std::string rbx;
00016     int    wedge;
00017     int    rm;
00018     int    pixel;
00019     int    qie;
00020     int    adc;
00021     int    rm_fi;
00022     int    fi_ch;
00023     int    crate;
00024     int    htr;
00025     std::string fpga;
00026     int    htr_fi;
00027     int    dcc_sl;
00028     int    spigo;
00029     int    dcc;
00030     int    slb;
00031     std::string slbin;
00032     std::string slbin2;
00033     std::string slnam;
00034     int    rctcra;
00035     int    rctcar;
00036     int    rctcon;
00037     std::string rctnam;
00038     int    fedid;
00039   } LMapRowHBEF;
00040 
00041   typedef struct _LMapRowHO
00042   {
00043     int    sideO;
00044     int    etaO;
00045     int    phiO;
00046     int    dphiO;
00047     int    depthO;
00048     std::string detO;
00049     std::string rbxO;
00050     int    sectorO;
00051     int    rmO;
00052     int    pixelO;
00053     int    qieO;
00054     int    adcO;
00055     int    rm_fiO;
00056     int    fi_chO;
00057     std::string let_codeO;
00058     int    crateO;
00059     int    htrO;
00060     std::string fpgaO;
00061     int    htr_fiO;
00062     int    dcc_slO;
00063     int    spigoO;
00064     int    dccO;
00065     int    fedidO;
00066   } LMapRowHO;
00067 
00068   DBlmapWriter();
00069   ~DBlmapWriter();
00070 
00071   XMLDOMBlock * createLMapHBEFXMLBase( std::string templateFileName );
00072   XMLDOMBlock * createLMapHOXMLBase( std::string templateFileName );
00073 
00074   int addLMapHBEFDataset( XMLDOMBlock * doc, LMapRowHBEF * row, std::string templateFileName );
00075   int addLMapHODataset( XMLDOMBlock * doc, LMapRowHO * row, std::string templateFileName );
00076 
00077   int createLMap( void );
00078 
00079  protected:
00080 
00081  private:
00082 
00083 };