CMS 3D CMS Logo

Protected Member Functions

FastFedCablingSummaryFactory Class Reference

#include <FastFedCablingSummaryFactory.h>

Inheritance diagram for FastFedCablingSummaryFactory:
SummaryPlotFactory< CommissioningAnalysis * > SummaryPlotFactoryBase

List of all members.

Protected Member Functions

void extract (Iterator)
void format ()

Detailed Description

Definition at line 6 of file FastFedCablingSummaryFactory.h.


Member Function Documentation

void FastFedCablingSummaryFactory::extract ( Iterator  iter) [protected, virtual]

Reimplemented from SummaryPlotFactory< CommissioningAnalysis * >.

Definition at line 12 of file FastFedCablingSummaryFactory.cc.

References 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_, SiStripEnumsAndStrings::monitorable(), and relativeConstraints::value.

                                                          {
  
  FastFedCablingAnalysis* anal = dynamic_cast<FastFedCablingAnalysis*>( iter->second );
  if ( !anal ) { return; }
    
  float value = 1. * sistrip::invalid_;
  float error = 1. * sistrip::invalid_;
  
  if ( SummaryPlotFactoryBase::mon_ == sistrip::FAST_CABLING_HIGH_LEVEL ) { 
    value = anal->highLevel(); 
    error = anal->highRms(); 
  } else if ( SummaryPlotFactoryBase::mon_ == sistrip::FAST_CABLING_LOW_LEVEL ) { 
    value = anal->lowLevel(); 
    error = anal->lowRms(); 
  } else if ( SummaryPlotFactoryBase::mon_ == sistrip::FAST_CABLING_MAX ) { 
    value = anal->max(); 
  } else if ( SummaryPlotFactoryBase::mon_ == sistrip::FAST_CABLING_MIN ) { 
    value = anal->min(); 
  } else if ( SummaryPlotFactoryBase::mon_ == sistrip::FAST_CABLING_CONNS_PER_FED ) { 
    value = 1. * static_cast<uint16_t>( anal->isValid() ); 
  } else { 
    edm::LogWarning(mlSummaryPlots_)
      << "[SummaryPlotFactory::" << __func__ << "]" 
      << " Unexpected monitorable: "
      << SiStripEnumsAndStrings::monitorable( SummaryPlotFactoryBase::mon_ );
    return; 
  }
  
  SummaryPlotFactoryBase::generator_->fillMap( SummaryPlotFactoryBase::level_, 
                                               SummaryPlotFactoryBase::gran_, 
                                               iter->first, 
                                               value,
                                               error );
  
}
void FastFedCablingSummaryFactory::format ( ) [protected, virtual]