CMS 3D CMS Logo

List of all members | Protected Member Functions
FastFedCablingSummaryFactory Class Reference

#include <FastFedCablingSummaryFactory.h>

Inheritance diagram for FastFedCablingSummaryFactory:
SummaryPlotFactory< CommissioningAnalysis * > 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 Types inherited from SummaryPlotFactory< CommissioningAnalysis * >
typedef std::map< uint32_t, CommissioningAnalysis * >::const_iterator Iterator
 
- 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)
 
 SummaryPlotFactory ()
 
virtual ~SummaryPlotFactory ()
 
- 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

void FastFedCablingSummaryFactory::extract ( Iterator  iter)
overrideprotectedvirtual

Reimplemented from SummaryPlotFactory< CommissioningAnalysis * >.

Definition at line 12 of file FastFedCablingSummaryFactory.cc.

References 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_, FastFedCablingAnalysis::highLevel(), FastFedCablingAnalysis::highRms(), sistrip::invalid_, FastFedCablingAnalysis::isValid(), SummaryPlotFactoryBase::level_, FastFedCablingAnalysis::lowLevel(), FastFedCablingAnalysis::lowRms(), FastFedCablingAnalysis::max(), FastFedCablingAnalysis::min(), sistrip::mlSummaryPlots_, SummaryPlotFactoryBase::mon_, and SiStripEnumsAndStrings::monitorable().

12  {
13 
14  FastFedCablingAnalysis* anal = dynamic_cast<FastFedCablingAnalysis*>( iter->second );
15  if ( !anal ) { return; }
16 
17  float value = 1. * sistrip::invalid_;
18  float error = 1. * sistrip::invalid_;
19 
21  value = anal->highLevel();
22  error = anal->highRms();
24  value = anal->lowLevel();
25  error = anal->lowRms();
27  value = anal->max();
29  value = anal->min();
31  value = 1. * static_cast<uint16_t>( anal->isValid() );
32  } else {
34  << "[SummaryPlotFactory::" << __func__ << "]"
35  << " Unexpected monitorable: "
37  return;
38  }
39 
42  iter->first,
43  value,
44  error );
45 
46 }
static std::string monitorable(const sistrip::Monitorable &)
sistrip::Monitorable mon_
bool isValid() const override
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
const float & max() const
Definition: value.py:1
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
void FastFedCablingSummaryFactory::format ( )
overrideprotectedvirtual

Reimplemented from SummaryPlotFactory< CommissioningAnalysis * >.

Definition at line 50 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().

50  {
51 
53  SummaryPlotFactoryBase::generator_->axisLabel( "\"High\" light level [ADC]" );
55  SummaryPlotFactoryBase::generator_->axisLabel( "\"Low\" light level [ADC]" );
57  SummaryPlotFactoryBase::generator_->axisLabel( "Maximum light level [ADC]" );
59  SummaryPlotFactoryBase::generator_->axisLabel( "Minumum light level [ADC]" );
61  SummaryPlotFactoryBase::generator_->axisLabel( "Connected channels per FED" );
62  } else {
64  << "[SummaryPlotFactory::" << __func__ << "]"
65  << " Unexpected SummaryHisto value:"
67  }
68 
69 }
static std::string monitorable(const sistrip::Monitorable &)
sistrip::Monitorable mon_
static const char mlSummaryPlots_[]
SummaryGenerator * generator_
void axisLabel(const std::string &)