7 using namespace sistrip;
16 level_(sistrip::
root_),
21 <<
"[SummaryHistogramFactory::" << __func__ <<
"]";
29 if ( generator_ ) {
delete generator_; }
44 level_ = top_level_dir;
65 <<
" No data in monitorables std::map!";
72 <<
" NULL pointer to SummaryGenerator object!";
77 generator_->clearMap();
78 typename std::map<uint32_t,T>::const_iterator iter = data.begin();
79 for ( ; iter != data.end(); iter++ ) {
80 generator_->fillMap( level_,
83 static_cast<float>(iter->second) );
86 return generator_->size();
98 <<
" NULL pointer to SummaryGenerator object!";
103 if ( !(&summary_histo) ) {
105 <<
" NULL pointer to SummaryGenerator object!";
110 if ( !generator_->size() ) {
112 <<
" No data in the monitorables std::map!";
118 generator_->histo1D( summary_histo );
120 generator_->histo2DSum( summary_histo );
122 generator_->histo2DScatter( summary_histo );
124 generator_->profile1D( summary_histo );
uint32_t extract(const std::map< uint32_t, T > &data)
void init(const sistrip::Monitorable &, const sistrip::Presentation &, const sistrip::View &, const std::string &top_level_dir, const sistrip::Granularity &)
static SummaryGenerator * instance(const sistrip::View &)
~SummaryHistogramFactory()
void fill(TH1 &summary_histo)
static const char mlSummaryPlots_[]
SummaryHistogramFactory()
static const char root_[]