#include "DQM/HcalMonitorClient/interface/HcalDetDiagLEDClient.h"
#include "DQM/HcalMonitorClient/interface/HcalClientUtils.h"
#include "DQM/HcalMonitorClient/interface/HcalHistoUtils.h"
#include "CondFormats/HcalObjects/interface/HcalChannelStatus.h"
#include "CondFormats/HcalObjects/interface/HcalChannelQuality.h"
#include "CondFormats/HcalObjects/interface/HcalCondObjectContainer.h"
#include "CalibCalorimetry/HcalAlgos/interface/HcalLogicalMapGenerator.h"
#include "CondFormats/HcalObjects/interface/HcalLogicalMap.h"
#include <iostream>
Go to the source code of this file.
Functions | |
static void | printTableHeader (ofstream &file, std::string header) |
static void | printTableLine (ofstream &file, int ind, HcalDetId &detid, HcalFrontEndId &lmap_entry, HcalElectronicsId &emap_entry, std::string comment="") |
static void | printTableTail (ofstream &file) |
static void printTableHeader | ( | ofstream & | file, |
std::string | header | ||
) | [static] |
Definition at line 117 of file HcalDetDiagLEDClient.cc.
Referenced by HcalDetDiagLEDClient::htmlOutput().
{ file << "</html><html xmlns=\"https://www.w3.org/1999/xhtml\">"<< std::endl; file << "<head>"<< std::endl; file << "<meta https-equiv=\"Content-Type\" content=\"text/html\"/>"<< std::endl; file << "<title>"<< header <<"</title>"<< std::endl; file << "<style type=\"text/css\">"<< std::endl; file << " body,td{ background-color: #FFFFCC; font-family: arial, arial ce, helvetica; font-size: 12px; }"<< std::endl; file << " td.s0 { font-family: arial, arial ce, helvetica; }"<< std::endl; file << " td.s1 { font-family: arial, arial ce, helvetica; font-weight: bold; background-color: #FFC169; text-align: center;}"<< std::endl; file << " td.s2 { font-family: arial, arial ce, helvetica; background-color: #eeeeee; }"<< std::endl; file << " td.s3 { font-family: arial, arial ce, helvetica; background-color: #d0d0d0; }"<< std::endl; file << " td.s4 { font-family: arial, arial ce, helvetica; background-color: #FFC169; }"<< std::endl; file << "</style>"<< std::endl; file << "<body>"<< std::endl; file << "<table>"<< std::endl; }
static void printTableLine | ( | ofstream & | file, |
int | ind, | ||
HcalDetId & | detid, | ||
HcalFrontEndId & | lmap_entry, | ||
HcalElectronicsId & | emap_entry, | ||
std::string | comment = "" |
||
) | [static] |
Definition at line 133 of file HcalDetDiagLEDClient.cc.
References HcalFrontEndId::adc(), comment, HcalElectronicsId::dccid(), HcalDetId::depth(), HcalFrontEndId::fiberChannel(), HcalElectronicsId::fiberIndex(), HcalElectronicsId::htrSlot(), HcalElectronicsId::htrTopBottom(), HcalDetId::ieta(), HcalDetId::iphi(), HcalFrontEndId::pixel(), HcalFrontEndId::qieCard(), HcalFrontEndId::rbx(), HcalElectronicsId::readoutVMECrateId(), HcalFrontEndId::rm(), HcalFrontEndId::rmFiber(), and HcalElectronicsId::spigot().
Referenced by HcalDetDiagLEDClient::htmlOutput().
{ if(ind==0){ file << "<tr>"; file << "<td class=\"s4\" align=\"center\">#</td>" << std::endl; file << "<td class=\"s1\" align=\"center\">ETA</td>" << std::endl; file << "<td class=\"s1\" align=\"center\">PHI</td>" << std::endl; file << "<td class=\"s1\" align=\"center\">DEPTH</td>"<< std::endl; file << "<td class=\"s1\" align=\"center\">RBX</td>" << std::endl; file << "<td class=\"s1\" align=\"center\">RM</td>" << std::endl; file << "<td class=\"s1\" align=\"center\">PIXEL</td>" << std::endl; file << "<td class=\"s1\" align=\"center\">RM_FIBER</td>" << std::endl; file << "<td class=\"s1\" align=\"center\">FIBER_CH</td>" << std::endl; file << "<td class=\"s1\" align=\"center\">QIE</td>" << std::endl; file << "<td class=\"s1\" align=\"center\">ADC</td>" << std::endl; file << "<td class=\"s1\" align=\"center\">CRATE</td>" << std::endl; file << "<td class=\"s1\" align=\"center\">DCC</td>" << std::endl; file << "<td class=\"s1\" align=\"center\">SPIGOT</td>" << std::endl; file << "<td class=\"s1\" align=\"center\">HTR_FIBER</td>" << std::endl; file << "<td class=\"s1\" align=\"center\">HTR_SLOT</td>" << std::endl; file << "<td class=\"s1\" align=\"center\">HTR_FPGA</td>" << std::endl; if(comment[0]!=0) file << "<td class=\"s1\" align=\"center\">Comment</td>" << std::endl; file << "</tr>" << std::endl; } std::string raw_class; file << "<tr>"<< std::endl; if((ind%2)==1){ raw_class="<td class=\"s2\" align=\"center\">"; }else{ raw_class="<td class=\"s3\" align=\"center\">"; } file << "<td class=\"s4\" align=\"center\">" << ind+1 <<"</td>"<< std::endl; file << raw_class<< detid.ieta()<<"</td>"<< std::endl; file << raw_class<< detid.iphi()<<"</td>"<< std::endl; file << raw_class<< detid.depth() <<"</td>"<< std::endl; file << raw_class<< lmap_entry.rbx()<<"</td>"<< std::endl; file << raw_class<< lmap_entry.rm() <<"</td>"<< std::endl; file << raw_class<< lmap_entry.pixel()<<"</td>"<< std::endl; file << raw_class<< lmap_entry.rmFiber() <<"</td>"<< std::endl; file << raw_class<< lmap_entry.fiberChannel()<<"</td>"<< std::endl; file << raw_class<< lmap_entry.qieCard() <<"</td>"<< std::endl; file << raw_class<< lmap_entry.adc()<<"</td>"<< std::endl; file << raw_class<< emap_entry.readoutVMECrateId()<<"</td>"<< std::endl; file << raw_class<< emap_entry.dccid()<<"</td>"<< std::endl; file << raw_class<< emap_entry.spigot()<<"</td>"<< std::endl; file << raw_class<< emap_entry.fiberIndex()<<"</td>"<< std::endl; file << raw_class<< emap_entry.htrSlot()<<"</td>"<< std::endl; file << raw_class<< emap_entry.htrTopBottom()<<"</td>"<< std::endl; if(comment[0]!=0) file << raw_class<< comment<<"</td>"<< std::endl; }
static void printTableTail | ( | ofstream & | file | ) | [static] |
Definition at line 182 of file HcalDetDiagLEDClient.cc.
Referenced by HcalDetDiagLEDClient::htmlOutput().