CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Protected Member Functions
ApvTimingSummaryFactory Class Reference

#include <ApvTimingSummaryFactory.h>

Inheritance diagram for ApvTimingSummaryFactory:
SummaryPlotFactory< CommissioningAnalysis * > SummaryPlotFactoryBase

Protected Member Functions

void extract (Iterator)
 
void format ()
 
- 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 ApvTimingSummaryFactory.h.

Member Function Documentation

void ApvTimingSummaryFactory::extract ( Iterator  iter)
protectedvirtual

Reimplemented from SummaryPlotFactory< CommissioningAnalysis * >.

Definition at line 12 of file ApvTimingSummaryFactory.cc.

References sistrip::APV_TIMING_BASE, sistrip::APV_TIMING_DELAY, sistrip::APV_TIMING_HEIGHT, sistrip::APV_TIMING_MAX_TIME, sistrip::APV_TIMING_PEAK, sistrip::APV_TIMING_TIME, ApvTimingAnalysis::base(), ApvTimingAnalysis::delay(), SummaryGenerator::fillMap(), SummaryPlotFactoryBase::generator_, SummaryPlotFactoryBase::gran_, ApvTimingAnalysis::height(), sistrip::invalid_, SummaryPlotFactoryBase::level_, sistrip::mlSummaryPlots_, SummaryPlotFactoryBase::mon_, SiStripEnumsAndStrings::monitorable(), ApvTimingAnalysis::peak(), ApvTimingAnalysis::refTime(), ApvTimingAnalysis::time(), and relativeConstraints::value.

Referenced by BeautifulSoup.PageElement::_invert(), and BeautifulSoup.Tag::decompose().

12  {
13 
14  ApvTimingAnalysis* anal = dynamic_cast<ApvTimingAnalysis*>( iter->second );
15  if ( !anal ) { return; }
16 
17  float value = 1. * sistrip::invalid_;
18 
20  value = anal->time();
22  value = anal->refTime();
24  value = anal->delay();
26  value = anal->base();
28  value = anal->peak();
30  value = anal->height();
31  } else {
33  << "[SummaryPlotFactory::" << __func__ << "]"
34  << " Unexpected monitorable: "
36  return;
37  }
38 
41  iter->first,
42  value );
43 
44 }
static std::string monitorable(const sistrip::Monitorable &)
sistrip::Monitorable mon_
const float & refTime() const
const float & base() 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_
const float & peak() const
const float & time() const
const float & delay() const
static const char mlSummaryPlots_[]
SummaryGenerator * generator_
static const uint16_t invalid_
Definition: Constants.h:17
Analysis for timing run using APV tick marks.
const float & height() const
void ApvTimingSummaryFactory::format ( )
protectedvirtual

Reimplemented from SummaryPlotFactory< CommissioningAnalysis * >.

Definition at line 48 of file ApvTimingSummaryFactory.cc.

References sistrip::APV_TIMING_BASE, sistrip::APV_TIMING_DELAY, sistrip::APV_TIMING_ERROR, sistrip::APV_TIMING_HEIGHT, sistrip::APV_TIMING_MAX_TIME, sistrip::APV_TIMING_PEAK, sistrip::APV_TIMING_TIME, SummaryGenerator::axisLabel(), SummaryPlotFactoryBase::generator_, sistrip::mlSummaryPlots_, SummaryPlotFactoryBase::mon_, and SiStripEnumsAndStrings::monitorable().

48  {
49 
51  SummaryPlotFactoryBase::generator_->axisLabel( "Timing delay [ns]" );
58  } else {
60  << "[SummaryPlotFactory::" << __func__ << "]"
61  << " Unexpected SummaryHisto value:"
63  }
64 
65 }
static std::string monitorable(const sistrip::Monitorable &)
sistrip::Monitorable mon_
static const char mlSummaryPlots_[]
SummaryGenerator * generator_
void axisLabel(const std::string &)