CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
List of all members | Protected Member Functions
FastFedCablingSummaryFactory Class Reference

#include <FastFedCablingSummaryFactory.h>

Inheritance diagram for FastFedCablingSummaryFactory:
SummaryPlotFactory< CommissioningAnalysis *> SummaryPlotFactoryBase SummaryPlotFactoryBase

Protected Member Functions

void extract (Iterator) override
 
void format () override
 
- Protected Member Functions inherited from SummaryPlotFactoryBase
void fill (TH1 &summary_histo)
 
void init (const sistrip::Monitorable &, const sistrip::Presentation &, const sistrip::View &, const std::string &top_level_dir, const sistrip::Granularity &)
 
 SummaryPlotFactoryBase ()
 
 ~SummaryPlotFactoryBase ()
 

Additional Inherited Members

- Public Member Functions inherited from SummaryPlotFactory< CommissioningAnalysis *>
void fill (TH1 &summary_histo)
 
uint32_t init (const sistrip::Monitorable &, const sistrip::Presentation &, const sistrip::View &, const std::string &top_level_dir, const sistrip::Granularity &, const std::map< uint32_t, CommissioningAnalysis * > &data)
 
- Protected Attributes inherited from SummaryPlotFactoryBase
SummaryGeneratorgenerator_
 
sistrip::Granularity gran_
 
std::string level_
 
sistrip::Monitorable mon_
 
sistrip::Presentation pres_
 
sistrip::View view_
 

Detailed Description

Definition at line 6 of file FastFedCablingSummaryFactory.h.

Member Function Documentation

◆ extract()

void FastFedCablingSummaryFactory::extract ( Iterator  iter)
overrideprotected

Definition at line 12 of file FastFedCablingSummaryFactory.cc.

References conversion_template_cfg::anal, relativeConstraints::error, sistrip::FAST_CABLING_CONNS_PER_FED, sistrip::FAST_CABLING_HIGH_LEVEL, sistrip::FAST_CABLING_LOW_LEVEL, sistrip::FAST_CABLING_MAX, sistrip::FAST_CABLING_MIN, SummaryGenerator::fillMap(), SummaryPlotFactoryBase::generator_, SummaryPlotFactoryBase::gran_, sistrip::invalid_, SummaryPlotFactoryBase::level_, sistrip::mlSummaryPlots_, SummaryPlotFactoryBase::mon_, and SiStripEnumsAndStrings::monitorable().

12  {
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 }
static std::string monitorable(const sistrip::Monitorable &)
sistrip::Monitorable mon_
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.
Definition: value.py:1
sistrip::Granularity gran_
static const char mlSummaryPlots_[]
SummaryGenerator * generator_
static const uint16_t invalid_
Definition: Constants.h:16
Log< level::Warning, false > LogWarning

◆ format()

void FastFedCablingSummaryFactory::format ( )
overrideprotected

Definition at line 46 of file FastFedCablingSummaryFactory.cc.

References SummaryGenerator::axisLabel(), sistrip::FAST_CABLING_CONNS_PER_FED, sistrip::FAST_CABLING_HIGH_LEVEL, sistrip::FAST_CABLING_LOW_LEVEL, sistrip::FAST_CABLING_MAX, sistrip::FAST_CABLING_MIN, SummaryPlotFactoryBase::generator_, sistrip::mlSummaryPlots_, SummaryPlotFactoryBase::mon_, and SiStripEnumsAndStrings::monitorable().

46  {
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_
static const char mlSummaryPlots_[]
SummaryGenerator * generator_
Log< level::Warning, false > LogWarning
void axisLabel(const std::string &)