CMS 3D CMS Logo

OptoScanSummaryFactory.cc
Go to the documentation of this file.
5 #include <iostream>
6 #include <sstream>
7 
8 using namespace sistrip;
9 
10 // -----------------------------------------------------------------------------
11 //
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 }
52 
53 // -----------------------------------------------------------------------------
54 //
64  } else {
65  edm::LogWarning(mlSummaryPlots_) << "[SummaryPlotFactory::" << __func__ << "]"
66  << " Unexpected SummaryHisto value:"
68  }
69 }
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
MessageLogger.h
SummaryPlotFactoryBase::mon_
sistrip::Monitorable mon_
Definition: SummaryPlotFactoryBase.h:25
OptoScanSummaryFactory::format
void format() override
Definition: OptoScanSummaryFactory.cc:55
OptoScanSummaryFactory.h
sistrip::OPTO_SCAN_LLD_BIAS_SETTING
Definition: ConstantsForMonitorable.h:234
Iterator
Definition: DQMStoreStats.h:94
relativeConstraints.error
error
Definition: relativeConstraints.py:53
SummaryPlotFactoryBase::level_
std::string level_
Definition: SummaryPlotFactoryBase.h:28
OptoScanSummaryFactory::extract
void extract(Iterator) override
Definition: OptoScanSummaryFactory.cc:12
sistrip::valid_
static const uint16_t valid_
Definition: Constants.h:17
sistrip::OPTO_SCAN_LASER_THRESHOLD
Definition: ConstantsForMonitorable.h:239
sistrip::OPTO_SCAN_TICK_HEIGHT
Definition: ConstantsForMonitorable.h:240
edm::LogWarning
Definition: MessageLogger.h:141
OptoScanAnalysis.h
SummaryPlotFactoryBase::generator_
SummaryGenerator * generator_
Definition: SummaryPlotFactoryBase.h:32
sistrip::OPTO_SCAN_LLD_GAIN_SETTING
Definition: ConstantsForMonitorable.h:233
value
Definition: value.py:1
sistrip::invalid_
static const uint16_t invalid_
Definition: Constants.h:16
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
SiStripEnumsAndStrings.h
OptoScanAnalysis
Histogram-based analysis for opto bias/gain scan.
Definition: OptoScanAnalysis.h:15
sistrip::OPTO_SCAN_ZERO_LIGHT_LEVEL
Definition: ConstantsForMonitorable.h:236
sistrip::OPTO_SCAN_BASELINE_LIFT_OFF
Definition: ConstantsForMonitorable.h:238
sistrip::OPTO_SCAN_MEASURED_GAIN
Definition: ConstantsForMonitorable.h:235
sistrip
sistrip classes
Definition: SiStripQualityHelpers.h:14
conversion_template_cfg.anal
anal
Definition: conversion_template_cfg.py:16
sistrip::OPTO_SCAN_LINK_NOISE
Definition: ConstantsForMonitorable.h:237