CMS 3D CMS Logo

List of all members | Protected Member Functions
OptoScanSummaryFactory Class Reference

#include <OptoScanSummaryFactory.h>

Inheritance diagram for OptoScanSummaryFactory:
SummaryPlotFactory< CommissioningAnalysis *> SummaryPlotFactoryBase 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 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)
 
- 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 OptoScanSummaryFactory.h.

Member Function Documentation

◆ extract()

void OptoScanSummaryFactory::extract ( Iterator  iter)
overrideprotected

Definition at line 12 of file OptoScanSummaryFactory.cc.

References conversion_template_cfg::anal, relativeConstraints::error, SummaryGenerator::fillMap(), SummaryPlotFactoryBase::generator_, SummaryPlotFactoryBase::gran_, sistrip::invalid_, SummaryPlotFactoryBase::level_, sistrip::mlSummaryPlots_, SummaryPlotFactoryBase::mon_, SiStripEnumsAndStrings::monitorable(), sistrip::OPTO_SCAN_BASELINE_LIFT_OFF, sistrip::OPTO_SCAN_LASER_THRESHOLD, sistrip::OPTO_SCAN_LINK_NOISE, sistrip::OPTO_SCAN_LLD_BIAS_SETTING, sistrip::OPTO_SCAN_LLD_GAIN_SETTING, sistrip::OPTO_SCAN_MEASURED_GAIN, sistrip::OPTO_SCAN_TICK_HEIGHT, sistrip::OPTO_SCAN_ZERO_LIGHT_LEVEL, and sistrip::valid_.

12  {
13  OptoScanAnalysis* anal = dynamic_cast<OptoScanAnalysis*>(iter->second);
14  if (!anal) {
15  return;
16  }
17 
18  uint16_t igain = anal->gain();
19  if (igain > sistrip::valid_) {
20  return;
21  }
22 
23  float value = 1. * sistrip::invalid_;
24  float error = 1. * sistrip::invalid_;
25 
27  value = igain;
29  value = anal->bias()[igain];
31  value = anal->measGain()[igain];
33  value = anal->zeroLight()[igain];
35  value = anal->linkNoise()[igain];
37  value = anal->liftOff()[igain];
39  value = anal->threshold()[igain];
41  value = anal->tickHeight()[igain];
42  } else {
43  edm::LogWarning(mlSummaryPlots_) << "[SummaryPlotFactory::" << __func__ << "]"
44  << " Unexpected monitorable: "
46  return;
47  }
48 
51 }
Histogram-based analysis for opto bias/gain scan.
static std::string monitorable(const sistrip::Monitorable &)
sistrip::Monitorable mon_
static const uint16_t valid_
Definition: Constants.h:17
void fillMap(const std::string &top_level_dir, const sistrip::Granularity &, const uint32_t &key, const float &value, const float &error=0.)
Definition: value.py:1
sistrip::Granularity gran_
static const char mlSummaryPlots_[]
SummaryGenerator * generator_
static const uint16_t invalid_
Definition: Constants.h:16
Log< level::Warning, false > LogWarning

◆ format()

void OptoScanSummaryFactory::format ( )
overrideprotected

Definition at line 55 of file OptoScanSummaryFactory.cc.

References sistrip::mlSummaryPlots_, SummaryPlotFactoryBase::mon_, SiStripEnumsAndStrings::monitorable(), sistrip::OPTO_SCAN_BASELINE_LIFT_OFF, sistrip::OPTO_SCAN_LASER_THRESHOLD, sistrip::OPTO_SCAN_LINK_NOISE, sistrip::OPTO_SCAN_LLD_BIAS_SETTING, sistrip::OPTO_SCAN_LLD_GAIN_SETTING, sistrip::OPTO_SCAN_MEASURED_GAIN, sistrip::OPTO_SCAN_TICK_HEIGHT, and sistrip::OPTO_SCAN_ZERO_LIGHT_LEVEL.

55  {
64  } else {
65  edm::LogWarning(mlSummaryPlots_) << "[SummaryPlotFactory::" << __func__ << "]"
66  << " Unexpected SummaryHisto value:"
68  }
69 }
static std::string monitorable(const sistrip::Monitorable &)
sistrip::Monitorable mon_
static const char mlSummaryPlots_[]
Log< level::Warning, false > LogWarning