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 conversion_template_cfg::anal, SamplingAnalysis::error(), sistrip::FINE_DELAY_ERROR, sistrip::FINE_DELAY_POS, SamplingAnalysis::maximum(), sistrip::mlSummaryPlots_, SummaryPlotFactoryBase::mon_, and SiStripEnumsAndStrings::monitorable().

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 }
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  // 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 }
static std::string monitorable(const sistrip::Monitorable &)
sistrip::Monitorable mon_
static const char mlSummaryPlots_[]
SummaryGenerator * generator_
void axisLabel(const std::string &)