#include <SummaryPlotFactory.h>
Public Member Functions | |
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, T > &data) |
Definition at line 12 of file SummaryPlotFactory.h.
void SummaryPlotFactory< T >::fill | ( | TH1 & | summary_histo | ) |
Reimplemented from SummaryPlotFactoryBase.
Definition at line 38 of file SummaryPlotFactory.cc.
References SummaryPlotFactoryBase::fill().
Referenced by SummaryPlotFactory< CommissioningAnalysis * >::fill().
{ // Some initialisation SummaryPlotFactoryBase::fill( summary_histo ); }
uint32_t SummaryPlotFactory< T >::init | ( | const sistrip::Monitorable & | mon, |
const sistrip::Presentation & | pres, | ||
const sistrip::View & | view, | ||
const std::string & | top_level_dir, | ||
const sistrip::Granularity & | gran, | ||
const std::map< uint32_t, T > & | data | ||
) |
Definition at line 10 of file SummaryPlotFactory.cc.
References SummaryGenerator::fillMap(), SummaryPlotFactoryBase::generator_, SummaryPlotFactoryBase::gran_, init, SummaryPlotFactoryBase::level_, SummaryGenerator::nBins(), and relativeConstraints::value.
Referenced by SummaryPlotFactory< CommissioningAnalysis * >::init().
{ // Some initialisation SummaryPlotFactoryBase::init( mon, pres, view, level, gran ); // Transfer appropriate monitorables info to generator object if ( !SummaryPlotFactoryBase::generator_ ) { return 0; } typename std::map<uint32_t,T>::const_iterator iter = data.begin(); for ( ; iter != data.end(); iter++ ) { static float value = static_cast<float>(iter->second); SummaryPlotFactoryBase::generator_->fillMap( SummaryPlotFactoryBase::level_, SummaryPlotFactoryBase::gran_, iter->first, value ); } return SummaryPlotFactoryBase::generator_->nBins(); }