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 }
static std::string monitorable(const sistrip::Monitorable &)
Analysis for latency run.
sistrip::Monitorable mon_
sistrip classes
static const char mlSummaryPlots_[]
void extract(Iterator) override
Log< level::Warning, false > LogWarning