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 (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)
 

Variables

Raddam_ch RADDAM_CH [56]
 

Function Documentation

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

Definition at line 295 of file HcalDetDiagLaserClient.cc.

Referenced by HcalDetDiagLaserClient::htmlOutput().

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

Definition at line 311 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().

311  {
312  if(ind==0){
313  file << "<tr>";
314  file << "<td class=\"s4\" align=\"center\">#</td>" << endl;
315  file << "<td class=\"s1\" align=\"center\">ETA</td>" << endl;
316  file << "<td class=\"s1\" align=\"center\">PHI</td>" << endl;
317  file << "<td class=\"s1\" align=\"center\">DEPTH</td>"<< endl;
318  file << "<td class=\"s1\" align=\"center\">RBX</td>" << endl;
319  file << "<td class=\"s1\" align=\"center\">RM</td>" << endl;
320  file << "<td class=\"s1\" align=\"center\">PIXEL</td>" << endl;
321  file << "<td class=\"s1\" align=\"center\">RM_FIBER</td>" << endl;
322  file << "<td class=\"s1\" align=\"center\">FIBER_CH</td>" << endl;
323  file << "<td class=\"s1\" align=\"center\">QIE</td>" << endl;
324  file << "<td class=\"s1\" align=\"center\">ADC</td>" << endl;
325  file << "<td class=\"s1\" align=\"center\">CRATE</td>" << endl;
326  file << "<td class=\"s1\" align=\"center\">DCC</td>" << endl;
327  file << "<td class=\"s1\" align=\"center\">SPIGOT</td>" << endl;
328  file << "<td class=\"s1\" align=\"center\">HTR_FIBER</td>" << endl;
329  file << "<td class=\"s1\" align=\"center\">HTR_SLOT</td>" << endl;
330  file << "<td class=\"s1\" align=\"center\">HTR_FPGA</td>" << endl;
331  if(comment[0]!=0) file << "<td class=\"s1\" align=\"center\">Comment</td>" << endl;
332  file << "</tr>" << endl;
333  }
334  std::string raw_class;
335  file << "<tr>"<< endl;
336  if((ind%2)==1){
337  raw_class="<td class=\"s2\" align=\"center\">";
338  }else{
339  raw_class="<td class=\"s3\" align=\"center\">";
340  }
341  file << "<td class=\"s4\" align=\"center\">" << ind+1 <<"</td>"<< endl;
342  file << raw_class<< detid.ieta()<<"</td>"<< endl;
343  file << raw_class<< detid.iphi()<<"</td>"<< endl;
344  file << raw_class<< detid.depth() <<"</td>"<< endl;
345  file << raw_class<< lmap_entry.rbx()<<"</td>"<< endl;
346  file << raw_class<< lmap_entry.rm() <<"</td>"<< endl;
347  file << raw_class<< lmap_entry.pixel()<<"</td>"<< endl;
348  file << raw_class<< lmap_entry.rmFiber() <<"</td>"<< endl;
349  file << raw_class<< lmap_entry.fiberChannel()<<"</td>"<< endl;
350  file << raw_class<< lmap_entry.qieCard() <<"</td>"<< endl;
351  file << raw_class<< lmap_entry.adc()<<"</td>"<< endl;
352  file << raw_class<< emap_entry.readoutVMECrateId()<<"</td>"<< endl;
353  file << raw_class<< emap_entry.dccid()<<"</td>"<< endl;
354  file << raw_class<< emap_entry.spigot()<<"</td>"<< endl;
355  file << raw_class<< emap_entry.fiberIndex()<<"</td>"<< endl;
356  file << raw_class<< emap_entry.htrSlot()<<"</td>"<< endl;
357  file << raw_class<< emap_entry.htrTopBottom()<<"</td>"<< endl;
358  if(comment[0]!=0) file << raw_class<< comment<<"</td>"<< endl;
359 }
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.h:40
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:36
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.h:38
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 360 of file HcalDetDiagLaserClient.cc.

Referenced by HcalDetDiagLaserClient::htmlOutput().

360  {
361  file << "</table>"<< endl;
362  file << "</body>"<< endl;
363  file << "</html>"<< endl;
364 }

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 23 of file HcalDetDiagLaserClient.cc.