The Gaudi Framework
v29r0 (ff2e7097)
|
Common AIDA implementation stuff for histograms and profiles using ROOT implementations. More...
#include <GaudiPI/Generic3D.h>
Public Types | |
typedef Generic3D< INTERFACE, IMPLEMENTATION > | Base |
Public Member Functions | |
Generic3D ()=default | |
Default constructor. More... | |
~Generic3D () override=default | |
Destructor. 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... | |
template<> | |
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 36 of file Generic3D.h.
typedef Generic3D<INTERFACE, IMPLEMENTATION> Gaudi::Generic3D< INTERFACE, IMPLEMENTATION >::Base |
Definition at line 39 of file Generic3D.h.
|
default |
Default constructor.
|
inlineprotected |
constructor
Definition at line 45 of file Generic3D.h.
|
overridedefault |
Destructor.
|
inlineoverride |
Add to this Histogram3D the contents of another IHistogram3D.
Definition at line 204 of file Generic3D.h.
|
virtual |
Adopt ROOT histogram representation.
Implements Gaudi::HistogramBase.
Definition at line 25 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 267 of file Generic3D.h.
|
inlineoverride |
Access annotation object.
Definition at line 66 of file Generic3D.h.
|
inlineoverride |
Access annotation object (cons)
Definition at line 68 of file Generic3D.h.
|
inlineoverride |
Number of entries in the corresponding bin (ie the number of times fill was calle d for this bin).
Definition at line 105 of file Generic3D.h.
|
inlineoverride |
Sum of all the entries of the bins along a given x bin.
Definition at line 112 of file Generic3D.h.
|
inlineoverride |
Sum of all the entries of the bins along a given y bin.
Definition at line 120 of file Generic3D.h.
|
inlineoverride |
Sum of all the entries of the bins along a given z bin.
Definition at line 129 of file Generic3D.h.
|
inlineoverride |
The error of a given bin.
Definition at line 168 of file Generic3D.h.
|
inline |
Total height of the corresponding bin (ie the sum of the weights in this bin).
Definition at line 138 of file Generic3D.h.
|
inlineoverride |
Sum of all the heights of the bins along a given x bin.
Definition at line 144 of file Generic3D.h.
|
inlineoverride |
Sum of all the heights of the bins along a given y bin.
Definition at line 152 of file Generic3D.h.
|
inlineoverride |
Sum of all the heights of the bins along a given z bin.
Definition at line 160 of file Generic3D.h.
|
inlineoverride |
The weighted mean along the x axis of a given bin.
Definition at line 90 of file Generic3D.h.
|
inlineoverride |
The weighted mean along the y axis of a given bin.
Definition at line 95 of file Generic3D.h.
|
inlineoverride |
The weighted mean along the z axis of a given bin.
Definition at line 100 of file Generic3D.h.
|
inlineoverride |
Get the bin number corresponding to a given coordinate along the x axis.
Definition at line 192 of file Generic3D.h.
|
inlineoverride |
Get the bin number corresponding to a given coordinate along the y axis.
Definition at line 194 of file Generic3D.h.
|
inlineoverride |
Get the bin number corresponding to a given coordinate along the z axis.
Definition at line 196 of file Generic3D.h.
|
inlineoverride |
|
override |
Get the number or all the entries.
Definition at line 261 of file Generic3D.h.
|
override |
Number of equivalent entries, i.e. SUM[ weight ] ^ 2 / SUM[ weight^2 ]
Definition at line 297 of file Generic3D.h.
|
inlineoverride |
Definition at line 213 of file Generic3D.h.
|
override |
Get the maximum height of the in-range bins.
Definition at line 279 of file Generic3D.h.
|
inlineoverride |
The mean of the IHistogram3D along the x axis.
Definition at line 173 of file Generic3D.h.
|
inlineoverride |
The mean of the IHistogram3D along the y axis.
Definition at line 176 of file Generic3D.h.
|
inlineoverride |
The mean of the IHistogram3D along the z axis.
Definition at line 178 of file Generic3D.h.
|
override |
Get the minimum height of the in-range bins.
Definition at line 273 of file Generic3D.h.
|
inline |
object name
Definition at line 62 of file Generic3D.h.
|
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 313 of file Generic3D.h.
|
inlineoverridevirtual |
ROOT object implementation.
Implements Gaudi::HistogramBase.
Definition at line 51 of file Generic3D.h.
|
inline |
Definition at line 85 of file Generic3D.h.
|
inline |
Definition at line 86 of file Generic3D.h.
|
inline |
Definition at line 87 of file Generic3D.h.
|
inlineoverride |
The RMS of the IHistogram3D along the x axis.
Definition at line 180 of file Generic3D.h.
|
inlineoverride |
The RMS of the IHistogram3D along the y axis.
Definition at line 182 of file Generic3D.h.
|
inlineoverride |
The RMS of the IHistogram3D along the z axis.
Definition at line 184 of file Generic3D.h.
|
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 306 of file Generic3D.h.
bool Gaudi::Generic3D< INTERFACE, IMPLEMENTATION >::setName | ( | const std::string & | newName | ) |
Sets the name of the object.
Definition at line 254 of file Generic3D.h.
|
override |
Set the title of the object.
Definition at line 245 of file Generic3D.h.
|
override |
Get the sum of all the bins heights (including underflow and overflow bin).
Definition at line 291 of file Generic3D.h.
|
override |
Get the sum of in range bin heights in the IProfile.
Definition at line 285 of file Generic3D.h.
|
inlineoverride |
Get the sum of the underflow and overflow bin height.
Definition at line 79 of file Generic3D.h.
|
inlineoverride |
Get the title of the object.
Definition at line 58 of file Generic3D.h.
|
overridevirtual |
Write (ASCII) the histogram table into the output stream.
Implements Gaudi::HistogramBase.
Definition at line 322 of file Generic3D.h.
|
overridevirtual |
Write (ASCII) the histogram table into a file.
Implements Gaudi::HistogramBase.
Definition at line 337 of file Generic3D.h.
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
mutableprotected |
Object annotations.
Definition at line 235 of file Generic3D.h.
|
protected |
Definition at line 239 of file Generic3D.h.
|
protected |
Reference to underlying implementation.
Definition at line 237 of file Generic3D.h.
|
protected |
Definition at line 241 of file Generic3D.h.
|
protected |
Definition at line 231 of file Generic3D.h.
|
protected |
Definition at line 232 of file Generic3D.h.
|
protected |
Definition at line 233 of file Generic3D.h.