test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
HcalDetDiagPedestalClient.cc File Reference
#include "DQM/HcalMonitorClient/interface/HcalDetDiagPedestalClient.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 "CondFormats/HcalObjects/interface/HcalLogicalMap.h"
#include <iostream>

Go to the source code of this file.

Functions

static void printTableHeader (std::ofstream &file, std::string header)
 
static void printTableLine (std::ofstream &file, int ind, HcalDetId &detid, HcalFrontEndId &lmap_entry, HcalElectronicsId &emap_entry, std::string comment="")
 
static void printTableTail (std::ofstream &file)
 

Function Documentation

static void printTableHeader ( std::ofstream &  file,
std::string  header 
)
static

Definition at line 300 of file HcalDetDiagPedestalClient.cc.

Referenced by HcalDetDiagPedestalClient::htmlOutput().

300  {
301  file << "</html><html xmlns=\"http://www.w3.org/1999/xhtml\">"<< std::endl;
302  file << "<head>"<< std::endl;
303  file << "<meta http-equiv=\"Content-Type\" content=\"text/html\"/>"<< std::endl;
304  file << "<title>"<< header <<"</title>"<< std::endl;
305  file << "<style type=\"text/css\">"<< std::endl;
306  file << " body,td{ background-color: #FFFFCC; font-family: arial, arial ce, helvetica; font-size: 12px; }"<< std::endl;
307  file << " td.s0 { font-family: arial, arial ce, helvetica; }"<< std::endl;
308  file << " td.s1 { font-family: arial, arial ce, helvetica; font-weight: bold; background-color: #FFC169; text-align: center;}"<< std::endl;
309  file << " td.s2 { font-family: arial, arial ce, helvetica; background-color: #eeeeee; }"<< std::endl;
310  file << " td.s3 { font-family: arial, arial ce, helvetica; background-color: #d0d0d0; }"<< std::endl;
311  file << " td.s4 { font-family: arial, arial ce, helvetica; background-color: #FFC169; }"<< std::endl;
312  file << "</style>"<< std::endl;
313  file << "<body>"<< std::endl;
314  file << "<table>"<< std::endl;
315 }
static void printTableLine ( std::ofstream &  file,
int  ind,
HcalDetId detid,
HcalFrontEndId lmap_entry,
HcalElectronicsId emap_entry,
std::string  comment = "" 
)
static

Definition at line 317 of file HcalDetDiagPedestalClient.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(), HcalElectronicsId::spigot(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by HcalDetDiagPedestalClient::htmlOutput().

317  {
318  if(ind==0){
319  file << "<tr>";
320  file << "<td class=\"s4\" align=\"center\">#</td>" << std::endl;
321  file << "<td class=\"s1\" align=\"center\">ETA</td>" << std::endl;
322  file << "<td class=\"s1\" align=\"center\">PHI</td>" << std::endl;
323  file << "<td class=\"s1\" align=\"center\">DEPTH</td>"<< std::endl;
324  file << "<td class=\"s1\" align=\"center\">RBX</td>" << std::endl;
325  file << "<td class=\"s1\" align=\"center\">RM</td>" << std::endl;
326  file << "<td class=\"s1\" align=\"center\">PIXEL</td>" << std::endl;
327  file << "<td class=\"s1\" align=\"center\">RM_FIBER</td>" << std::endl;
328  file << "<td class=\"s1\" align=\"center\">FIBER_CH</td>" << std::endl;
329  file << "<td class=\"s1\" align=\"center\">QIE</td>" << std::endl;
330  file << "<td class=\"s1\" align=\"center\">ADC</td>" << std::endl;
331  file << "<td class=\"s1\" align=\"center\">CRATE</td>" << std::endl;
332  file << "<td class=\"s1\" align=\"center\">DCC</td>" << std::endl;
333  file << "<td class=\"s1\" align=\"center\">SPIGOT</td>" << std::endl;
334  file << "<td class=\"s1\" align=\"center\">HTR_FIBER</td>" << std::endl;
335  file << "<td class=\"s1\" align=\"center\">HTR_SLOT</td>" << std::endl;
336  file << "<td class=\"s1\" align=\"center\">HTR_FPGA</td>" << std::endl;
337  if(comment[0]!=0) file << "<td class=\"s1\" align=\"center\">Comment</td>" << std::endl;
338  file << "</tr>" << std::endl;
339  }
340  std::string raw_class;
341  file << "<tr>"<< std::endl;
342  if((ind%2)==1){
343  raw_class="<td class=\"s2\" align=\"center\">";
344  }else{
345  raw_class="<td class=\"s3\" align=\"center\">";
346  }
347  file << "<td class=\"s4\" align=\"center\">" << ind+1 <<"</td>"<< std::endl;
348  file << raw_class<< detid.ieta()<<"</td>"<< std::endl;
349  file << raw_class<< detid.iphi()<<"</td>"<< std::endl;
350  file << raw_class<< detid.depth() <<"</td>"<< std::endl;
351  file << raw_class<< lmap_entry.rbx()<<"</td>"<< std::endl;
352  file << raw_class<< lmap_entry.rm() <<"</td>"<< std::endl;
353  file << raw_class<< lmap_entry.pixel()<<"</td>"<< std::endl;
354  file << raw_class<< lmap_entry.rmFiber() <<"</td>"<< std::endl;
355  file << raw_class<< lmap_entry.fiberChannel()<<"</td>"<< std::endl;
356  file << raw_class<< lmap_entry.qieCard() <<"</td>"<< std::endl;
357  file << raw_class<< lmap_entry.adc()<<"</td>"<< std::endl;
358  file << raw_class<< emap_entry.readoutVMECrateId()<<"</td>"<< std::endl;
359  file << raw_class<< emap_entry.dccid()<<"</td>"<< std::endl;
360  file << raw_class<< emap_entry.spigot()<<"</td>"<< std::endl;
361  file << raw_class<< emap_entry.fiberIndex()<<"</td>"<< std::endl;
362  file << raw_class<< emap_entry.htrSlot()<<"</td>"<< std::endl;
363  file << raw_class<< emap_entry.htrTopBottom()<<"</td>"<< std::endl;
364  if(comment[0]!=0) file << raw_class<< comment<<"</td>"<< std::endl;
365 }
int fiberChannel() const
int fiberIndex() const
get the fiber index. For VME 1-8 (which of eight fibers carried by a spigot), for uTCA fibers are zer...
int pixel() const
int htrSlot() const
get the htr slot
int readoutVMECrateId() const
get the readout VME crate number
std::string rbx() const
int depth() const
get the tower depth
Definition: HcalDetId.cc:106
int htrTopBottom() const
get the htr top/bottom (1=top/0=bottom), valid for VME
int rm() const
int ieta() const
get the cell ieta
Definition: HcalDetId.h:56
int dccid() const
get the (Hcal local) DCC id for VME, crate number for uTCA
int spigot() const
get the spigot (input number on DCC, AMC card number for uTCA)
int iphi() const
get the cell iphi
Definition: HcalDetId.cc:101
int adc() const
int rmFiber() const
int qieCard() const
#define comment(par)
Definition: vmac.h:161
static void printTableTail ( std::ofstream &  file)
static

Definition at line 366 of file HcalDetDiagPedestalClient.cc.

Referenced by HcalDetDiagPedestalClient::htmlOutput().

366  {
367  file << "</table>"<< std::endl;
368  file << "</body>"<< std::endl;
369  file << "</html>"<< std::endl;
370 }