CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
FastFedCablingSummaryFactory.cc
Go to the documentation of this file.
5 #include <iostream>
6 #include <sstream>
7 
8 using namespace sistrip;
9 
10 // -----------------------------------------------------------------------------
11 //
13  FastFedCablingAnalysis* anal = dynamic_cast<FastFedCablingAnalysis*>(iter->second);
14  if (!anal) {
15  return;
16  }
17 
18  float value = 1. * sistrip::invalid_;
19  float error = 1. * sistrip::invalid_;
20 
22  value = anal->highLevel();
23  error = anal->highRms();
25  value = anal->lowLevel();
26  error = anal->lowRms();
28  value = anal->max();
30  value = anal->min();
32  value = 1. * static_cast<uint16_t>(anal->isValid());
33  } else {
34  edm::LogWarning(mlSummaryPlots_) << "[SummaryPlotFactory::" << __func__ << "]"
35  << " Unexpected monitorable: "
37  return;
38  }
39 
42 }
43 
44 // -----------------------------------------------------------------------------
45 //
48  SummaryPlotFactoryBase::generator_->axisLabel("\"High\" light level [ADC]");
50  SummaryPlotFactoryBase::generator_->axisLabel("\"Low\" light level [ADC]");
52  SummaryPlotFactoryBase::generator_->axisLabel("Maximum light level [ADC]");
54  SummaryPlotFactoryBase::generator_->axisLabel("Minumum light level [ADC]");
56  SummaryPlotFactoryBase::generator_->axisLabel("Connected channels per FED");
57  } else {
58  edm::LogWarning(mlSummaryPlots_) << "[SummaryPlotFactory::" << __func__ << "]"
59  << " Unexpected SummaryHisto value:"
61  }
62 }
static std::string monitorable(const sistrip::Monitorable &)
sistrip::Monitorable mon_
const float & lowLevel() const
const float & highLevel() const
void fillMap(const std::string &top_level_dir, const sistrip::Granularity &, const uint32_t &key, const float &value, const float &error=0.)
Histogram-based analysis for connection loop.
const float & min() const
bool isValid() const override
const float & max() const
sistrip::Granularity gran_
static const char mlSummaryPlots_[]
SummaryGenerator * generator_
const float & highRms() const
static const uint16_t invalid_
Definition: Constants.h:16
const float & lowRms() const
Log< level::Warning, false > LogWarning
void axisLabel(const std::string &)