#include <DQM/SiStripCommissioningSummary/interface/SamplingSummaryFactory.h>
Protected Member Functions | |
void | extract (Iterator) |
void | format () |
Definition at line 6 of file SamplingSummaryFactory.h.
Definition at line 12 of file SamplingSummaryFactory.cc.
References SamplingAnalysis::error(), SummaryGenerator::fillMap(), sistrip::FINE_DELAY_ERROR, sistrip::FINE_DELAY_POS, SummaryPlotFactoryBase::generator_, SummaryPlotFactoryBase::gran_, SummaryPlotFactoryBase::level_, SamplingAnalysis::maximum(), sistrip::mlSummaryPlots_, SummaryPlotFactoryBase::mon_, and SiStripEnumsAndStrings::monitorable().
00012 { 00013 00014 SamplingAnalysis* anal = dynamic_cast<SamplingAnalysis*>( iter->second ); 00015 if ( !anal ) { return; } 00016 00017 if ( mon_ == sistrip::FINE_DELAY_POS ) { 00018 generator_->fillMap( level_, gran_, iter->first, anal->maximum() ); 00019 } else if ( mon_ == sistrip::FINE_DELAY_ERROR ) { 00020 generator_->fillMap( level_, gran_, iter->first, anal->error() ); 00021 } else { 00022 edm::LogWarning(mlSummaryPlots_) 00023 << "[SummaryPlotFactory::" << __func__ << "]" 00024 << " Unexpected monitorable: " 00025 << SiStripEnumsAndStrings::monitorable( SummaryPlotFactoryBase::mon_ ); 00026 return; 00027 } 00028 }
void SamplingSummaryFactory::format | ( | ) | [protected, virtual] |
Reimplemented from SummaryPlotFactory< CommissioningAnalysis * >.
Definition at line 32 of file SamplingSummaryFactory.cc.
References SummaryGenerator::axisLabel(), sistrip::FINE_DELAY_ERROR, sistrip::FINE_DELAY_POS, SummaryPlotFactoryBase::generator_, sistrip::mlSummaryPlots_, SummaryPlotFactoryBase::mon_, and SiStripEnumsAndStrings::monitorable().
00032 { 00033 00034 // Histogram formatting 00035 if ( mon_ == sistrip::FINE_DELAY_POS ) { 00036 generator_->axisLabel( "Delay [ns]" ); 00037 } else if ( mon_ == sistrip::FINE_DELAY_ERROR ) { 00038 generator_->axisLabel( "Uncertainty [ns]" ); 00039 } else { 00040 edm::LogWarning(mlSummaryPlots_) 00041 << "[SummaryPlotFactory::" << __func__ << "]" 00042 << " Unexpected SummaryHisto value:" 00043 << SiStripEnumsAndStrings::monitorable( SummaryPlotFactoryBase::mon_ ) ; 00044 } 00045 00046 }