The Gaudi Framework
master (37c0b60a)
|
#include <GaudiPI/Generic3D.h>
Public Types | |
typedef Generic3D< INTERFACE, IMPLEMENTATION > | Base |
Public Member Functions | |
Generic3D ()=default | |
Default constructor. More... | |
TObject * | representation () const override |
ROOT object implementation. More... | |
void | adoptRepresentation (TObject *rep) override |
Adopt ROOT histogram representation. More... | |
int | dimension () const override |
Get the Histogram's dimension. More... | |
std::string | title () const override |
Get the title of the object. More... | |
bool | setTitle (const std::string &title) override |
Set the title of the object. More... | |
std::string | name () const |
object name More... | |
bool | setName (const std::string &newName) |
Sets the name of the object. More... | |
AIDA::IAnnotation & | annotation () override |
Access annotation object. More... | |
const AIDA::IAnnotation & | annotation () const override |
Access annotation object (cons) More... | |
int | entries () const override |
Get the number or all the entries. More... | |
int | allEntries () const override |
Get the number or all the entries, both in range and underflow/overflow bins of the IProfile. More... | |
double | sumBinHeights () const override |
Get the sum of in range bin heights in the IProfile. More... | |
double | sumAllBinHeights () const override |
Get the sum of all the bins heights (including underflow and overflow bin). More... | |
double | sumExtraBinHeights () const override |
Get the sum of the underflow and overflow bin height. More... | |
double | minBinHeight () const override |
Get the minimum height of the in-range bins. More... | |
double | maxBinHeight () const override |
Get the maximum height of the in-range bins. More... | |
int | rIndexX (int index) const |
int | rIndexY (int index) const |
int | rIndexZ (int index) const |
double | binMeanX (int indexX, int, int) const override |
The weighted mean along the x axis of a given bin. More... | |
double | binMeanY (int, int indexY, int) const override |
The weighted mean along the y axis of a given bin. More... | |
double | binMeanZ (int, int, int indexZ) const override |
The weighted mean along the z axis of a given bin. More... | |
int | binEntries (int indexX, int indexY, int indexZ) const override |
Number of entries in the corresponding bin (ie the number of times fill was calle d for this bin). More... | |
int | binEntriesX (int index) const override |
Sum of all the entries of the bins along a given x bin. More... | |
int | binEntriesY (int index) const override |
Sum of all the entries of the bins along a given y bin. More... | |
int | binEntriesZ (int index) const override |
Sum of all the entries of the bins along a given z bin. More... | |
double | binHeight (int indexX, int indexY, int indexZ) const |
Total height of the corresponding bin (ie the sum of the weights in this bin). More... | |
double | binHeightX (int index) const override |
Sum of all the heights of the bins along a given x bin. More... | |
double | binHeightY (int index) const override |
Sum of all the heights of the bins along a given y bin. More... | |
double | binHeightZ (int index) const override |
Sum of all the heights of the bins along a given z bin. More... | |
double | binError (int indexX, int indexY, int indexZ) const override |
The error of a given bin. More... | |
double | meanX () const override |
The mean of the IHistogram3D along the x axis. More... | |
double | meanY () const override |
The mean of the IHistogram3D along the y axis. More... | |
double | meanZ () const override |
The mean of the IHistogram3D along the z axis. More... | |
double | rmsX () const override |
The RMS of the IHistogram3D along the x axis. More... | |
double | rmsY () const override |
The RMS of the IHistogram3D along the y axis. More... | |
double | rmsZ () const override |
The RMS of the IHistogram3D along the z axis. More... | |
const AIDA::IAxis & | xAxis () const override |
Get the x axis of the IHistogram3D. More... | |
const AIDA::IAxis & | yAxis () const override |
Get the y axis of the IHistogram3D. More... | |
const AIDA::IAxis & | zAxis () const override |
Get the z axis of the IHistogram3D. More... | |
int | coordToIndexX (double coord) const override |
Get the bin number corresponding to a given coordinate along the x axis. More... | |
int | coordToIndexY (double coord) const override |
Get the bin number corresponding to a given coordinate along the y axis. More... | |
int | coordToIndexZ (double coord) const override |
Get the bin number corresponding to a given coordinate along the z axis. More... | |
double | equivalentBinEntries () const override |
Number of equivalent entries, i.e. SUM[ weight ] ^ 2 / SUM[ weight^2 ] More... | |
bool | scale (double scaleFactor) override |
Scale the weights and the errors of all the IHistogram's bins (in-range and out-of-range ones) by a given scale factor. More... | |
bool | add (const INTERFACE &hist) override |
Add to this Histogram3D the contents of another IHistogram3D. More... | |
int | extraEntries () const override |
std::ostream & | print (std::ostream &s) const override |
Print (ASCII) the histogram into the output stream. More... | |
std::ostream & | write (std::ostream &s) const override |
Write (ASCII) the histogram table into the output stream. More... | |
int | write (const char *file_name) const override |
Write (ASCII) the histogram table into a file. More... | |
void | adoptRepresentation (TObject *rep) |
Adopt ROOT histogram representation. More... | |
Public Member Functions inherited from Gaudi::HistogramBase | |
virtual | ~HistogramBase ()=default |
Protected Member Functions | |
Generic3D (IMPLEMENTATION *p) | |
constructor More... | |
Protected Attributes | |
Gaudi::Axis | m_xAxis |
Gaudi::Axis | m_yAxis |
Gaudi::Axis | m_zAxis |
AIDA::Annotation | m_annotation |
Object annotations. More... | |
std::unique_ptr< IMPLEMENTATION > | m_rep |
Reference to underlying implementation. More... | |
std::string | m_classType |
int | m_sumEntries = 0 |
Common AIDA implementation stuff for histograms and profiles using ROOT implementations
Credits: This code is the result of some stripdown implementation of LCG/PI. Credits to them!
Definition at line 46 of file Generic3D.h.
typedef Generic3D<INTERFACE, IMPLEMENTATION> Gaudi::Generic3D< INTERFACE, IMPLEMENTATION >::Base |
Definition at line 48 of file Generic3D.h.
|
default |
Default constructor.
|
inlineprotected |
|
inlineoverride |
Add to this Histogram3D the contents of another IHistogram3D.
Definition at line 199 of file Generic3D.h.
|
virtual |
Adopt ROOT histogram representation.
Implements Gaudi::HistogramBase.
Definition at line 37 of file H3D.cpp.
|
overridevirtual |
Adopt ROOT histogram representation.
Implements Gaudi::HistogramBase.
|
override |
Get the number or all the entries, both in range and underflow/overflow bins of the IProfile.
Definition at line 257 of file Generic3D.h.
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
Number of entries in the corresponding bin (ie the number of times fill was calle d for this bin).
Definition at line 109 of file Generic3D.h.
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
inline |
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
The weighted mean along the x axis of a given bin.
Definition at line 97 of file Generic3D.h.
|
inlineoverride |
The weighted mean along the y axis of a given bin.
Definition at line 101 of file Generic3D.h.
|
inlineoverride |
The weighted mean along the z axis of a given bin.
Definition at line 105 of file Generic3D.h.
|
inlineoverride |
Get the bin number corresponding to a given coordinate along the x axis.
Definition at line 187 of file Generic3D.h.
|
inlineoverride |
Get the bin number corresponding to a given coordinate along the y axis.
Definition at line 189 of file Generic3D.h.
|
inlineoverride |
Get the bin number corresponding to a given coordinate along the z axis.
Definition at line 191 of file Generic3D.h.
|
inlineoverride |
|
override |
Get the number or all the entries.
Definition at line 252 of file Generic3D.h.
|
override |
Number of equivalent entries, i.e. SUM[ weight ] ^ 2 / SUM[ weight^2 ]
Definition at line 282 of file Generic3D.h.
|
inlineoverride |
Definition at line 207 of file Generic3D.h.
|
override |
Get the maximum height of the in-range bins.
Definition at line 267 of file Generic3D.h.
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
override |
Get the minimum height of the in-range bins.
Definition at line 262 of file Generic3D.h.
|
inline |
|
overridevirtual |
Print (ASCII) the histogram into the output stream.
bin contents and errors are printed for all bins including under and overflows
Implements Gaudi::HistogramBase.
Definition at line 296 of file Generic3D.h.
|
inlineoverridevirtual |
ROOT object implementation.
Implements Gaudi::HistogramBase.
Definition at line 58 of file Generic3D.h.
|
inline |
Definition at line 92 of file Generic3D.h.
|
inline |
Definition at line 93 of file Generic3D.h.
|
inline |
Definition at line 94 of file Generic3D.h.
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
override |
Scale the weights and the errors of all the IHistogram's bins (in-range and out-of-range ones) by a given scale factor.
Definition at line 290 of file Generic3D.h.
bool Gaudi::Generic3D< INTERFACE, IMPLEMENTATION >::setName | ( | const std::string & | newName | ) |
|
override |
|
override |
Get the sum of all the bins heights (including underflow and overflow bin).
Definition at line 277 of file Generic3D.h.
|
override |
Get the sum of in range bin heights in the IProfile.
Definition at line 272 of file Generic3D.h.
|
inlineoverride |
|
inlineoverride |
|
overridevirtual |
Write (ASCII) the histogram table into a file.
Implements Gaudi::HistogramBase.
Definition at line 318 of file Generic3D.h.
|
overridevirtual |
Write (ASCII) the histogram table into the output stream.
Implements Gaudi::HistogramBase.
Definition at line 304 of file Generic3D.h.
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
mutableprotected |
Object annotations.
Definition at line 228 of file Generic3D.h.
|
protected |
Definition at line 232 of file Generic3D.h.
|
protected |
Reference to underlying implementation.
Definition at line 230 of file Generic3D.h.
|
protected |
Definition at line 234 of file Generic3D.h.
|
protected |
Definition at line 224 of file Generic3D.h.
|
protected |
Definition at line 225 of file Generic3D.h.
|
protected |
Definition at line 226 of file Generic3D.h.