test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 
14  OptoScanAnalysis* anal = dynamic_cast<OptoScanAnalysis*>( iter->second );
15  if ( !anal ) { return; }
16 
17  uint16_t igain = anal->gain();
18  if ( igain > sistrip::valid_ ) { return; }
19 
20  float value = 1. * sistrip::invalid_;
21  float error = 1. * sistrip::invalid_;
22 
24  value = igain;
26  value = anal->bias()[igain];
28  value = anal->measGain()[igain];
30  value = anal->zeroLight()[igain];
32  value = anal->linkNoise()[igain];
34  value = anal->liftOff()[igain];
36  value = anal->threshold()[igain];
38  value = anal->tickHeight()[igain];
39  } else {
41  << "[SummaryPlotFactory::" << __func__ << "]"
42  << " Unexpected monitorable: "
44  return;
45 
46  }
47 
50  iter->first,
51  value,
52  error );
53 
54 }
55 
56 // -----------------------------------------------------------------------------
57 //
59 
68  } else {
70  << "[SummaryPlotFactory::" << __func__ << "]"
71  << " Unexpected SummaryHisto value:"
73  }
74 
75 }
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_[]
const VInt & bias() const
SummaryGenerator * generator_
const VFloat & threshold() const
static const uint16_t invalid_
Definition: Constants.h:16