CMS 3D CMS Logo

Protected Member Functions

ApvTimingSummaryFactory Class Reference

#include <ApvTimingSummaryFactory.h>

Inheritance diagram for ApvTimingSummaryFactory:
SummaryPlotFactory< CommissioningAnalysis * > SummaryPlotFactoryBase

List of all members.

Protected Member Functions

void extract (Iterator)
void format ()

Detailed Description

Definition at line 6 of file ApvTimingSummaryFactory.h.


Member Function Documentation

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

Reimplemented from SummaryPlotFactory< CommissioningAnalysis * >.

Definition at line 12 of file ApvTimingSummaryFactory.cc.

References sistrip::APV_TIMING_BASE, sistrip::APV_TIMING_DELAY, sistrip::APV_TIMING_HEIGHT, sistrip::APV_TIMING_MAX_TIME, sistrip::APV_TIMING_PEAK, sistrip::APV_TIMING_TIME, ApvTimingAnalysis::base(), ApvTimingAnalysis::delay(), SummaryGenerator::fillMap(), SummaryPlotFactoryBase::generator_, SummaryPlotFactoryBase::gran_, ApvTimingAnalysis::height(), sistrip::invalid_, SummaryPlotFactoryBase::level_, sistrip::mlSummaryPlots_, SummaryPlotFactoryBase::mon_, SiStripEnumsAndStrings::monitorable(), ApvTimingAnalysis::peak(), ApvTimingAnalysis::refTime(), ApvTimingAnalysis::time(), and relativeConstraints::value.

                                                     {
  
  ApvTimingAnalysis* anal = dynamic_cast<ApvTimingAnalysis*>( iter->second );
  if ( !anal ) { return; }
    
  float value = 1. * sistrip::invalid_;
  
  if ( SummaryPlotFactoryBase::mon_ == sistrip::APV_TIMING_TIME ) { 
    value = anal->time(); 
  } else if ( SummaryPlotFactoryBase::mon_ == sistrip::APV_TIMING_MAX_TIME ) { 
    value = anal->refTime(); 
  } else if ( SummaryPlotFactoryBase::mon_ == sistrip::APV_TIMING_DELAY ) { 
    value = anal->delay(); 
  } else if ( SummaryPlotFactoryBase::mon_ == sistrip::APV_TIMING_BASE ) { 
    value = anal->base(); 
  } else if ( SummaryPlotFactoryBase::mon_ == sistrip::APV_TIMING_PEAK ) { 
    value = anal->peak(); 
  } else if ( SummaryPlotFactoryBase::mon_ == sistrip::APV_TIMING_HEIGHT ) { 
    value = anal->height(); 
  } else { 
    edm::LogWarning(mlSummaryPlots_)
      << "[SummaryPlotFactory::" << __func__ << "]" 
      << " Unexpected monitorable: "
      << SiStripEnumsAndStrings::monitorable( SummaryPlotFactoryBase::mon_ );
    return; 
  }
  
  SummaryPlotFactoryBase::generator_->fillMap( SummaryPlotFactoryBase::level_, 
                                               SummaryPlotFactoryBase::gran_, 
                                               iter->first, 
                                               value );
  
}
void ApvTimingSummaryFactory::format ( ) [protected, virtual]