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

◆ extract()

void SamplingSummaryFactory::extract ( Iterator  iter)
overrideprotectedvirtual

Reimplemented from SummaryPlotFactory< CommissioningAnalysis * >.

Definition at line 12 of file SamplingSummaryFactory.cc.

12  {
13  SamplingAnalysis* anal = dynamic_cast<SamplingAnalysis*>(iter->second);
14  if (!anal) {
15  return;
16  }
17 
19  generator_->fillMap(level_, gran_, iter->first, anal->maximum());
20  } else if (mon_ == sistrip::FINE_DELAY_ERROR) {
21  generator_->fillMap(level_, gran_, iter->first, anal->error());
22  } else {
23  edm::LogWarning(mlSummaryPlots_) << "[SummaryPlotFactory::" << __func__ << "]"
24  << " Unexpected monitorable: "
26  return;
27  }
28 }

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

◆ format()

void SamplingSummaryFactory::format ( )
overrideprotectedvirtual

Reimplemented from SummaryPlotFactory< CommissioningAnalysis * >.

Definition at line 32 of file SamplingSummaryFactory.cc.

32  {
33  // Histogram formatting
35  generator_->axisLabel("Delay [ns]");
36  } else if (mon_ == sistrip::FINE_DELAY_ERROR) {
37  generator_->axisLabel("Uncertainty [ns]");
38  } else {
39  edm::LogWarning(mlSummaryPlots_) << "[SummaryPlotFactory::" << __func__ << "]"
40  << " Unexpected SummaryHisto value:"
42  }
43 }

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

SummaryGenerator::fillMap
void fillMap(const std::string &top_level_dir, const sistrip::Granularity &, const uint32_t &key, const float &value, const float &error=0.)
Definition: SummaryGenerator.cc:222
sistrip::FINE_DELAY_POS
Definition: ConstantsForMonitorable.h:292
SamplingAnalysis
Analysis for latency run.
Definition: SamplingAnalysis.h:17
SummaryPlotFactoryBase::mon_
sistrip::Monitorable mon_
Definition: SummaryPlotFactoryBase.h:25
sistrip::FINE_DELAY_ERROR
Definition: ConstantsForMonitorable.h:293
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition: MessageLogger.h:122
SummaryPlotFactoryBase::level_
std::string level_
Definition: SummaryPlotFactoryBase.h:28
SummaryPlotFactoryBase::generator_
SummaryGenerator * generator_
Definition: SummaryPlotFactoryBase.h:32
SummaryGenerator::axisLabel
void axisLabel(const std::string &)
Definition: SummaryGenerator.h:135
SiStripEnumsAndStrings::monitorable
static std::string monitorable(const sistrip::Monitorable &)
Definition: SiStripEnumsAndStrings.cc:547
SummaryPlotFactoryBase::gran_
sistrip::Granularity gran_
Definition: SummaryPlotFactoryBase.h:29
sistrip::mlSummaryPlots_
static const char mlSummaryPlots_[]
Definition: ConstantsForLogger.h:26
conversion_template_cfg.anal
anal
Definition: conversion_template_cfg.py:16