#include <DD4hep_XHistogram.h>
Classes | |
struct | position |
Public Types | |
typedef TH2I | ColorMap |
typedef TH2F | Histogram |
typedef std::pair< double, double > | Range |
Public Member Functions | |
ColorMap * | colormap (void) const |
access the colormap More... | |
DD4hep_XHistogram (void) | |
default CTOR More... | |
DD4hep_XHistogram (size_t size, size_t bins_x, size_t bins_y, Range x, Range y, size_t zones, const std::vector< double > &max) | |
void | fill (double x, double y, const std::vector< double > &weight, double norm) |
fill one point More... | |
void | fill (double x, double y, const std::vector< double > &weight, double norm, unsigned int colour) |
fill one point and set its color More... | |
void | fill (const Range &x, const Range &y, const std::vector< double > &weight, double norm) |
fill one segment, normalizing each bin's weight to the fraction of the segment it contains More... | |
void | fill (const Range &x, const Range &y, const std::vector< double > &weight, double norm, unsigned int colour) |
fill one segment and set its color, normalizing each bin's weight to the fraction of the segment it contains More... | |
Histogram * | get (size_t h=0) const |
access one of the histograms More... | |
Histogram * | normalization (void) const |
access the normalization More... | |
void | normalize (void) |
normalize the histograms More... | |
void | setMinDl (double dl) |
Protected Member Functions | |
void | check_weight (const std::vector< double > &weight) noexcept(false) |
check the weights passed as an std::vector have the correct size More... | |
std::vector< position > | splitSegment (Range x, Range y) const |
split a segment into a vector of points More... | |
Protected Attributes | |
std::shared_ptr< ColorMap > | m_colormap |
std::shared_ptr< Histogram > | m_dummy |
std::vector< std::shared_ptr< Histogram > > | m_histograms |
double | m_minDl |
std::shared_ptr< Histogram > | m_normalization |
size_t | m_size |
size_t | m_xBins |
Range | m_xRange |
size_t | m_yBins |
Range | m_yRange |
Definition at line 13 of file DD4hep_XHistogram.h.
typedef TH2I DD4hep_XHistogram::ColorMap |
Definition at line 15 of file DD4hep_XHistogram.h.
typedef TH2F DD4hep_XHistogram::Histogram |
Definition at line 16 of file DD4hep_XHistogram.h.
typedef std::pair<double, double> DD4hep_XHistogram::Range |
Definition at line 17 of file DD4hep_XHistogram.h.
|
inline |
default CTOR
Definition at line 34 of file DD4hep_XHistogram.h.
|
inline |
Definition at line 47 of file DD4hep_XHistogram.h.
References mps_fire::i, m_colormap, m_histograms, m_normalization, m_size, SiStripPI::max, x, and y.
|
inlineprotectednoexcept |
check the weights passed as an std::vector have the correct size
Definition at line 121 of file DD4hep_XHistogram.h.
References m_size.
Referenced by fill().
|
inline |
access the colormap
Definition at line 98 of file DD4hep_XHistogram.h.
References m_colormap.
Referenced by DD4hep_TrackingMaterialPlotter::draw().
void DD4hep_XHistogram::fill | ( | double | x, |
double | y, | ||
const std::vector< double > & | weight, | ||
double | norm | ||
) |
fill one point
Definition at line 70 of file DD4hep_XHistogram.cc.
References check_weight(), HcalObjRepresent::Fill(), h, m_histograms, m_normalization, m_size, x, and y.
Referenced by DD4hep_TrackingMaterialPlotter::plotSegmentInLayer(), and DD4hep_TrackingMaterialPlotter::plotSegmentUnassigned().
void DD4hep_XHistogram::fill | ( | double | x, |
double | y, | ||
const std::vector< double > & | weight, | ||
double | norm, | ||
unsigned int | colour | ||
) |
fill one point and set its color
Definition at line 79 of file DD4hep_XHistogram.cc.
References check_weight(), HcalObjRepresent::Fill(), dqmMemoryStats::float, h, m_colormap, m_histograms, m_normalization, m_size, x, and y.
void DD4hep_XHistogram::fill | ( | const Range & | x, |
const Range & | y, | ||
const std::vector< double > & | weight, | ||
double | norm | ||
) |
fill one segment, normalizing each bin's weight to the fraction of the segment it contains
Definition at line 89 of file DD4hep_XHistogram.cc.
References check_weight(), f, HcalObjRepresent::Fill(), h, mps_fire::i, m_histograms, m_normalization, m_size, alignCSCRings::s, splitSegment(), findQualityFiles::v, x, and y.
void DD4hep_XHistogram::fill | ( | const Range & | x, |
const Range & | y, | ||
const std::vector< double > & | weight, | ||
double | norm, | ||
unsigned int | colour | ||
) |
fill one segment and set its color, normalizing each bin's weight to the fraction of the segment it contains
Definition at line 101 of file DD4hep_XHistogram.cc.
References check_weight(), f, HcalObjRepresent::Fill(), dqmMemoryStats::float, h, mps_fire::i, m_colormap, m_histograms, m_normalization, m_size, alignCSCRings::s, splitSegment(), findQualityFiles::v, x, and y.
|
inline |
access one of the histograms
Definition at line 87 of file DD4hep_XHistogram.h.
References h, m_histograms, and m_size.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), submitPVValidationJobs.BetterConfigParser::__updateDict(), DD4hep_TrackingMaterialPlotter::draw(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), and submitPVValidationJobs.BetterConfigParser::getResultingSection().
|
inline |
access the normalization
Definition at line 95 of file DD4hep_XHistogram.h.
References m_normalization.
void DD4hep_XHistogram::normalize | ( | void | ) |
normalize the histograms
Definition at line 115 of file DD4hep_XHistogram.cc.
References h, mps_fire::i, m_histograms, m_normalization, and m_size.
Referenced by DD4hep_TrackingMaterialPlotter::normalize().
|
inline |
set the minimum length of sub-segment a segment should be split into: when splitting across bin boundaries with splitSegment(...), sub-segments shorter than this are skipped
Definition at line 102 of file DD4hep_XHistogram.h.
References m_minDl.
|
protected |
split a segment into a vector of points
Definition at line 7 of file DD4hep_XHistogram.cc.
References reco::ceil(), hgcalPerformanceValidation::df, f, mps_fire::i, createfilelist::int, m_minDl, m_xBins, m_xRange, m_yBins, m_yRange, position, mps_fire::result, alignCSCRings::s, jetsAK4_CHS_cff::sort, customisers::steps, findQualityFiles::v, x, and y.
Referenced by fill().
|
protected |
Definition at line 29 of file DD4hep_XHistogram.h.
Referenced by colormap(), DD4hep_XHistogram(), and fill().
|
protected |
Definition at line 30 of file DD4hep_XHistogram.h.
|
protected |
Definition at line 27 of file DD4hep_XHistogram.h.
Referenced by DD4hep_XHistogram(), fill(), get(), and normalize().
|
protected |
Definition at line 20 of file DD4hep_XHistogram.h.
Referenced by setMinDl(), and splitSegment().
|
protected |
Definition at line 28 of file DD4hep_XHistogram.h.
Referenced by DD4hep_XHistogram(), fill(), normalization(), and normalize().
|
protected |
Definition at line 25 of file DD4hep_XHistogram.h.
Referenced by check_weight(), DD4hep_XHistogram(), fill(), get(), and normalize().
|
protected |
Definition at line 23 of file DD4hep_XHistogram.h.
Referenced by splitSegment().
|
protected |
Definition at line 21 of file DD4hep_XHistogram.h.
Referenced by splitSegment().
|
protected |
Definition at line 24 of file DD4hep_XHistogram.h.
Referenced by splitSegment().
|
protected |
Definition at line 22 of file DD4hep_XHistogram.h.
Referenced by splitSegment().