test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SamplingSummaryFactory.cc
Go to the documentation of this file.
5 #include <iostream>
6 #include <sstream>
7 
8 using namespace sistrip;
9 
10 // -----------------------------------------------------------------------------
11 //
13 
14  SamplingAnalysis* anal = dynamic_cast<SamplingAnalysis*>( iter->second );
15  if ( !anal ) { return; }
16 
17  if ( mon_ == sistrip::FINE_DELAY_POS ) {
18  generator_->fillMap( level_, gran_, iter->first, anal->maximum() );
19  } else if ( mon_ == sistrip::FINE_DELAY_ERROR ) {
20  generator_->fillMap( level_, gran_, iter->first, anal->error() );
21  } else {
23  << "[SummaryPlotFactory::" << __func__ << "]"
24  << " Unexpected monitorable: "
26  return;
27  }
28 }
29 
30 //------------------------------------------------------------------------------
31 //
33 
34  // Histogram formatting
35  if ( mon_ == sistrip::FINE_DELAY_POS ) {
36  generator_->axisLabel( "Delay [ns]" );
37  } else if ( mon_ == sistrip::FINE_DELAY_ERROR ) {
38  generator_->axisLabel( "Uncertainty [ns]" );
39  } else {
41  << "[SummaryPlotFactory::" << __func__ << "]"
42  << " Unexpected SummaryHisto value:"
44  }
45 
46 }
47 
static std::string monitorable(const sistrip::Monitorable &)
Analysis for latency run.
sistrip::Monitorable mon_
const float & error() const
static const char mlSummaryPlots_[]
const float & maximum() const