CMS 3D CMS Logo

Public Member Functions

SummaryPlotFactory< T > Class Template Reference

#include <SummaryPlotFactory.h>

Inheritance diagram for SummaryPlotFactory< T >:
SummaryPlotFactoryBase

List of all members.

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)

Detailed Description

template<class T>
class SummaryPlotFactory< T >

Definition at line 12 of file SummaryPlotFactory.h.


Member Function Documentation

template<class T >
void SummaryPlotFactory< T >::fill ( TH1 &  summary_histo)

Reimplemented from SummaryPlotFactoryBase.

Definition at line 38 of file SummaryPlotFactory.cc.

References lumiContext::fill.

Referenced by SummaryPlotFactory< CommissioningAnalysis * >::fill().

                                                     {
  
  // Some initialisation
  SummaryPlotFactoryBase::fill( summary_histo );
  
}
template<class T >
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();
  
}