CMS 3D CMS Logo

List of all members | Protected Member Functions
VpspScanSummaryFactory Class Reference

#include <VpspScanSummaryFactory.h>

Inheritance diagram for VpspScanSummaryFactory:
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 VpspScanSummaryFactory.h.

Member Function Documentation

◆ extract()

void VpspScanSummaryFactory::extract ( Iterator  iter)
overrideprotected

Definition at line 12 of file VpspScanSummaryFactory.cc.

References conversion_template_cfg::anal, relativeConstraints::error, SummaryGenerator::fillMap(), SummaryPlotFactoryBase::generator_, SummaryPlotFactoryBase::gran_, sistrip::invalid_, SummaryPlotFactoryBase::level_, sistrip::mlSummaryPlots_, SummaryPlotFactoryBase::mon_, SiStripEnumsAndStrings::monitorable(), SiPixelPI::two, relativeConstraints::value, sistrip::VPSP_SCAN_ADC_LEVEL, sistrip::VPSP_SCAN_APV0_SETTING, sistrip::VPSP_SCAN_APV1_SETTING, sistrip::VPSP_SCAN_APV_SETTINGS, sistrip::VPSP_SCAN_DIGITAL_HIGH, and sistrip::VPSP_SCAN_DIGITAL_LOW.

12  {
13  VpspScanAnalysis* anal = dynamic_cast<VpspScanAnalysis*>(iter->second);
14  if (!anal) {
15  return;
16  }
17 
18  std::vector<float> value(2, 1. * sistrip::invalid_);
19  std::vector<float> error(2, 1. * sistrip::invalid_);
20 
21  bool two = true;
23  value[0] = 1. * anal->vpsp()[0];
24  value[1] = 1. * anal->vpsp()[1];
25  } else if (mon_ == sistrip::VPSP_SCAN_APV0_SETTING) {
26  value[0] = 1. * anal->vpsp()[0];
27  two = false;
28  } else if (mon_ == sistrip::VPSP_SCAN_APV1_SETTING) {
29  value[0] = 1. * anal->vpsp()[1];
30  two = false;
31  } else if (mon_ == sistrip::VPSP_SCAN_ADC_LEVEL) {
32  value[0] = 1. * anal->adcLevel()[0];
33  value[1] = 1. * anal->adcLevel()[1];
34  } else if (mon_ == sistrip::VPSP_SCAN_DIGITAL_HIGH) {
35  value[0] = 1. * anal->topLevel()[0];
36  value[1] = 1. * anal->topLevel()[1];
37  } else if (mon_ == sistrip::VPSP_SCAN_DIGITAL_LOW) {
38  value[0] = 1. * anal->bottomLevel()[0];
39  value[1] = 1. * anal->bottomLevel()[1];
40  } else {
41  edm::LogWarning(mlSummaryPlots_) << "[SummaryPlotFactory::" << __func__ << "]"
42  << " Unexpected monitorable: "
44  return;
45  }
46 
49 
50  if (two) {
53  }
54 }
static std::string monitorable(const sistrip::Monitorable &)
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.)
Definition: value.py:1
sistrip::Granularity gran_
Histogram-based analysis for VPSP scan.
static const char mlSummaryPlots_[]
SummaryGenerator * generator_
static const uint16_t invalid_
Definition: Constants.h:16
Log< level::Warning, false > LogWarning

◆ format()

void VpspScanSummaryFactory::format ( )
overrideprotected

Definition at line 58 of file VpspScanSummaryFactory.cc.

References sistrip::mlSummaryPlots_, SummaryPlotFactoryBase::mon_, SiStripEnumsAndStrings::monitorable(), sistrip::VPSP_SCAN_ADC_LEVEL, sistrip::VPSP_SCAN_APV0_SETTING, sistrip::VPSP_SCAN_APV1_SETTING, sistrip::VPSP_SCAN_APV_SETTINGS, sistrip::VPSP_SCAN_DIGITAL_HIGH, and sistrip::VPSP_SCAN_DIGITAL_LOW.