The Gaudi Framework
v30r3 (a5ef0a68)
|
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... | |
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.
|
inlineoverride |
Add to this Histogram3D the contents of another IHistogram3D.
Definition at line 202 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 265 of file Generic3D.h.
|
inlineoverride |
Access annotation object.
Definition at line 64 of file Generic3D.h.
|
inlineoverride |
Access annotation object (cons)
Definition at line 66 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 103 of file Generic3D.h.
|
inlineoverride |
Sum of all the entries of the bins along a given x bin.
Definition at line 110 of file Generic3D.h.
|
inlineoverride |
Sum of all the entries of the bins along a given y bin.
Definition at line 118 of file Generic3D.h.
|
inlineoverride |
Sum of all the entries of the bins along a given z bin.
Definition at line 127 of file Generic3D.h.
|
inlineoverride |
The error of a given bin.
Definition at line 166 of file Generic3D.h.
|
inline |
Total height of the corresponding bin (ie the sum of the weights in this bin).
Definition at line 136 of file Generic3D.h.
|
inlineoverride |
Sum of all the heights of the bins along a given x bin.
Definition at line 142 of file Generic3D.h.
|
inlineoverride |
Sum of all the heights of the bins along a given y bin.
Definition at line 150 of file Generic3D.h.
|
inlineoverride |
Sum of all the heights of the bins along a given z bin.
Definition at line 158 of file Generic3D.h.
|
inlineoverride |
The weighted mean along the x axis of a given bin.
Definition at line 88 of file Generic3D.h.
|
inlineoverride |
The weighted mean along the y axis of a given bin.
Definition at line 93 of file Generic3D.h.
|
inlineoverride |
The weighted mean along the z axis of a given bin.
Definition at line 98 of file Generic3D.h.
|
inlineoverride |
Get the bin number corresponding to a given coordinate along the x axis.
Definition at line 190 of file Generic3D.h.
|
inlineoverride |
Get the bin number corresponding to a given coordinate along the y axis.
Definition at line 192 of file Generic3D.h.
|
inlineoverride |
Get the bin number corresponding to a given coordinate along the z axis.
Definition at line 194 of file Generic3D.h.
|
inlineoverride |
|
override |
Get the number or all the entries.
Definition at line 259 of file Generic3D.h.
|
override |
Number of equivalent entries, i.e. SUM[ weight ] ^ 2 / SUM[ weight^2 ]
Definition at line 295 of file Generic3D.h.
|
inlineoverride |
Definition at line 211 of file Generic3D.h.
|
override |
Get the maximum height of the in-range bins.
Definition at line 277 of file Generic3D.h.
|
inlineoverride |
The mean of the IHistogram3D along the x axis.
Definition at line 171 of file Generic3D.h.
|
inlineoverride |
The mean of the IHistogram3D along the y axis.
Definition at line 174 of file Generic3D.h.
|
inlineoverride |
The mean of the IHistogram3D along the z axis.
Definition at line 176 of file Generic3D.h.
|
override |
Get the minimum height of the in-range bins.
Definition at line 271 of file Generic3D.h.
|
inline |
object name
Definition at line 60 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 311 of file Generic3D.h.
|
inlineoverridevirtual |
ROOT object implementation.
Implements Gaudi::HistogramBase.
Definition at line 49 of file Generic3D.h.
|
inline |
Definition at line 83 of file Generic3D.h.
|
inline |
Definition at line 84 of file Generic3D.h.
|
inline |
Definition at line 85 of file Generic3D.h.
|
inlineoverride |
The RMS of the IHistogram3D along the x axis.
Definition at line 178 of file Generic3D.h.
|
inlineoverride |
The RMS of the IHistogram3D along the y axis.
Definition at line 180 of file Generic3D.h.
|
inlineoverride |
The RMS of the IHistogram3D along the z axis.
Definition at line 182 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 304 of file Generic3D.h.
bool Gaudi::Generic3D< INTERFACE, IMPLEMENTATION >::setName | ( | const std::string & | newName | ) |
Sets the name of the object.
Definition at line 252 of file Generic3D.h.
|
override |
Set the title of the object.
Definition at line 243 of file Generic3D.h.
|
override |
Get the sum of all the bins heights (including underflow and overflow bin).
Definition at line 289 of file Generic3D.h.
|
override |
Get the sum of in range bin heights in the IProfile.
Definition at line 283 of file Generic3D.h.
|
inlineoverride |
Get the sum of the underflow and overflow bin height.
Definition at line 77 of file Generic3D.h.
|
inlineoverride |
Get the title of the object.
Definition at line 56 of file Generic3D.h.
|
overridevirtual |
Write (ASCII) the histogram table into the output stream.
Implements Gaudi::HistogramBase.
Definition at line 320 of file Generic3D.h.
|
overridevirtual |
Write (ASCII) the histogram table into a file.
Implements Gaudi::HistogramBase.
Definition at line 335 of file Generic3D.h.
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
mutableprotected |
Object annotations.
Definition at line 233 of file Generic3D.h.
|
protected |
Definition at line 237 of file Generic3D.h.
|
protected |
Reference to underlying implementation.
Definition at line 235 of file Generic3D.h.
|
protected |
Definition at line 239 of file Generic3D.h.
|
protected |
Definition at line 229 of file Generic3D.h.
|
protected |
Definition at line 230 of file Generic3D.h.
|
protected |
Definition at line 231 of file Generic3D.h.