Developer Documentation
ACG::Histogram Class Referenceabstract
Inheritance diagram for ACG::Histogram:
ACG::HistogramT< T > ACG::UnbinnedHistogram< T >

Public Types

enum class  LabelType { PerBin , PerBoundary }
 

Public Member Functions

 Histogram (std::vector< size_t > &&bins, std::vector< double > &&bin_widths)
 
const std::vector< size_t > & getBins () const
 
const std::vector< double > & getBinWidths () const
 
virtual double getTotalWidth () const =0
 
virtual LabelType getLabelType () const =0
 
virtual QString getBoundaryLabel (size_t) const
 
virtual QString getBinLabel (size_t) const
 

Protected Attributes

std::vector< size_t > bins_
 
std::vector< double > bin_widths_
 

Detailed Description

Definition at line 59 of file Histogram.hh.

Member Enumeration Documentation

◆ LabelType

enum class ACG::Histogram::LabelType
strong

Definition at line 61 of file Histogram.hh.

Constructor & Destructor Documentation

◆ Histogram()

ACG::Histogram::Histogram ( std::vector< size_t > &&  bins,
std::vector< double > &&  bin_widths 
)
inline

Definition at line 67 of file Histogram.hh.

Member Function Documentation

◆ getBinLabel()

virtual QString ACG::Histogram::getBinLabel ( size_t  ) const
inlinevirtual

Definition at line 80 of file Histogram.hh.

◆ getBins()

const std::vector< size_t > & ACG::Histogram::getBins ( ) const
inline

Definition at line 74 of file Histogram.hh.

◆ getBinWidths()

const std::vector< double > & ACG::Histogram::getBinWidths ( ) const
inline

Definition at line 75 of file Histogram.hh.

◆ getBoundaryLabel()

virtual QString ACG::Histogram::getBoundaryLabel ( size_t  ) const
inlinevirtual

Definition at line 79 of file Histogram.hh.

Member Data Documentation

◆ bin_widths_

std::vector<double> ACG::Histogram::bin_widths_
protected

Definition at line 84 of file Histogram.hh.

◆ bins_

std::vector<size_t> ACG::Histogram::bins_
protected

Definition at line 83 of file Histogram.hh.


The documentation for this class was generated from the following file: