CMS 3D CMS Logo

List of all members | Protected Member Functions
SamplingSummaryFactory Class Reference

#include <SamplingSummaryFactory.h>

Inheritance diagram for SamplingSummaryFactory:
SummaryPlotFactory< CommissioningAnalysis * > SummaryPlotFactoryBase

Protected Member Functions

void extract (Iterator) override
 
void format () override
 
- Protected Member Functions inherited from SummaryPlotFactoryBase
void fill (TH1 &summary_histo)
 
void init (const sistrip::Monitorable &, const sistrip::Presentation &, const sistrip::View &, const std::string &top_level_dir, const sistrip::Granularity &)
 
 SummaryPlotFactoryBase ()
 
 ~SummaryPlotFactoryBase ()
 

Additional Inherited Members

- Public Types inherited from SummaryPlotFactory< CommissioningAnalysis * >
typedef std::map< uint32_t, CommissioningAnalysis * >::const_iterator Iterator
 
- Public Member Functions inherited from SummaryPlotFactory< CommissioningAnalysis * >
void fill (TH1 &summary_histo)
 
uint32_t init (const sistrip::Monitorable &, const sistrip::Presentation &, const sistrip::View &, const std::string &top_level_dir, const sistrip::Granularity &, const std::map< uint32_t, CommissioningAnalysis * > &data)
 
 SummaryPlotFactory ()
 
virtual ~SummaryPlotFactory ()
 
- Protected Attributes inherited from SummaryPlotFactoryBase
SummaryGeneratorgenerator_
 
sistrip::Granularity gran_
 
std::string level_
 
sistrip::Monitorable mon_
 
sistrip::Presentation pres_
 
sistrip::View view_
 

Detailed Description

Definition at line 6 of file SamplingSummaryFactory.h.

Member Function Documentation

void SamplingSummaryFactory::extract ( Iterator  iter)
overrideprotectedvirtual

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().

12  {
13 
14  SamplingAnalysis* anal = dynamic_cast<SamplingAnalysis*>( iter->second );
15  if ( !anal ) { return; }
16 
17  if ( mon_ == sistrip::FINE_DELAY_POS ) {
18  generator_->fillMap( level_, gran_, iter->first, anal->maximum() );
19  } else if ( mon_ == sistrip::FINE_DELAY_ERROR ) {
20  generator_->fillMap( level_, gran_, iter->first, anal->error() );
21  } else {
23  << "[SummaryPlotFactory::" << __func__ << "]"
24  << " Unexpected monitorable: "
26  return;
27  }
28 }
static std::string monitorable(const sistrip::Monitorable &)
Analysis for latency run.
sistrip::Monitorable mon_
void fillMap(const std::string &top_level_dir, const sistrip::Granularity &, const uint32_t &key, const float &value, const float &error=0.)
const float & error() const
sistrip::Granularity gran_
static const char mlSummaryPlots_[]
SummaryGenerator * generator_
const float & maximum() const
void SamplingSummaryFactory::format ( )
overrideprotectedvirtual

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().

32  {
33 
34  // Histogram formatting
35  if ( mon_ == sistrip::FINE_DELAY_POS ) {
36  generator_->axisLabel( "Delay [ns]" );
37  } else if ( mon_ == sistrip::FINE_DELAY_ERROR ) {
38  generator_->axisLabel( "Uncertainty [ns]" );
39  } else {
41  << "[SummaryPlotFactory::" << __func__ << "]"
42  << " Unexpected SummaryHisto value:"
44  }
45 
46 }
static std::string monitorable(const sistrip::Monitorable &)
sistrip::Monitorable mon_
static const char mlSummaryPlots_[]
SummaryGenerator * generator_
void axisLabel(const std::string &)