CMS 3D CMS Logo

Protected Member Functions

SamplingSummaryFactory Class Reference

#include <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, virtual]

Reimplemented from SummaryPlotFactory< CommissioningAnalysis * >.

Definition at line 12 of file SamplingSummaryFactory.cc.

References SamplingAnalysis::error(), sistrip::FINE_DELAY_ERROR, sistrip::FINE_DELAY_POS, SamplingAnalysis::maximum(), sistrip::mlSummaryPlots_, SummaryPlotFactoryBase::mon_, and SiStripEnumsAndStrings::monitorable().

                                                    {

  SamplingAnalysis* anal = dynamic_cast<SamplingAnalysis*>( iter->second );
  if ( !anal ) { return; }

  if ( mon_ == sistrip::FINE_DELAY_POS ) { 
    generator_->fillMap( level_, gran_, iter->first, anal->maximum() ); 
  } else if ( mon_ == sistrip::FINE_DELAY_ERROR ) { 
    generator_->fillMap( level_, gran_, iter->first, anal->error() ); 
  } else {
    edm::LogWarning(mlSummaryPlots_)
        << "[SummaryPlotFactory::" << __func__ << "]"
        << " Unexpected monitorable: "
        << SiStripEnumsAndStrings::monitorable( SummaryPlotFactoryBase::mon_ );
    return;
  }
}
void SamplingSummaryFactory::format ( ) [protected, virtual]

Reimplemented from SummaryPlotFactory< CommissioningAnalysis * >.

Definition at line 32 of file SamplingSummaryFactory.cc.

References sistrip::FINE_DELAY_ERROR, sistrip::FINE_DELAY_POS, sistrip::mlSummaryPlots_, SummaryPlotFactoryBase::mon_, and SiStripEnumsAndStrings::monitorable().

                                    {

  // Histogram formatting
  if ( mon_ == sistrip::FINE_DELAY_POS ) {
    generator_->axisLabel( "Delay [ns]" );
  } else if ( mon_ == sistrip::FINE_DELAY_ERROR ) { 
    generator_->axisLabel( "Uncertainty [ns]" );
  } else { 
    edm::LogWarning(mlSummaryPlots_)
         << "[SummaryPlotFactory::" << __func__ << "]"
         <<  " Unexpected SummaryHisto value:"
         << SiStripEnumsAndStrings::monitorable( SummaryPlotFactoryBase::mon_ ) ;
  } 
  
}