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 "CalibCalorimetry/HcalAlgos/interface/HcalLogicalMapGenerator.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 296 of file HcalDetDiagLaserClient.cc.

Referenced by HcalDetDiagLaserClient::htmlOutput().

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

Definition at line 312 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(), and HcalElectronicsId::spigot().

Referenced by HcalDetDiagLaserClient::htmlOutput().

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

Referenced by HcalDetDiagLaserClient::htmlOutput().

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

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