CMS 3D CMS Logo

List of all members | Protected Member Functions
VpspScanSummaryFactory Class Reference

#include <VpspScanSummaryFactory.h>

Inheritance diagram for VpspScanSummaryFactory:
SummaryPlotFactory< CommissioningAnalysis * > 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 Types inherited from SummaryPlotFactory< CommissioningAnalysis * >
typedef std::map< uint32_t, CommissioningAnalysis * >::const_iterator Iterator
 
- 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)
 
 SummaryPlotFactory ()
 
virtual ~SummaryPlotFactory ()
 
- 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

void VpspScanSummaryFactory::extract ( Iterator  iter)
overrideprotectedvirtual

Reimplemented from SummaryPlotFactory< CommissioningAnalysis * >.

Definition at line 12 of file VpspScanSummaryFactory.cc.

References VpspScanAnalysis::adcLevel(), VpspScanAnalysis::bottomLevel(), relativeConstraints::error, SummaryGenerator::fillMap(), SummaryPlotFactoryBase::generator_, SummaryPlotFactoryBase::gran_, sistrip::invalid_, SummaryPlotFactoryBase::level_, sistrip::mlSummaryPlots_, SummaryPlotFactoryBase::mon_, SiStripEnumsAndStrings::monitorable(), VpspScanAnalysis::topLevel(), relativeConstraints::value, VpspScanAnalysis::vpsp(), 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 
14  VpspScanAnalysis* anal = dynamic_cast<VpspScanAnalysis*>( iter->second );
15  if ( !anal ) { return; }
16 
17  std::vector<float> value( 2, 1. * sistrip::invalid_ );
18  std::vector<float> error( 2, 1. * sistrip::invalid_ );
19 
20  bool two = true;
22  value[0] = 1. * anal->vpsp()[0];
23  value[1] = 1. * anal->vpsp()[1];
24  } else if ( mon_ == sistrip::VPSP_SCAN_APV0_SETTING ) {
25  value[0] = 1. * anal->vpsp()[0];
26  two = false;
27  } else if ( mon_ == sistrip::VPSP_SCAN_APV1_SETTING ) {
28  value[0] = 1. * anal->vpsp()[1];
29  two = false;
30  } else if ( mon_ == sistrip::VPSP_SCAN_ADC_LEVEL ) {
31  value[0] = 1. * anal->adcLevel()[0];
32  value[1] = 1. * anal->adcLevel()[1];
33  } else if ( mon_ == sistrip::VPSP_SCAN_DIGITAL_HIGH ) {
34  value[0] = 1. * anal->topLevel()[0];
35  value[1] = 1. * anal->topLevel()[1];
36  } else if ( mon_ == sistrip::VPSP_SCAN_DIGITAL_LOW ) {
37  value[0] = 1. * anal->bottomLevel()[0];
38  value[1] = 1. * anal->bottomLevel()[1];
39  } else {
41  << "[SummaryPlotFactory::" << __func__ << "]"
42  << " Unexpected monitorable: "
44  return;
45  }
46 
49  iter->first,
50  value[0],
51  error[0] );
52 
53  if ( two ) {
56  iter->first,
57  value[1],
58  error[1] );
59  }
60 
61 }
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.)
const VInt & topLevel() const
Definition: value.py:1
sistrip::Granularity gran_
const VInt & vpsp() const
Histogram-based analysis for VPSP scan.
static const char mlSummaryPlots_[]
const VInt & adcLevel() const
SummaryGenerator * generator_
static const uint16_t invalid_
Definition: Constants.h:16
const VInt & bottomLevel() const
void VpspScanSummaryFactory::format ( )
overrideprotectedvirtual

Reimplemented from SummaryPlotFactory< CommissioningAnalysis * >.

Definition at line 65 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.