CMS 3D CMS Logo

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

Classes

struct  Raddam_ch
 

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)
 

Variables

Raddam_ch RADDAM_CH [56]
 

Function Documentation

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

Definition at line 297 of file HcalDetDiagLaserClient.cc.

Referenced by HcalDetDiagLaserClient::htmlOutput().

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

Definition at line 313 of file HcalDetDiagLaserClient.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 HcalDetDiagLaserClient::htmlOutput().

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

Definition at line 362 of file HcalDetDiagLaserClient.cc.

Referenced by HcalDetDiagLaserClient::htmlOutput().

362  {
363  file << "</table>"<< endl;
364  file << "</body>"<< endl;
365  file << "</html>"<< endl;
366 }

Variable Documentation

Raddam_ch RADDAM_CH[56]
Initial value:
={{-30,15},{-32,15},{-34,15},{-36,15},{-38,15},{-40,15},{-41,15},
{-30,35},{-32,35},{-34,35},{-36,35},{-38,35},{-40,35},{-41,35},
{-30,51},{-32,51},{-34,51},{-36,51},{-38,51},{-40,51},{-41,51},
{-30,71},{-32,71},{-34,71},{-36,71},{-38,71},{-40,71},{-41,71},
{30, 01},{32, 01},{34, 01},{36, 01},{38, 01},{40, 71},{41, 71},
{30, 21},{32, 21},{34, 21},{36, 21},{38, 21},{40, 19},{41, 19},
{30, 37},{32, 37},{34, 37},{36, 37},{38, 37},{40, 35},{41, 35},
{30, 57},{32, 57},{34, 57},{36, 57},{38, 57},{40, 55},{41, 55}}

Definition at line 25 of file HcalDetDiagLaserClient.cc.