![]() |
Project
|
#include <FlatHisto1D.h>
Public Types | |
enum | { NBins , XMin , XMax , BinSize , NServiceSlots } |
Public Member Functions | |
FlatHisto1D ()=default | |
FlatHisto1D (uint32_t nb, T xmin, T xmax) | |
FlatHisto1D (const FlatHisto1D &src) | |
FlatHisto1D (const gsl::span< const T > ext) | |
FlatHisto1D & | operator= (const FlatHisto1D &rhs) |
void | adoptExternal (const gsl::span< const T > ext) |
void | init () |
void | init (uint32_t nbx, T xmin, T xmax) |
uint32_t | getNBins () const |
T | getXMin () const |
T | getXMax () const |
T | getBinSize () const |
T | getBinSizeInv () const |
T | getBinContent (uint32_t ib) const |
const T * | getData () const |
T | getBinContentForX (T x) const |
bool | isValidBin (uint32_t bin) const |
bool | isBinEmpty (uint32_t bin) const |
T | getBinStart (uint32_t i) const |
T | getBinCenter (uint32_t i) const |
T | getBinEnd (uint32_t i) const |
void | add (const FlatHisto1D &other) |
void | subtract (const FlatHisto1D &other) |
void | setBinContent (uint32_t bin, T w) |
void | clear () |
T | getSum () const |
int | fill (T x) |
int | fill (T x, T w) |
void | fillBin (uint32_t bin, T w) |
uint32_t | getBin (T x) const |
bool | canFill () const |
std::unique_ptr< TH1F > | createTH1F (const std::string &name="histo1d") const |
const std::vector< T > & | getBase () const |
gsl::span< const T > | getView () const |
Protected Member Functions | |
void | init (const gsl::span< const T > ext) |
ClassDefNV (FlatHisto1D, 2) | |
Protected Attributes | |
std::vector< T > | mContainer |
gsl::span< const T > | mContainerView {} |
T * | mDataPtr {} |
pointer on container | |
T | mXMin {} |
histo data | |
T | mXMax {} |
T | mBinSize {} |
T | mBinSizeInv {} |
uint32_t | mNBins {} |
Definition at line 48 of file FlatHisto1D.h.
anonymous enum |
Enumerator | |
---|---|
NBins | |
XMin | |
XMax | |
BinSize | |
NServiceSlots |
Definition at line 53 of file FlatHisto1D.h.
|
default |
o2::dataformats::FlatHisto1D< T >::FlatHisto1D | ( | uint32_t | nb, |
T | xmin, | ||
T | xmax | ||
) |
Definition at line 25 of file FlatHisto1D.cxx.
o2::dataformats::FlatHisto1D< T >::FlatHisto1D | ( | const FlatHisto1D< T > & | src | ) |
Definition at line 31 of file FlatHisto1D.cxx.
|
inline |
Definition at line 62 of file FlatHisto1D.h.
void o2::dataformats::FlatHisto1D< T >::add | ( | const FlatHisto1D< T > & | other | ) |
Definition at line 63 of file FlatHisto1D.cxx.
void o2::dataformats::FlatHisto1D< T >::adoptExternal | ( | const gsl::span< const T > | ext | ) |
Definition at line 54 of file FlatHisto1D.cxx.
|
inline |
Definition at line 167 of file FlatHisto1D.h.
|
protected |
|
inline |
Definition at line 126 of file FlatHisto1D.h.
std::unique_ptr< TH1F > o2::dataformats::FlatHisto1D< T >::createTH1F | ( | const std::string & | name = "histo1d" | ) | const |
Definition at line 119 of file FlatHisto1D.cxx.
|
inline |
Definition at line 134 of file FlatHisto1D.h.
|
inline |
Definition at line 144 of file FlatHisto1D.h.
|
inline |
Definition at line 154 of file FlatHisto1D.h.
|
inline |
Definition at line 175 of file FlatHisto1D.h.
|
inline |
Definition at line 161 of file FlatHisto1D.h.
|
inline |
Definition at line 104 of file FlatHisto1D.h.
|
inline |
Definition at line 78 of file FlatHisto1D.h.
|
inline |
Definition at line 89 of file FlatHisto1D.h.
|
inline |
Definition at line 110 of file FlatHisto1D.h.
|
inline |
Definition at line 75 of file FlatHisto1D.h.
|
inline |
Definition at line 76 of file FlatHisto1D.h.
|
inline |
Definition at line 98 of file FlatHisto1D.h.
|
inline |
Definition at line 84 of file FlatHisto1D.h.
|
inline |
Definition at line 72 of file FlatHisto1D.h.
T o2::dataformats::FlatHisto1D< T >::getSum | ( | ) | const |
Definition at line 85 of file FlatHisto1D.cxx.
|
inline |
Definition at line 176 of file FlatHisto1D.h.
|
inline |
Definition at line 74 of file FlatHisto1D.h.
|
inline |
Definition at line 73 of file FlatHisto1D.h.
|
inline |
Definition at line 65 of file FlatHisto1D.h.
|
protected |
Definition at line 95 of file FlatHisto1D.cxx.
void o2::dataformats::FlatHisto1D< T >::init | ( | uint32_t | nbx, |
T | xmin, | ||
T | xmax | ||
) |
Definition at line 107 of file FlatHisto1D.cxx.
|
inline |
Definition at line 96 of file FlatHisto1D.h.
|
inline |
Definition at line 95 of file FlatHisto1D.h.
FlatHisto1D< T > & o2::dataformats::FlatHisto1D< T >::operator= | ( | const FlatHisto1D< T > & | rhs | ) |
Definition at line 38 of file FlatHisto1D.cxx.
|
inline |
Definition at line 120 of file FlatHisto1D.h.
void o2::dataformats::FlatHisto1D< T >::subtract | ( | const FlatHisto1D< T > & | other | ) |
Definition at line 74 of file FlatHisto1D.cxx.
|
protected |
Definition at line 186 of file FlatHisto1D.h.
|
protected |
Definition at line 187 of file FlatHisto1D.h.
|
protected |
Definition at line 181 of file FlatHisto1D.h.
|
protected |
Definition at line 182 of file FlatHisto1D.h.
|
protected |
pointer on container
Definition at line 183 of file FlatHisto1D.h.
|
protected |
Definition at line 188 of file FlatHisto1D.h.
|
protected |
Definition at line 185 of file FlatHisto1D.h.
|
protected |
histo data
Definition at line 184 of file FlatHisto1D.h.