CMS 3D CMS Logo

SamplingSummaryFactory Class Reference

#include <DQM/SiStripCommissioningSummary/interface/SamplingSummaryFactory.h>

Inheritance diagram for SamplingSummaryFactory:

SummaryPlotFactory< CommissioningAnalysis * > SummaryPlotFactoryBase

List of all members.

Protected Member Functions

void extract (Iterator)
void format ()


Detailed Description

Definition at line 6 of file SamplingSummaryFactory.h.


Member Function Documentation

void SamplingSummaryFactory::extract ( Iterator  iter  )  [protected]

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 }


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:31:14 2009 for CMSSW by  doxygen 1.5.4