#include <ApvTimingSummaryFactory.h>
Protected Member Functions | |
void | extract (Iterator) |
void | format () |
Definition at line 6 of file ApvTimingSummaryFactory.h.
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] |
Reimplemented from SummaryPlotFactory< CommissioningAnalysis * >.
Definition at line 48 of file ApvTimingSummaryFactory.cc.
References sistrip::APV_TIMING_BASE, sistrip::APV_TIMING_DELAY, sistrip::APV_TIMING_ERROR, sistrip::APV_TIMING_HEIGHT, sistrip::APV_TIMING_MAX_TIME, sistrip::APV_TIMING_PEAK, sistrip::APV_TIMING_TIME, SummaryGenerator::axisLabel(), SummaryPlotFactoryBase::generator_, sistrip::mlSummaryPlots_, SummaryPlotFactoryBase::mon_, and SiStripEnumsAndStrings::monitorable().
{ if ( SummaryPlotFactoryBase::mon_ == sistrip::APV_TIMING_TIME ) { SummaryPlotFactoryBase::generator_->axisLabel( "Timing delay [ns]" ); } else if ( SummaryPlotFactoryBase::mon_ == sistrip::APV_TIMING_MAX_TIME ) { } else if ( SummaryPlotFactoryBase::mon_ == sistrip::APV_TIMING_DELAY ) { } else if ( SummaryPlotFactoryBase::mon_ == sistrip::APV_TIMING_ERROR ) { } else if ( SummaryPlotFactoryBase::mon_ == sistrip::APV_TIMING_BASE ) { } else if ( SummaryPlotFactoryBase::mon_ == sistrip::APV_TIMING_PEAK ) { } else if ( SummaryPlotFactoryBase::mon_ == sistrip::APV_TIMING_HEIGHT ) { } else { edm::LogWarning(mlSummaryPlots_) << "[SummaryPlotFactory::" << __func__ << "]" << " Unexpected SummaryHisto value:" << SiStripEnumsAndStrings::monitorable( SummaryPlotFactoryBase::mon_ ); } }