: Fills summary histograms. More...
#include <SummaryGenerator.h>
Public Types | |
typedef std::vector< Data > | BinData |
typedef std::pair< float, float > | Data |
typedef std::map< std::string, BinData > | HistoData |
Public Member Functions | |
void | axisLabel (const std::string &) |
void | clearMap () |
void | fillMap (const std::string &top_level_dir, const sistrip::Granularity &, const uint32_t &key, const float &value, const float &error=0.) |
void | format (const sistrip::RunType &, const sistrip::Monitorable &, const sistrip::Presentation &, const sistrip::View &, const std::string &directory, const sistrip::Granularity &, TH1 &) |
void | histo1D (TH1 &) |
void | histo2DScatter (TH1 &) |
void | histo2DSum (TH1 &) |
const std::string & | myName () const |
uint32_t | nBins () const |
void | printMap () |
void | profile1D (TH1 &) |
uint32_t | size () const |
SummaryGenerator (std::string name) | |
virtual | ~SummaryGenerator () |
Static Public Member Functions | |
static TH1 * | histogram (const sistrip::Presentation &, const uint32_t &xbins) |
static SummaryGenerator * | instance (const sistrip::View &) |
static std::string | name (const sistrip::RunType &, const sistrip::Monitorable &, const sistrip::Presentation &, const sistrip::View &, const std::string &directory) |
Protected Member Functions | |
virtual void | fill (const std::string &top_level_dir, const sistrip::Granularity &, const uint32_t &key, const float &value, const float &error) |
Protected Attributes | |
float | entries_ |
std::string | label_ |
HistoData | map_ |
float | max_ |
float | min_ |
Private Attributes | |
std::string | myName_ |
: Fills summary histograms.
Definition at line 19 of file SummaryGenerator.h.
typedef std::vector<Data> SummaryGenerator::BinData |
Definition at line 30 of file SummaryGenerator.h.
typedef std::pair<float,float> SummaryGenerator::Data |
Definition at line 29 of file SummaryGenerator.h.
typedef std::map<std::string,BinData> SummaryGenerator::HistoData |
Definition at line 31 of file SummaryGenerator.h.
SummaryGenerator::SummaryGenerator | ( | std::string | name | ) |
Definition at line 16 of file SummaryGenerator.cc.
|
inlinevirtual |
Definition at line 26 of file SummaryGenerator.h.
|
inline |
Optionally set axis label
Definition at line 142 of file SummaryGenerator.h.
References diffTwoXMLs::label, and label_.
Referenced by SummaryPlotFactory< FedCablingAnalysis * >::fill(), SummaryHistogramFactory< DaqScopeModeAnalysis >::fill(), FastFedCablingSummaryFactory::format(), and ApvTimingSummaryFactory::format().
void SummaryGenerator::clearMap | ( | ) |
Clear the map that is used to generate the histogram(s).
Definition at line 195 of file SummaryGenerator.cc.
References HistoData::clear(), entries_, sistrip::invalid_, map_, max_, and min_.
Referenced by SummaryHistogramFactory< DaqScopeModeAnalysis >::extract(), SummaryHistogramFactory< FedTimingAnalysis >::extract(), and SummaryPlotFactoryBase::init().
|
protectedvirtual |
Fills the map used to generate the histogram.
Reimplemented in SummaryGeneratorControlView, and SummaryGeneratorReadoutView.
Definition at line 258 of file SummaryGenerator.cc.
References LogTrace, and sistrip::mlSummaryPlots_.
Referenced by fillMap().
void SummaryGenerator::fillMap | ( | const std::string & | top_level_dir, |
const sistrip::Granularity & | gran, | ||
const uint32_t & | key, | ||
const float & | value, | ||
const float & | error = 0. |
||
) |
Fills the map that is used to generate the histogram(s).
Definition at line 234 of file SummaryGenerator.cc.
References fill(), max_, min_, sistrip::valid_, and relativeConstraints::value.
Referenced by ApvTimingSummaryFactory::extract(), CalibrationSummaryFactory::extract(), FastFedCablingSummaryFactory::extract(), PedsOnlySummaryFactory::extract(), OptoScanSummaryFactory::extract(), PedestalsSummaryFactory::extract(), PedsFullNoiseSummaryFactory::extract(), NoiseSummaryFactory::extract(), VpspScanSummaryFactory::extract(), SummaryHistogramFactory< FedTimingAnalysis >::extract(), SummaryHistogramFactory< DaqScopeModeAnalysis >::extract(), SummaryPlotFactory< FedCablingAnalysis * >::init(), and SummaryPlotFactory< T >::init().
void SummaryGenerator::format | ( | const sistrip::RunType & | run_type, |
const sistrip::Monitorable & | mon, | ||
const sistrip::Presentation & | pres, | ||
const sistrip::View & | view, | ||
const std::string & | directory, | ||
const sistrip::Granularity & | gran, | ||
TH1 & | summary_histo | ||
) |
Some generic formatting of histogram.
Definition at line 117 of file SummaryGenerator.cc.
References createBeamHaloJobs::directory, entries_, SiStripEnumsAndStrings::granularity(), sistrip::HISTO_1D, sistrip::HISTO_2D_SCATTER, sistrip::HISTO_2D_SUM, label_, sistrip::PROFILE_1D, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by SummaryPlotFactoryBase::fill(), SummaryHistogramFactory< DaqScopeModeAnalysis >::fill(), and SummaryHistogramFactory< FedTimingAnalysis >::fill().
void SummaryGenerator::histo1D | ( | TH1 & | his | ) |
Creates simple 1D histogram of the parameter values.
Definition at line 271 of file SummaryGenerator.cc.
References entries_, timingPdfMaker::histo, cuy::ii, map_, max_, min_, and sistrip::mlSummaryPlots_.
Referenced by SummaryPlotFactoryBase::fill(), SummaryHistogramFactory< DaqScopeModeAnalysis >::fill(), and SummaryHistogramFactory< FedTimingAnalysis >::fill().
void SummaryGenerator::histo2DScatter | ( | TH1 & | his | ) |
Creates a 2D scatter histogram, with individual values of the parameter (y-axis) binned as a function of position within the given logical structure, which is view-dependent (x-axis).
Definition at line 361 of file SummaryGenerator.cc.
References newFWLiteAna::bin, entries_, timingPdfMaker::histo, cuy::ii, map_, and sistrip::mlSummaryPlots_.
Referenced by SummaryPlotFactoryBase::fill(), SummaryHistogramFactory< DaqScopeModeAnalysis >::fill(), and SummaryHistogramFactory< FedTimingAnalysis >::fill().
void SummaryGenerator::histo2DSum | ( | TH1 & | his | ) |
Creates a 1D histogram, with the weighted sum of the parameter (y-axis) binned as a function of position within the given logical structure, which is view-dependent (x-axis).
Definition at line 321 of file SummaryGenerator.cc.
References newFWLiteAna::bin, entries_, timingPdfMaker::histo, cuy::ii, map_, and sistrip::mlSummaryPlots_.
Referenced by SummaryPlotFactoryBase::fill(), SummaryHistogramFactory< DaqScopeModeAnalysis >::fill(), and SummaryHistogramFactory< FedTimingAnalysis >::fill().
|
static |
Creates instance of derived class based on view parameter.
Definition at line 83 of file SummaryGenerator.cc.
References sistrip::HISTO_1D, sistrip::HISTO_2D_SCATTER, sistrip::HISTO_2D_SUM, LogTrace, sistrip::mlSummaryPlots_, SiStripEnumsAndStrings::presentation(), sistrip::PROFILE_1D, and edmLumisInFiles::summary.
|
static |
Creates instance of derived class based on view parameter.
Definition at line 29 of file SummaryGenerator.cc.
References sistrip::CONTROL_VIEW, python.IdGenerator::generator, LogTrace, sistrip::mlSummaryPlots_, myName(), sistrip::READOUT_VIEW, and SiStripEnumsAndStrings::view().
Referenced by SummaryPlotFactoryBase::init(), SummaryHistogramFactory< FedTimingAnalysis >::init(), SummaryHistogramFactory< DaqScopeModeAnalysis >::init(), and SummaryHistogramFactory< T >::init().
|
inline |
Returns name of generator object.
Definition at line 140 of file SummaryGenerator.h.
References myName_.
Referenced by instance().
|
static |
Constructs the summary histogram name.
Definition at line 57 of file SummaryGenerator.cc.
References SiStripEnumsAndStrings::monitorable(), SiStripEnumsAndStrings::presentation(), SiStripEnumsAndStrings::runType(), sistrip::sep_, contentValuesCheck::ss, sistrip::summaryHisto_, and SiStripEnumsAndStrings::view().
Referenced by cuy.divideElement::__init__(), cuy.plotElement::__init__(), cuy.additionElement::__init__(), cuy.superimposeElement::__init__(), cuy.graphElement::__init__(), config.CFG::__str__(), validation.Sample::digest(), CommissioningHistograms::histogram(), VIDSelectorBase.VIDSelectorBase::initialize(), and Vispa.Views.PropertyView.Property::valueChanged().
|
inline |
Retrieve size of map (ie, number of bins).
Definition at line 141 of file SummaryGenerator.h.
References map_.
Referenced by SummaryPlotFactoryBase::fill(), SummaryPlotFactory< FedCablingAnalysis * >::init(), SummaryPlotFactory< T >::init(), SummaryPlotFactory< CommissioningAnalysis * >::init(), and size().
void SummaryGenerator::printMap | ( | ) |
Print contents of map used to generate the histogram(s).
Definition at line 206 of file SummaryGenerator.cc.
References LogTrace, map_, max_, min_, sistrip::mlSummaryPlots_, and contentValuesCheck::ss.
void SummaryGenerator::profile1D | ( | TH1 & | his | ) |
Creates a profile histogram, with the mean and spread of the parameter (y-axis) binned as a function of position within the given logical structure, which is view-dependent (x-axis).
Definition at line 401 of file SummaryGenerator.cc.
References newFWLiteAna::bin, entries_, timingPdfMaker::histo, cuy::ii, map_, and sistrip::mlSummaryPlots_.
Referenced by SummaryPlotFactoryBase::fill(), SummaryHistogramFactory< DaqScopeModeAnalysis >::fill(), and SummaryHistogramFactory< FedTimingAnalysis >::fill().
|
inline |
Definition at line 98 of file SummaryGenerator.h.
References nBins().
Referenced by SummaryHistogramFactory< DaqScopeModeAnalysis >::extract(), SummaryHistogramFactory< FedTimingAnalysis >::extract(), SummaryHistogramFactory< FedTimingAnalysis >::fill(), and SummaryHistogramFactory< DaqScopeModeAnalysis >::fill().
|
protected |
Definition at line 124 of file SummaryGenerator.h.
Referenced by clearMap(), SummaryGeneratorReadoutView::fill(), SummaryGeneratorControlView::fill(), format(), histo1D(), histo2DScatter(), histo2DSum(), and profile1D().
|
protected |
Definition at line 130 of file SummaryGenerator.h.
Referenced by Mixins._Labelable::_findDependencies(), axisLabel(), format(), and Mixins._Labelable::setLabel().
|
protected |
A map designed to holds a set of values. The map containing these values should be indexed by a key.
Definition at line 122 of file SummaryGenerator.h.
Referenced by clearMap(), SummaryGeneratorControlView::fill(), SummaryGeneratorReadoutView::fill(), histo1D(), histo2DScatter(), histo2DSum(), nBins(), printMap(), and profile1D().
|
protected |
Definition at line 126 of file SummaryGenerator.h.
Referenced by clearMap(), fillMap(), histo1D(), and printMap().
|
protected |
Definition at line 128 of file SummaryGenerator.h.
Referenced by clearMap(), fillMap(), histo1D(), and printMap().
|
private |
Definition at line 136 of file SummaryGenerator.h.
Referenced by myName().