#include <Histo1D.h>
|
| | Histo1D (uint32_t numBins, double minValue, double maxValue, const std::string &name="", const std::string &title="") |
| | Standard constructor.
|
| |
| | Histo1D (const Histo1D &)=default |
| | Copy constructor: needed for boost serialization of vector of Histo1D.
|
| |
| virtual | ~Histo1D ()=default |
| | Destructor.
|
| |
| void | Add (double value, double weight=1.) |
| | Add an entry to the histogram.
|
| |
| void | Clear () |
| | Clear histogram contents.
|
| |
| double | Content (uint32_t bin) const |
| | Histogram content in a bin.
|
| |
| double | NumEntries () const |
| | Number of entries.
|
| |
| double | MaxValue () const |
| | Upper edge.
|
| |
| double | Mean () const |
| | First moment of distribution.
|
| |
| double | MinValue () const |
| | Lower edge.
|
| |
| const std::string & | Name () const |
| | Histogram name.
|
| |
| const std::string & | Title () const |
| | Histogram name.
|
| |
| uint32_t | NumBins () const |
| | Number of bins.
|
| |
| Histo1D & | operator+= (const Histo1D &other) |
| | Add another histogram to an existing one.
|
| |
| double | Overflow () const |
| | Overflow.
|
| |
| double | Underflow () const |
| | Underflow.
|
| |
| double | Stddev () const |
| | Second moment of distribution.
|
| |
| std::string | ToString () const |
| | Properties to string.
|
| |
|
| template<class Archive> |
| void | serialize (Archive &ar, const unsigned int) |
| |
| | Histo1D () |
| | Default constructor: needed for boost serialization of vector of Histo1D, need copy ctor call after!
|
| |
- Author
- Volker Friese v.fri.nosp@m.ese@.nosp@m.gsi.d.nosp@m.e
- Since
- 15 June 2023
Lightweight one-dimensional histogram class
Definition at line 25 of file Histo1D.h.
◆ Histo1D() [1/3]
| cbm::algo::Histo1D::Histo1D |
( |
uint32_t | numBins, |
|
|
double | minValue, |
|
|
double | maxValue, |
|
|
const std::string & | name = "", |
|
|
const std::string & | title = "" ) |
◆ Histo1D() [2/3]
| cbm::algo::Histo1D::Histo1D |
( |
const Histo1D & | | ) |
|
|
default |
Copy constructor: needed for boost serialization of vector of Histo1D.
References Histo1D().
◆ ~Histo1D()
| virtual cbm::algo::Histo1D::~Histo1D |
( |
| ) |
|
|
virtualdefault |
◆ Histo1D() [3/3]
| cbm::algo::Histo1D::Histo1D |
( |
| ) |
|
|
inlineprivate |
◆ Add()
| void cbm::algo::Histo1D::Add |
( |
double | value, |
|
|
double | weight = 1. ) |
◆ Clear()
| void cbm::algo::Histo1D::Clear |
( |
| ) |
|
◆ Content()
| double cbm::algo::Histo1D::Content |
( |
uint32_t | bin | ) |
const |
Histogram content in a bin.
- Parameters
-
- Returns
- Histogram content. Zero if bin index is out of scope.
Definition at line 59 of file Histo1D.cxx.
References fContent, and fNumBins.
◆ MaxValue()
| double cbm::algo::Histo1D::MaxValue |
( |
| ) |
const |
|
inline |
◆ Mean()
| double cbm::algo::Histo1D::Mean |
( |
| ) |
const |
◆ MinValue()
| double cbm::algo::Histo1D::MinValue |
( |
| ) |
const |
|
inline |
◆ Name()
| const std::string & cbm::algo::Histo1D::Name |
( |
| ) |
const |
|
inline |
◆ NumBins()
| uint32_t cbm::algo::Histo1D::NumBins |
( |
| ) |
const |
|
inline |
◆ NumEntries()
| double cbm::algo::Histo1D::NumEntries |
( |
| ) |
const |
|
inline |
◆ operator+=()
◆ Overflow()
| double cbm::algo::Histo1D::Overflow |
( |
| ) |
const |
|
inline |
◆ serialize()
template<class Archive>
| void cbm::algo::Histo1D::serialize |
( |
Archive & | ar, |
|
|
const unsigned int | ) |
|
inlineprivate |
◆ Stddev()
| double cbm::algo::Histo1D::Stddev |
( |
| ) |
const |
◆ Title()
| const std::string & cbm::algo::Histo1D::Title |
( |
| ) |
const |
|
inline |
◆ ToString()
| std::string cbm::algo::Histo1D::ToString |
( |
| ) |
const |
◆ Underflow()
| double cbm::algo::Histo1D::Underflow |
( |
| ) |
const |
|
inline |
◆ boost::serialization::access
| friend class boost::serialization::access |
|
friend |
◆ fContent
| std::vector<double> cbm::algo::Histo1D::fContent = {} |
|
private |
◆ fMaxValue
| double cbm::algo::Histo1D::fMaxValue |
|
private |
◆ fMinValue
| double cbm::algo::Histo1D::fMinValue |
|
private |
◆ fName
| std::string cbm::algo::Histo1D::fName |
|
private |
◆ fNumBins
| uint32_t cbm::algo::Histo1D::fNumBins |
|
private |
Definition at line 117 of file Histo1D.h.
Referenced by Add(), Clear(), Content(), Histo1D(), Histo1D(), Mean(), NumBins(), operator+=(), serialize(), Stddev(), and ToString().
◆ fNumEntries
| size_t cbm::algo::Histo1D::fNumEntries = 0 |
|
private |
◆ fOverflow
| double cbm::algo::Histo1D::fOverflow = 0 |
|
private |
◆ fTitle
| std::string cbm::algo::Histo1D::fTitle |
|
private |
◆ fUnderflow
| double cbm::algo::Histo1D::fUnderflow = 0 |
|
private |
The documentation for this class was generated from the following files: