![]() |
ATLAS Offline Software
|
Class defines binning for user dimension. More...
#include <CaloLocalHadCoeff.h>
Public Member Functions | |
| LocalHadDimension () | |
| Default Constructor. | |
| LocalHadDimension (const char *title, unsigned int typ, int nbins, float xmin, float xmax) | |
| Constructor to define equidistant binning. | |
| LocalHadDimension (const char *title, unsigned int typ, std::vector< float > &xbins) | |
| Constructor to define arbitrary binning. | |
| LocalHadDimension (const LocalHadDimension &other)=default | |
| Copy constructor. | |
| LocalHadDimension & | operator= (const LocalHadDimension &other)=default |
| LocalHadDimension (LocalHadDimension &&) noexcept=default | |
| Move constructor. | |
| LocalHadDimension & | operator= (LocalHadDimension &&) noexcept=default |
| unsigned int | getType () const |
| return dimension type | |
| int | getNbins () const |
| return number of bins | |
| float | getXmin () const |
| return minimum value for the first bin | |
| float | getXmax () const |
| return maximum value for the last bin | |
| float | getDx () const |
| return size of bin | |
| int | getBin (float &x) const |
| return bin number | |
| int | getBinAdjusted (float &x, float &xadj) const |
| const std::string & | getTitle () const |
| return dimension name | |
Private Attributes | |
| std::string | m_title |
| dimensions title (e.g. "eta", "energy", "lambda", "blabla", etc) | |
| unsigned int | m_type |
| dimension type | |
| int | m_nbins |
| number of bins | |
| float | m_xmin |
| minimum value for the first bin | |
| float | m_xmax |
| maximum value for the last bin | |
| float | m_dx |
| bin size (in the case of equidistant binning) | |
| std::vector< float > | m_xbins |
| bins borders (if dimension has non-equidistant binning), vector of size m_nbins+1 | |
Class defines binning for user dimension.
Definition at line 47 of file CaloLocalHadCoeff.h.
|
inline |
Default Constructor.
Definition at line 52 of file CaloLocalHadCoeff.h.
|
inline |
Constructor to define equidistant binning.
| title | Dimension title |
| type | Dimension type |
| xmin | Minimum value for the first bin |
| xmax | Maximum value for the last bin |
Definition at line 61 of file CaloLocalHadCoeff.h.
|
inline |
Constructor to define arbitrary binning.
| title | Dimension title |
| type | Dimension type |
| xbins | Bins borders, vector of size m_nbins+1 |
Definition at line 74 of file CaloLocalHadCoeff.h.
|
default |
Copy constructor.
|
defaultnoexcept |
Move constructor.
| int CaloLocalHadCoeff::LocalHadDimension::getBin | ( | float & | x | ) | const |
return bin number
Definition at line 25 of file CaloLocalHadCoeff.cxx.
| int CaloLocalHadCoeff::LocalHadDimension::getBinAdjusted | ( | float & | x, |
| float & | xadj ) const |
Definition at line 45 of file CaloLocalHadCoeff.cxx.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
default |
|
defaultnoexcept |
|
private |
bin size (in the case of equidistant binning)
Definition at line 135 of file CaloLocalHadCoeff.h.
|
private |
number of bins
Definition at line 126 of file CaloLocalHadCoeff.h.
|
private |
dimensions title (e.g. "eta", "energy", "lambda", "blabla", etc)
Definition at line 120 of file CaloLocalHadCoeff.h.
|
private |
dimension type
Definition at line 123 of file CaloLocalHadCoeff.h.
|
private |
bins borders (if dimension has non-equidistant binning), vector of size m_nbins+1
Definition at line 138 of file CaloLocalHadCoeff.h.
|
private |
maximum value for the last bin
Definition at line 132 of file CaloLocalHadCoeff.h.
|
private |
minimum value for the first bin
Definition at line 129 of file CaloLocalHadCoeff.h.