: 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 28 of file SummaryGenerator.h.
typedef std::pair<float, float> SummaryGenerator::Data |
Definition at line 27 of file SummaryGenerator.h.
typedef std::map<std::string, BinData> SummaryGenerator::HistoData |
Definition at line 29 of file SummaryGenerator.h.
SummaryGenerator::SummaryGenerator | ( | std::string | name | ) |
Definition at line 16 of file SummaryGenerator.cc.
|
inlinevirtual |
Definition at line 24 of file SummaryGenerator.h.
|
inline |
Optionally set axis label
Definition at line 135 of file SummaryGenerator.h.
Referenced by SummaryPlotFactory< FedCablingAnalysis * >::fill(), DaqScopeModeSummaryFactory::format(), FastFedCablingSummaryFactory::format(), and ApvTimingSummaryFactory::format().
void SummaryGenerator::clearMap | ( | ) |
Clear the map that is used to generate the histogram(s).
Definition at line 184 of file SummaryGenerator.cc.
References HistoData::clear(), entries_, sistrip::invalid_, map_, max_, and min_.
Referenced by SummaryHistogramFactory< FedTimingAnalysis >::extract(), and SummaryPlotFactoryBase::init().
|
protectedvirtual |
Fills the map used to generate the histogram.
Reimplemented in SummaryGeneratorControlView, and SummaryGeneratorReadoutView.
Definition at line 250 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 222 of file SummaryGenerator.cc.
References relativeConstraints::error, fill(), max_, min_, sistrip::valid_, and relativeConstraints::value.
Referenced by ApvTimingSummaryFactory::extract(), CalibrationScanSummaryFactory::extract(), DaqScopeModeSummaryFactory::extract(), NoiseSummaryFactory::extract(), PedsFullNoiseSummaryFactory::extract(), PedestalsSummaryFactory::extract(), OptoScanSummaryFactory::extract(), FastFedCablingSummaryFactory::extract(), VpspScanSummaryFactory::extract(), PedsOnlySummaryFactory::extract(), CalibrationSummaryFactory::extract(), SummaryHistogramFactory< FedTimingAnalysis >::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 107 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, AlCaHLTBitMon_QueryRunRegistry::string, and hgcalPlots::xtitle.
Referenced by SummaryPlotFactoryBase::fill(), and SummaryHistogramFactory< FedTimingAnalysis >::fill().
void SummaryGenerator::histo1D | ( | TH1 & | his | ) |
Creates simple 1D histogram of the parameter values.
Definition at line 261 of file SummaryGenerator.cc.
References entries_, LaserClient_cfi::high, timingPdfMaker::histo, cuy::ii, LaserClient_cfi::low, map_, max_, min_, sistrip::mlSummaryPlots_, and FastTimerService_cff::range.
Referenced by SummaryPlotFactoryBase::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 347 of file SummaryGenerator.cc.
References newFWLiteAna::bin, entries_, timingPdfMaker::histo, cuy::ii, map_, and sistrip::mlSummaryPlots_.
Referenced by SummaryPlotFactoryBase::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 309 of file SummaryGenerator.cc.
References newFWLiteAna::bin, entries_, timingPdfMaker::histo, cuy::ii, map_, and sistrip::mlSummaryPlots_.
Referenced by SummaryPlotFactoryBase::fill(), and SummaryHistogramFactory< FedTimingAnalysis >::fill().
|
static |
Creates instance of derived class based on view parameter.
Definition at line 74 of file SummaryGenerator.cc.
References sistrip::HISTO_1D, sistrip::HISTO_2D_SCATTER, sistrip::HISTO_2D_SUM, LogTrace, sistrip::mlSummaryPlots_, SiStripEnumsAndStrings::presentation(), sistrip::PROFILE_1D, edmLumisInFiles::summary, and fw3dlego::xbins.
|
static |
Creates instance of derived class based on view parameter.
Definition at line 23 of file SummaryGenerator.cc.
References sistrip::CONTROL_VIEW, genfragment_ptgun_cfg::generator, LogTrace, sistrip::mlSummaryPlots_, sistrip::READOUT_VIEW, and SiStripEnumsAndStrings::view().
Referenced by SummaryPlotFactoryBase::init(), SummaryHistogramFactory< FedTimingAnalysis >::init(), and SummaryHistogramFactory< T >::init().
|
inline |
Returns name of generator object.
Definition at line 133 of file SummaryGenerator.h.
References myName_.
|
static |
Constructs the summary histogram name.
Definition at line 48 of file SummaryGenerator.cc.
References LaserDQM_cfi::mon, SiStripEnumsAndStrings::monitorable(), SiStripEnumsAndStrings::presentation(), SiStripEnumsAndStrings::runType(), sistrip::sep_, contentValuesCheck::ss, sistrip::summaryHisto_, and SiStripEnumsAndStrings::view().
Referenced by config.CFG::__str__(), validation.Sample::digest(), CommissioningHistograms::histogram(), and VIDSelectorBase.VIDSelectorBase::initialize().
|
inline |
Retrieve size of map (ie, number of bins).
Definition at line 134 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 197 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 385 of file SummaryGenerator.cc.
References newFWLiteAna::bin, entries_, timingPdfMaker::histo, cuy::ii, map_, and sistrip::mlSummaryPlots_.
Referenced by SummaryPlotFactoryBase::fill(), and SummaryHistogramFactory< FedTimingAnalysis >::fill().
|
inline |
Definition at line 95 of file SummaryGenerator.h.
References nBins().
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), SummaryHistogramFactory< FedTimingAnalysis >::extract(), and SummaryHistogramFactory< FedTimingAnalysis >::fill().
|
protected |
Definition at line 119 of file SummaryGenerator.h.
Referenced by clearMap(), SummaryGeneratorReadoutView::fill(), SummaryGeneratorControlView::fill(), format(), histo1D(), histo2DScatter(), histo2DSum(), and profile1D().
|
protected |
Definition at line 125 of file SummaryGenerator.h.
Referenced by SequenceTypes.DummyModule::__repr__(), 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 117 of file SummaryGenerator.h.
Referenced by clearMap(), SummaryGeneratorControlView::fill(), SummaryGeneratorReadoutView::fill(), histo1D(), histo2DScatter(), histo2DSum(), nBins(), printMap(), and profile1D().
|
protected |
Definition at line 121 of file SummaryGenerator.h.
Referenced by clearMap(), fillMap(), histo1D(), and printMap().
|
protected |
Definition at line 123 of file SummaryGenerator.h.
Referenced by clearMap(), fillMap(), histo1D(), and printMap().
|
private |
Definition at line 130 of file SummaryGenerator.h.
Referenced by myName().