CMS 3D CMS Logo

SamplingSummaryFactory.cc
Go to the documentation of this file.
5 #include <iostream>
6 #include <sstream>
7 
8 using namespace sistrip;
9 
10 // -----------------------------------------------------------------------------
11 //
13  SamplingAnalysis* anal = dynamic_cast<SamplingAnalysis*>(iter->second);
14  if (!anal) {
15  return;
16  }
17 
18  if (mon_ == sistrip::FINE_DELAY_POS) {
19  generator_->fillMap(level_, gran_, iter->first, anal->maximum());
20  } else if (mon_ == sistrip::FINE_DELAY_ERROR) {
21  generator_->fillMap(level_, gran_, iter->first, anal->error());
22  } else {
23  edm::LogWarning(mlSummaryPlots_) << "[SummaryPlotFactory::" << __func__ << "]"
24  << " Unexpected monitorable: "
26  return;
27  }
28 }
29 
30 //------------------------------------------------------------------------------
31 //
33  // Histogram formatting
34  if (mon_ == sistrip::FINE_DELAY_POS) {
35  generator_->axisLabel("Delay [ns]");
36  } else if (mon_ == sistrip::FINE_DELAY_ERROR) {
37  generator_->axisLabel("Uncertainty [ns]");
38  } else {
39  edm::LogWarning(mlSummaryPlots_) << "[SummaryPlotFactory::" << __func__ << "]"
40  << " Unexpected SummaryHisto value:"
42  }
43 }
SamplingSummaryFactory::extract
void extract(Iterator) override
Definition: SamplingSummaryFactory.cc:12
MessageLogger.h
SamplingSummaryFactory.h
sistrip::FINE_DELAY_POS
Definition: ConstantsForMonitorable.h:292
SamplingAnalysis
Analysis for latency run.
Definition: SamplingAnalysis.h:17
SummaryPlotFactoryBase::mon_
sistrip::Monitorable mon_
Definition: SummaryPlotFactoryBase.h:25
sistrip::FINE_DELAY_ERROR
Definition: ConstantsForMonitorable.h:293
SamplingSummaryFactory::format
void format() override
Definition: SamplingSummaryFactory.cc:32
Iterator
Definition: DQMStoreStats.h:94
SamplingAnalysis.h
edm::LogWarning
Definition: MessageLogger.h:141
SiStripEnumsAndStrings::monitorable
static std::string monitorable(const sistrip::Monitorable &)
Definition: SiStripEnumsAndStrings.cc:547
sistrip::mlSummaryPlots_
static const char mlSummaryPlots_[]
Definition: ConstantsForLogger.h:26
SiStripEnumsAndStrings.h
sistrip
sistrip classes
Definition: SiStripQualityHelpers.h:14
conversion_template_cfg.anal
anal
Definition: conversion_template_cfg.py:16