CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
SiPixelInformationExtractor Class Reference

#include <SiPixelInformationExtractor.h>

Public Member Functions

void bookNoisyPixels (DQMStore::IBooker &iBooker, float noiseRate, bool Tier0Flag)
 
void computeStatus (MonitorElement *mE, double &colorValue, std::pair< double, double > &norm)
 (Documentation under construction). More...
 
void findNoisyPixels (DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool init, float noiseRate, int noiseRateDenominator, edm::ESHandle< SiPixelFedCablingMap > theCablingMap)
 
int getDetId (MonitorElement *mE)
 (Documentation under construction). More...
 
std::string getMEType (MonitorElement *mE)
 
void getNormalization (MonitorElement *mE, std::pair< double, double > &norm, std::string theMEType)
 (Documentation under construction). More...
 
void getNormalization2D (MonitorElement *mE, std::pair< double, double > &normX, std::pair< double, double > &normY, std::string theMEType)
 (Documentation under construction). More...
 
void readConfiguration ()
 Read Configuration File. More...
 
bool readConfiguration (std::map< std::string, std::vector< std::string >> &layoutMap, std::map< std::string, std::map< std::string, std::string >> &qtestsMap, std::map< std::string, std::vector< std::string >> &meQTestsMap)
 
 SiPixelInformationExtractor (bool offlineXMLfile)
 Constructor of the SiPixelInformationExtractor class. More...
 
 ~SiPixelInformationExtractor ()
 Destructor of the SiPixelInformationExtractor class. More...
 

Private Member Functions

void createDummiesFromLayout ()
 
void getItemList (const std::multimap< std::string, std::string > &req_map, std::string item_name, std::vector< std::string > &items)
 (Documentation under construction). More...
 
std::string getItemValue (const std::multimap< std::string, std::string > &req_map, std::string item_name)
 (Documentation under construction). More...
 
std::string getItemValue (std::multimap< std::string, std::string > &req_map, std::string item_name)
 
bool hasItem (std::multimap< std::string, std::string > &req_map, std::string item_name)
 (Documentation under construction). More...
 
void selectColor (std::string &col, int status)
 
void selectColor (std::string &col, std::vector< QReport * > &reports)
 
void selectImage (std::string &name, int status)
 
void selectImage (std::string &name, std::vector< QReport * > &reports)
 

Private Attributes

SiPixelActionExecutoractionExecutor_
 
int alarmCounter_
 
MonitorElementBarrelNdigisFREQProjection
 
SiPixelConfigParserconfigParser_
 
SiPixelConfigWriterconfigWriter_
 
int count
 
MonitorElementEndcapNdigisFREQProjection
 
bool endOfModules_
 
int errcount
 
MonitorElementEventRateBarrelPixels
 
MonitorElementEventRateEndcapPixels
 
bool flagHotModule_
 
bool gotDigis
 
std::map< std::string, std::vector< std::string > > layoutMap
 
SiPixelLayoutParserlayoutParser_
 
std::map< std::string, std::vector< std::string > > meQTestsMap
 
std::ofstream myfile_
 
int nevents_
 
std::map< uint32_t, std::vector< std::pair< std::pair< int, int >, float > > > noisyDetIds_
 
bool offlineXMLfile_
 
std::map< std::string, std::map< std::string, std::string > > qtestsMap
 
bool readMeMap_
 
bool readQTestMap_
 
bool readReference_
 

Detailed Description

Definition at line 39 of file SiPixelInformationExtractor.h.

Constructor & Destructor Documentation

SiPixelInformationExtractor::SiPixelInformationExtractor ( bool  offlineXMLfile)

Constructor of the SiPixelInformationExtractor class.

Definition at line 68 of file SiPixelInformationExtractor.cc.

References readReference_.

68  : offlineXMLfile_(offlineXMLfile) {
69  edm::LogInfo("SiPixelInformationExtractor") << " Creating SiPixelInformationExtractor "
70  << "\n";
71 
72  readReference_ = false;
73 }
SiPixelInformationExtractor::~SiPixelInformationExtractor ( )

Destructor of the SiPixelInformationExtractor class.

Definition at line 79 of file SiPixelInformationExtractor.cc.

79  {
80  edm::LogInfo("SiPixelInformationExtractor") << " Deleting SiPixelInformationExtractor "
81  << "\n";
82 }

Member Function Documentation

void SiPixelInformationExtractor::bookNoisyPixels ( DQMStore::IBooker iBooker,
float  noiseRate,
bool  Tier0Flag 
)

Definition at line 329 of file SiPixelInformationExtractor.cc.

References DQMStore::IBooker::book1D(), DQMStore::IBooker::cd(), EventRateBarrelPixels, EventRateEndcapPixels, MonitorElement::setAxisTitle(), and DQMStore::IBooker::setCurrentFolder().

329  {
330  // std::cout<<"BOOK NOISY PIXEL MEs!"<<std::endl;
331  iBooker.cd();
332  if (noiseRate_ >= 0.) {
333  iBooker.setCurrentFolder("Pixel/Barrel");
334  EventRateBarrelPixels = iBooker.book1D("barrelEventRate", "Digi event rate for all Barrel pixels", 1000, 0., 0.01);
335  EventRateBarrelPixels->setAxisTitle("Event Rate", 1);
336  EventRateBarrelPixels->setAxisTitle("Number of Pixels", 2);
337  iBooker.cd();
338  iBooker.setCurrentFolder("Pixel/Endcap");
339  EventRateEndcapPixels = iBooker.book1D("endcapEventRate", "Digi event rate for all Endcap pixels", 1000, 0., 0.01);
340  EventRateEndcapPixels->setAxisTitle("Event Rate", 1);
341  EventRateEndcapPixels->setAxisTitle("Number of Pixels", 2);
342  }
343 }
void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:268
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:106
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
void SiPixelInformationExtractor::computeStatus ( MonitorElement theME,
double &  colorValue,
std::pair< double, double > &  norm 
)

(Documentation under construction).

Definition at line 218 of file SiPixelInformationExtractor.cc.

References MonitorElement::getMean(), getMEType(), getNormalization(), getNormalization2D(), and mathSSE::sqrt().

218  {
219  double normalizationX = 1;
220  double normalizationY = 1;
221  double meanX = 0;
222  double meanY = 0;
223 
224  colorValue = 0;
225 
226  pair<double, double> normX;
227  pair<double, double> normY;
228 
229  string theMEType = getMEType(theME);
230 
231  if (theMEType.find("TH1") != string::npos) {
232  meanX = (double)theME->getMean();
233  getNormalization(theME, normX, "TH1");
234  normalizationX = fabs(normX.second - normX.first);
235  if (normalizationX == 0) {
236  normalizationX = 1.E-20;
237  }
238  colorValue = meanX / normalizationX;
239  norm.first = normX.first;
240  norm.second = normX.second;
241  }
242 
243  if (theMEType.find("TH2") != string::npos) {
244  meanX = (double)theME->getMean(1);
245  meanY = (double)theME->getMean(2);
246  getNormalization2D(theME, normX, normY, "TH2");
247  normalizationX = fabs(normX.second - normX.first);
248  normalizationY = fabs(normY.second - normY.first);
249  if (normalizationX == 0) {
250  normalizationX = 1.E-20;
251  }
252  if (normalizationY == 0) {
253  normalizationY = 1.E-20;
254  }
255  double cVX = meanX / normalizationX;
256  double cVY = meanY / normalizationY;
257  colorValue = sqrt(cVX * cVX + cVY * cVY);
258  if (normalizationX >= normalizationY) {
259  norm.first = normX.first;
260  norm.second = normX.second;
261  } else {
262  norm.first = normY.first;
263  norm.second = normY.second;
264  }
265  }
266 
267  return;
268 }
void getNormalization(MonitorElement *mE, std::pair< double, double > &norm, std::string theMEType)
(Documentation under construction).
double getMean(int axis=1) const
get mean value of histogram along x, y or z axis (axis=1, 2, 3 respectively)
T sqrt(T t)
Definition: SSEVec.h:18
void getNormalization2D(MonitorElement *mE, std::pair< double, double > &normX, std::pair< double, double > &normY, std::string theMEType)
(Documentation under construction).
std::string getMEType(MonitorElement *mE)
void SiPixelInformationExtractor::createDummiesFromLayout ( )
private
void SiPixelInformationExtractor::findNoisyPixels ( DQMStore::IBooker iBooker,
DQMStore::IGetter iGetter,
bool  init,
float  noiseRate,
int  noiseRateDenominator,
edm::ESHandle< SiPixelFedCablingMap theCablingMap 
)

Definition at line 347 of file SiPixelInformationExtractor.cc.

References DQMStore::IBooker::cd(), DQMStore::IGetter::cd(), sipixelobjects::ElectronicIndex::dcol, sipixelobjects::LocalPixel::DcolPxid::dcol, gamEcalExtractorBlocks_cff::detector, RefreshWebPage::dname, endOfModules_, EventRateBarrelPixels, EventRateEndcapPixels, MonitorElement::Fill(), SiPixelFedCablingMap::findItem(), DQMStore::IGetter::get(), getDetId(), DQMStore::IGetter::getMEs(), MonitorElement::getPathname(), DQMStore::IGetter::getSubdirs(), MonitorElement::getTH2F(), DQMStore::IBooker::goUp(), mps_fire::i, sipixelobjects::PixelROC::idInDetUnit(), PixelBarrelName::isHalfModule(), sipixelobjects::ElectronicIndex::link, create_public_lumi_plots::loc, genParticles_cff::map, myfile_, PixelBarrelName::name(), PixelEndcapName::name(), nevents_, noisyDetIds_, runTauDisplay::outputname, callgraph::path, edm::ESHandle< T >::product(), DQMStore::IBooker::pwd(), sipixelobjects::ElectronicIndex::pxid, sipixelobjects::LocalPixel::DcolPxid::pxid, sipixelobjects::ElectronicIndex::roc, sipixelobjects::LocalPixel::rocCol(), sipixelobjects::LocalPixel::rocRow(), DQMStore::IBooker::setCurrentFolder(), DQMStore::IGetter::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, and DetId::subdetId().

352  {
353  if (init) {
354  endOfModules_ = false;
355  nevents_ = noiseRateDenominator_;
356  if (nevents_ == -1) {
357  iBooker.cd();
358  iGetter.cd();
359  iBooker.setCurrentFolder("Pixel/EventInfo");
360  iGetter.setCurrentFolder("Pixel/EventInfo");
361  nevents_ = (iGetter.get("Pixel/EventInfo/processedEvents"))->getIntValue();
362  }
363  iBooker.cd();
364  iGetter.cd();
365  myfile_.open("NoisyPixelList.txt", ios::app);
366  myfile_ << "Noise summary, ran over " << nevents_ << " events, threshold was set to " << noiseRate_ << std::endl;
367  }
368  string currDir = iBooker.pwd();
369  string dname = currDir.substr(currDir.find_last_of("/") + 1);
370 
371  if (dname.find("Module_") != string::npos) {
372  vector<string> meVec = iGetter.getMEs();
373  for (vector<string>::const_iterator it = meVec.begin(); it != meVec.end(); it++) {
374  string full_path = currDir + "/" + (*it);
375  if (full_path.find("hitmap_siPixelDigis") != string::npos) {
376  MonitorElement *me = iGetter.get(full_path);
377  if (!me)
378  continue;
379  int detid = getDetId(me);
380  int pixcol = -1;
381  int pixrow = -1;
382  std::vector<std::pair<std::pair<int, int>, float>> noisyPixelsInModule;
383  TH2F *hothisto = me->getTH2F();
384  if (hothisto) {
385  for (int i = 1; i != hothisto->GetNbinsX() + 1; i++) {
386  for (int j = 1; j != hothisto->GetNbinsY() + 1; j++) {
387  float value = (hothisto->GetBinContent(i, j)) / float(nevents_);
388  if (me->getPathname().find("Barrel") != string::npos) {
389  EventRateBarrelPixels = iGetter.get("Pixel/Barrel/barrelEventRate");
391  EventRateBarrelPixels->Fill(value);
392  } else if (me->getPathname().find("Endcap") != string::npos) {
393  EventRateEndcapPixels = iGetter.get("Pixel/Endcap/endcapEventRate");
395  EventRateEndcapPixels->Fill(value);
396  }
397  if (value > noiseRate_) {
398  pixcol = i - 1;
399  pixrow = j - 1;
400 
401  std::pair<int, int> address(pixcol, pixrow);
402  std::pair<std::pair<int, int>, float> PixelStats(address, value);
403  noisyPixelsInModule.push_back(PixelStats);
404  }
405  }
406  }
407  }
408  noisyDetIds_[detid] = noisyPixelsInModule;
409  }
410  }
411  }
412  vector<string> subDirVec = iGetter.getSubdirs();
413  for (vector<string>::const_iterator ic = subDirVec.begin(); ic != subDirVec.end(); ic++) {
414  if ((*ic).find("AdditionalPixelErrors") != string::npos)
415  continue;
416  iGetter.cd(*ic);
417  iBooker.cd(*ic);
418  init = false;
419  findNoisyPixels(iBooker, iGetter, init, noiseRate_, noiseRateDenominator_, theCablingMap);
420  iBooker.goUp();
421  iGetter.setCurrentFolder(iBooker.pwd());
422  }
423 
424  if (iBooker.pwd().find("EventInfo") != string::npos)
425  endOfModules_ = true;
426 
427  if (!endOfModules_)
428  return;
429  if (currDir == "Pixel/EventInfo/reportSummaryContents") {
430  std::vector<std::pair<sipixelobjects::DetectorIndex, double>> pixelvec;
431  std::map<uint32_t, int> myfedmap;
432  std::map<uint32_t, std::string> mynamemap;
433  int realfedID = -1;
434  int counter = 0;
435  int n_noisyrocs_all = 0;
436  int n_noisyrocs_barrel = 0;
437  int n_noisyrocs_endcap = 0;
438  int n_verynoisyrocs_all = 0;
439  int n_verynoisyrocs_barrel = 0;
440  int n_verynoisyrocs_endcap = 0;
441 
442  for (int fid = 0; fid < 40; fid++) {
443  for (std::map<uint32_t, std::vector<std::pair<std::pair<int, int>, float>>>::const_iterator it =
444  noisyDetIds_.begin();
445  it != noisyDetIds_.end();
446  it++) {
447  uint32_t detid = (*it).first;
448  std::vector<std::pair<std::pair<int, int>, float>> noisyPixels = (*it).second;
449  // now convert into online conventions:
450  for (int fedid = 0; fedid <= 40; ++fedid) {
451  SiPixelFrameConverter converter(theCablingMap.product(), fedid);
452  uint32_t newDetId = detid;
453  if (converter.hasDetUnit(newDetId)) {
454  realfedID = fedid;
455  break;
456  }
457  }
458  if (fid == realfedID) {
459  if (realfedID == -1)
460  continue;
461  DetId detId(detid);
462  uint32_t detSubId = detId.subdetId();
464  bool HalfModule = false;
465  if (detSubId == 2) { // FPIX
466  PixelEndcapName nameworker(detid);
467  outputname = nameworker.name();
468  } else if (detSubId == 1) { // BPIX
469  PixelBarrelName nameworker(detid);
470  outputname = nameworker.name();
471  HalfModule = nameworker.isHalfModule();
472 
473  } else {
474  continue;
475  }
476  std::map<int, int> myrocmap;
477  myfedmap[detid] = realfedID;
478  mynamemap[detid] = outputname;
479 
480  for (std::vector<std::pair<std::pair<int, int>, float>>::const_iterator pxl = noisyPixels.begin();
481  pxl != noisyPixels.end();
482  pxl++) {
483  std::pair<int, int> offlineaddress = (*pxl).first;
484  float Noise_frac = (*pxl).second;
485  int offlineColumn = offlineaddress.first;
486  int offlineRow = offlineaddress.second;
487  counter++;
488 
490  SiPixelFrameConverter formatter(theCablingMap.product(), realfedID);
491  sipixelobjects::DetectorIndex detector = {detid, offlineRow, offlineColumn};
492  formatter.toCabling(cabling, detector);
493  // cabling should now contain cabling.roc and cabling.dcol and
494  // cabling.pxid however, the coordinates now need to be converted
495  // from dcl,pxid to the row,col coordinates used in the calibration
496  // info
498  loc.dcol = cabling.dcol;
499  loc.pxid = cabling.pxid;
500 
501  sipixelobjects::LocalPixel locpixel(loc);
502  assert(realfedID >= 0);
503  assert(cabling.link >= 0);
504  assert(cabling.roc >= 0);
505  sipixelobjects::CablingPathToDetUnit path = {static_cast<unsigned int>(realfedID),
506  static_cast<unsigned int>(cabling.link),
507  static_cast<unsigned int>(cabling.roc)};
508  const sipixelobjects::PixelROC *theRoc = theCablingMap->findItem(path);
509  // END of FIX
510 
511  int onlineColumn = locpixel.rocCol();
512  int onlineRow = locpixel.rocRow();
513  myrocmap[(theRoc->idInDetUnit())]++;
514 
515  // ROC numbers in the barrel go from 8 to 15 instead of 0 to 7 in
516  // half modules. This is a fix to get the roc number, and add 8 to
517  // it if: it's a Barrel module AND on the minus side AND a Half
518  // module
519 
520  int rocnumber = -1;
521 
522  if ((detSubId == 1) && (outputname.find("mO") != string::npos || outputname.find("mI") != string::npos) &&
523  (HalfModule)) {
524  rocnumber = theRoc->idInDetUnit() + 8;
525  } else {
526  rocnumber = theRoc->idInDetUnit();
527  }
528 
529  myfile_ << "NAME: " << outputname << " , DETID: " << detid << " , OFFLINE: col,row: " << offlineColumn
530  << "," << offlineRow << " \t , ONLINE: roc,col,row: " << rocnumber << "," << onlineColumn << ","
531  << onlineRow << " \t , fed,dcol,pixid,link: " << realfedID << "," << loc.dcol << "," << loc.pxid
532  << "," << cabling.link << ", Noise fraction: " << Noise_frac << std::endl;
533  }
534  for (std::map<int, int>::const_iterator nrc = myrocmap.begin(); nrc != myrocmap.end(); nrc++) {
535  if ((*nrc).second > 0) {
536  n_noisyrocs_all++;
537  if (detSubId == 2) {
538  n_noisyrocs_endcap++;
539  } else if (detSubId == 1) {
540  n_noisyrocs_barrel++;
541  }
542  }
543  if ((*nrc).second > 40) {
544  n_verynoisyrocs_all++;
545  if (detSubId == 2) {
546  n_verynoisyrocs_endcap++;
547  } else if (detSubId == 1) {
548  n_verynoisyrocs_barrel++;
549  }
550  }
551  }
552  }
553  }
554  }
555  myfile_ << "There are " << n_noisyrocs_all
556  << " noisy ROCs (ROCs with at least 1 noisy pixel) in the entire "
557  "detector. "
558  << n_noisyrocs_endcap << " are in the FPIX and " << n_noisyrocs_barrel << " are in the BPIX. " << endl;
559  myfile_ << "There are " << n_verynoisyrocs_all
560  << " highly noisy ROCs (ROCs with at least 10% of all pixels "
561  "passing the noise threshold) in the entire detector. "
562  << n_verynoisyrocs_endcap << " are in the FPIX and " << n_verynoisyrocs_barrel << " are in the BPIX. "
563  << endl;
564  }
565  myfile_.close();
566  return;
567 }
const std::string & getPathname() const
get pathname of parent folder
void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:361
identify pixel inside single ROC
Definition: LocalPixel.h:7
void Fill(long long x)
void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:268
void findNoisyPixels(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool init, float noiseRate, int noiseRateDenominator, edm::ESHandle< SiPixelFedCablingMap > theCablingMap)
unsigned int idInDetUnit() const
id of this ROC in DetUnit etermined by token path
Definition: PixelROC.h:40
Definition: value.py:1
TH2F * getTH2F() const
double collumn and pixel ID in double collumn representation
Definition: LocalPixel.h:22
MonitorElement * get(std::string const &path)
Definition: DQMStore.cc:303
Definition: init.py:1
std::map< uint32_t, std::vector< std::pair< std::pair< int, int >, float > > > noisyDetIds_
Definition: DetId.h:18
std::string const & pwd()
Definition: DQMStore.cc:278
const sipixelobjects::PixelROC * findItem(const sipixelobjects::CablingPathToDetUnit &path) const final
int getDetId(MonitorElement *mE)
(Documentation under construction).
std::vector< std::string > getSubdirs()
Definition: DQMStore.cc:325
std::vector< std::string > getMEs()
Definition: DQMStore.cc:331
T const * product() const
Definition: ESHandle.h:86
int SiPixelInformationExtractor::getDetId ( MonitorElement mE)

(Documentation under construction).

Given a pointer to ME returns the associated detId

Definition at line 313 of file SiPixelInformationExtractor.cc.

References MonitorElement::getName().

Referenced by findNoisyPixels().

313  {
314  const string &mEName = mE->getName();
315 
316  int detId = 0;
317 
318  if (mEName.find("_3") != string::npos) {
319  string detIdString = mEName.substr((mEName.find_last_of("_")) + 1, 9);
320  std::istringstream isst;
321  isst.str(detIdString);
322  isst >> detId;
323  }
324  return detId;
325 }
const std::string & getName() const
get name of ME
void SiPixelInformationExtractor::getItemList ( const std::multimap< std::string, std::string > &  req_map,
std::string  item_name,
std::vector< std::string > &  items 
)
private

(Documentation under construction).

This method

Definition at line 110 of file SiPixelInformationExtractor.cc.

112  {
113  items.clear();
114  for (multimap<string, string>::const_iterator it = req_map.begin(); it != req_map.end(); it++) {
115  if (it->first == item_name) {
116  items.push_back(it->second);
117  }
118  }
119 }
std::string SiPixelInformationExtractor::getItemValue ( const std::multimap< std::string, std::string > &  req_map,
std::string  item_name 
)
private

(Documentation under construction).

This method

Definition at line 138 of file SiPixelInformationExtractor.cc.

References AlCaHLTBitMon_QueryRunRegistry::string, and relativeConstraints::value.

139  {
140  std::multimap<std::string, std::string>::const_iterator pos = req_map.find(item_name);
141  std::string value = " ";
142  if (pos != req_map.end()) {
143  value = pos->second;
144  }
145  return value;
146 }
Definition: value.py:1
std::string SiPixelInformationExtractor::getItemValue ( std::multimap< std::string, std::string > &  req_map,
std::string  item_name 
)
private

Definition at line 147 of file SiPixelInformationExtractor.cc.

References cuy::col, dqm::qstatus::ERROR, dataset::name, dqm::qstatus::OTHER, selectColor(), selectImage(), mps_update::status, dqm::qstatus::STATUS_OK, AlCaHLTBitMon_QueryRunRegistry::string, relativeConstraints::value, and dqm::qstatus::WARNING.

148  {
149  std::multimap<std::string, std::string>::iterator pos = req_map.find(item_name);
150  std::string value = " ";
151  if (pos != req_map.end()) {
152  value = pos->second;
153  }
154  return value;
155 }
Definition: value.py:1
std::string SiPixelInformationExtractor::getMEType ( MonitorElement mE)

Definition at line 93 of file SiPixelInformationExtractor.cc.

References MonitorElement::getRootObject().

Referenced by computeStatus().

93  {
94  string qtype = theMe->getRootObject()->IsA()->GetName();
95  if (qtype.find("TH1") != string::npos) {
96  return "TH1";
97  } else if (qtype.find("TH2") != string::npos) {
98  return "TH2";
99  } else if (qtype.find("TH3") != string::npos) {
100  return "TH3";
101  }
102  return "TH1";
103 }
void SiPixelInformationExtractor::getNormalization ( MonitorElement theME,
std::pair< double, double > &  norm,
std::string  theMEType 
)

(Documentation under construction).

Definition at line 274 of file SiPixelInformationExtractor.cc.

References MonitorElement::getNbinsX().

Referenced by computeStatus().

276  {
277  double normLow = 0;
278  double normHigh = 0;
279 
280  if (theMEType.find("TH1") != string::npos) {
281  normHigh = (double)theME->getNbinsX();
282  norm.first = normLow;
283  norm.second = normHigh;
284  }
285 }
int getNbinsX() const
get # of bins in X-axis
void SiPixelInformationExtractor::getNormalization2D ( MonitorElement theME,
std::pair< double, double > &  normX,
std::pair< double, double > &  normY,
std::string  theMEType 
)

(Documentation under construction).

Definition at line 291 of file SiPixelInformationExtractor.cc.

References MonitorElement::getNbinsX(), and MonitorElement::getNbinsY().

Referenced by computeStatus().

294  {
295  double normLow = 0;
296  double normHigh = 0;
297 
298  if (theMEType.find("TH2") != string::npos) {
299  normHigh = (double)theME->getNbinsX();
300  normX.first = normLow;
301  normX.second = normHigh;
302  normHigh = (double)theME->getNbinsY();
303  normY.first = normLow;
304  normY.second = normHigh;
305  }
306 }
int getNbinsY() const
get # of bins in Y-axis
int getNbinsX() const
get # of bins in X-axis
bool SiPixelInformationExtractor::hasItem ( std::multimap< std::string, std::string > &  req_map,
std::string  item_name 
)
private

(Documentation under construction).

This method

Definition at line 126 of file SiPixelInformationExtractor.cc.

126  {
127  multimap<string, string>::iterator pos = req_map.find(item_name);
128  if (pos != req_map.end())
129  return true;
130  return false;
131 }
void SiPixelInformationExtractor::readConfiguration ( )

Read Configuration File.

Definition at line 88 of file SiPixelInformationExtractor.cc.

88 {}
bool SiPixelInformationExtractor::readConfiguration ( std::map< std::string, std::vector< std::string >> &  layoutMap,
std::map< std::string, std::map< std::string, std::string >> &  qtestsMap,
std::map< std::string, std::vector< std::string >> &  meQTestsMap 
)
void SiPixelInformationExtractor::selectColor ( std::string &  col,
int  status 
)
private

Referenced by getItemValue().

void SiPixelInformationExtractor::selectColor ( std::string &  col,
std::vector< QReport * > &  reports 
)
private
void SiPixelInformationExtractor::selectImage ( std::string &  name,
int  status 
)
private

Referenced by getItemValue().

void SiPixelInformationExtractor::selectImage ( std::string &  name,
std::vector< QReport * > &  reports 
)
private

Member Data Documentation

SiPixelActionExecutor* SiPixelInformationExtractor::actionExecutor_
private

Definition at line 84 of file SiPixelInformationExtractor.h.

int SiPixelInformationExtractor::alarmCounter_
private

Definition at line 80 of file SiPixelInformationExtractor.h.

MonitorElement* SiPixelInformationExtractor::BarrelNdigisFREQProjection
private

Definition at line 110 of file SiPixelInformationExtractor.h.

SiPixelConfigParser* SiPixelInformationExtractor::configParser_
private

Definition at line 82 of file SiPixelInformationExtractor.h.

SiPixelConfigWriter* SiPixelInformationExtractor::configWriter_
private

Definition at line 83 of file SiPixelInformationExtractor.h.

int SiPixelInformationExtractor::count
private

Definition at line 97 of file SiPixelInformationExtractor.h.

MonitorElement* SiPixelInformationExtractor::EndcapNdigisFREQProjection
private

Definition at line 109 of file SiPixelInformationExtractor.h.

bool SiPixelInformationExtractor::endOfModules_
private

Definition at line 104 of file SiPixelInformationExtractor.h.

Referenced by findNoisyPixels().

int SiPixelInformationExtractor::errcount
private

Definition at line 98 of file SiPixelInformationExtractor.h.

MonitorElement* SiPixelInformationExtractor::EventRateBarrelPixels
private

Definition at line 106 of file SiPixelInformationExtractor.h.

Referenced by bookNoisyPixels(), and findNoisyPixels().

MonitorElement* SiPixelInformationExtractor::EventRateEndcapPixels
private

Definition at line 107 of file SiPixelInformationExtractor.h.

Referenced by bookNoisyPixels(), and findNoisyPixels().

bool SiPixelInformationExtractor::flagHotModule_
private

Definition at line 94 of file SiPixelInformationExtractor.h.

bool SiPixelInformationExtractor::gotDigis
private

Definition at line 99 of file SiPixelInformationExtractor.h.

std::map<std::string, std::vector<std::string> > SiPixelInformationExtractor::layoutMap
private

Definition at line 87 of file SiPixelInformationExtractor.h.

SiPixelLayoutParser* SiPixelInformationExtractor::layoutParser_
private

Definition at line 85 of file SiPixelInformationExtractor.h.

std::map<std::string, std::vector<std::string> > SiPixelInformationExtractor::meQTestsMap
private

Definition at line 89 of file SiPixelInformationExtractor.h.

std::ofstream SiPixelInformationExtractor::myfile_
private

Definition at line 101 of file SiPixelInformationExtractor.h.

Referenced by findNoisyPixels().

int SiPixelInformationExtractor::nevents_
private

Definition at line 102 of file SiPixelInformationExtractor.h.

Referenced by findNoisyPixels().

std::map<uint32_t, std::vector<std::pair<std::pair<int, int>, float> > > SiPixelInformationExtractor::noisyDetIds_
private

Definition at line 103 of file SiPixelInformationExtractor.h.

Referenced by findNoisyPixels().

bool SiPixelInformationExtractor::offlineXMLfile_
private

Definition at line 95 of file SiPixelInformationExtractor.h.

std::map<std::string, std::map<std::string, std::string> > SiPixelInformationExtractor::qtestsMap
private

Definition at line 88 of file SiPixelInformationExtractor.h.

bool SiPixelInformationExtractor::readMeMap_
private

Definition at line 93 of file SiPixelInformationExtractor.h.

bool SiPixelInformationExtractor::readQTestMap_
private

Definition at line 92 of file SiPixelInformationExtractor.h.

bool SiPixelInformationExtractor::readReference_
private

Definition at line 91 of file SiPixelInformationExtractor.h.

Referenced by SiPixelInformationExtractor().