CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 }
Histogram-based analysis for opto bias/gain scan.
const uint16_t & gain() const
static std::string monitorable(const sistrip::Monitorable &)
sistrip::Monitorable mon_
const VFloat & liftOff() const
const VFloat & linkNoise() const
static const uint16_t valid_
Definition: Constants.h:17
const VFloat & measGain() const
const VFloat & tickHeight() const
const VFloat & zeroLight() const
void fillMap(const std::string &top_level_dir, const sistrip::Granularity &, const uint32_t &key, const float &value, const float &error=0.)
sistrip::Granularity gran_
static const char mlSummaryPlots_[]
void extract(Iterator) override
const VInt & bias() const
SummaryGenerator * generator_
const VFloat & threshold() const
static const uint16_t invalid_
Definition: Constants.h:16
Log< level::Warning, false > LogWarning