ATLAS Offline Software
|
A very basic one dimensional histogram to provide storage of HLT distributions, allowing constraints but preventing excessive memory usage for busy events. The histogram data is compressed during persistification according to the type of template instantiated. More...
#include <TrigHisto1D.h>
Public Member Functions | |
TrigHisto1D (void) | |
Default constructor used by T/P converters. More... | |
TrigHisto1D (unsigned int nbins_x, float min_x, float max_x) | |
Standard constructor used by FEX algorithms. More... | |
TrigHisto1D (unsigned int nbins_x, float min_x, float max_x, const std::vector< float > &contents) | |
Constructor used by TrigHisto2D. More... | |
virtual | ~TrigHisto1D (void) |
Destructor. More... | |
TrigHisto1D (const TrigHisto1D &trigHisto) | |
Copy Constructor. More... | |
TrigHisto1D (TrigHisto1D &&trigHisto) | |
TrigHisto1D & | operator= (const TrigHisto1D &trigHisto) |
Assignment operator. More... | |
TrigHisto1D & | operator= (TrigHisto1D &&trigHisto) |
void | fill (float value_x, float weight) |
Fill a 1D histogram. More... | |
double | sumEntries (float value_x, int cutType) const |
Sum the number of entries within the cut range. More... | |
void | clear (void) |
Zero all histogram bins. More... | |
unsigned int | nbins_x (void) const |
Return the number of bins along the y-axis, not including the under and overflow. More... | |
float | min_x (void) const |
Return the minimum along the x-axis. More... | |
float | max_x (void) const |
Return the maximum along the x-axis. More... | |
const std::vector< float > & | contents (void) const |
Return the bin contents of the histogram, including the under and overflow bins. More... | |
Protected Member Functions | |
unsigned int | findBin (unsigned int nbins, float h_min, float h_max, float binSize, float value) const |
Protected Attributes | |
std::vector< float > | m_contents |
std::vector< float >::iterator | m_itr |
std::vector< float >::iterator | m_itr_end |
unsigned int | m_nbins_x |
unsigned int | m_underflowBin_x |
unsigned int | m_overflowBin_x |
float | m_min_x |
float | m_max_x |
float | m_binSize_x |
A very basic one dimensional histogram to provide storage of HLT distributions, allowing constraints but preventing excessive memory usage for busy events. The histogram data is compressed during persistification according to the type of template instantiated.
Definition at line 23 of file TrigHisto1D.h.
TrigHisto1D::TrigHisto1D | ( | void | ) |
TrigHisto1D::TrigHisto1D | ( | unsigned int | nbins_x, |
float | min_x, | ||
float | max_x | ||
) |
TrigHisto1D::TrigHisto1D | ( | unsigned int | nbins_x, |
float | min_x, | ||
float | max_x, | ||
const std::vector< float > & | contents | ||
) |
|
virtual |
TrigHisto1D::TrigHisto1D | ( | const TrigHisto1D & | trigHisto | ) |
TrigHisto1D::TrigHisto1D | ( | TrigHisto1D && | trigHisto | ) |
Definition at line 76 of file TrigHisto1D.cxx.
|
inherited |
|
inlineinherited |
Return the bin contents of the histogram, including the under and overflow bins.
Definition at line 58 of file TrigHisto.h.
void TrigHisto1D::fill | ( | float | value_x, |
float | weight | ||
) |
|
protectedinherited |
Definition at line 33 of file TrigHisto.cxx.
|
inlineinherited |
Return the maximum along the x-axis.
Definition at line 52 of file TrigHisto.h.
|
inlineinherited |
Return the minimum along the x-axis.
Definition at line 47 of file TrigHisto.h.
|
inlineinherited |
Return the number of bins along the y-axis, not including the under and overflow.
Definition at line 42 of file TrigHisto.h.
TrigHisto1D & TrigHisto1D::operator= | ( | const TrigHisto1D & | trigHisto | ) |
TrigHisto1D & TrigHisto1D::operator= | ( | TrigHisto1D && | trigHisto | ) |
Definition at line 103 of file TrigHisto1D.cxx.
double TrigHisto1D::sumEntries | ( | float | value_x, |
int | cutType | ||
) | const |
Sum the number of entries within the cut range.
Definition at line 126 of file TrigHisto1D.cxx.
|
protectedinherited |
Definition at line 81 of file TrigHisto.h.
|
protectedinherited |
Definition at line 71 of file TrigHisto.h.
|
protectedinherited |
Definition at line 72 of file TrigHisto.h.
|
protectedinherited |
Definition at line 73 of file TrigHisto.h.
|
protectedinherited |
Definition at line 80 of file TrigHisto.h.
|
protectedinherited |
Definition at line 79 of file TrigHisto.h.
|
protectedinherited |
Definition at line 76 of file TrigHisto.h.
|
protectedinherited |
Definition at line 78 of file TrigHisto.h.
|
protectedinherited |
Definition at line 77 of file TrigHisto.h.