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

static const Raddam_ch RADDAM_CH [56]
 

Function Documentation

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

Definition at line 290 of file HcalDetDiagLaserClient.cc.

Referenced by HcalDetDiagLaserClient::htmlOutput().

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

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

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

Referenced by HcalDetDiagLaserClient::htmlOutput().

355  {
356  file << "</table>"<< endl;
357  file << "</body>"<< endl;
358  file << "</html>"<< endl;
359 }

Variable Documentation

const Raddam_ch RADDAM_CH[56]
static
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.