![]() |
The Gaudi Framework
v25r3
|
AIDA implementation for 2 D histograms using ROOT THD2. More...
#include <src/HistogramSvc/H2D.h>
Public Member Functions | |
Histogram2D () | |
Standard Constructor. More... | |
Histogram2D (TH2D *rep) | |
Standard initializing Constructor with TH2D representation to be adopted. More... | |
virtual | ~Histogram2D () |
Destructor. More... | |
bool | fill (double x, double y, double weight=1.) |
Fill the Histogram2D with a value and the. More... | |
virtual bool | setBinContents (int binIndexX, int binIndexY, int entries, double height, double error, double centreX, double centreY) |
Fast filling method for a given bin. It can be also the over/underflow bin. More... | |
bool | setRms (double rmsX, double rmsY) |
Sets the rms of the histogram. More... | |
bool | reset () |
void | copyFromAida (const IHistogram2D &h) |
Create new histogram from any AIDA based histogram. More... | |
virtual const CLID & | clID () const |
Retrieve reference to class defininition identifier. More... | |
![]() | |
DataObject () | |
Standard Constructor. More... | |
DataObject (const DataObject &) | |
Copy Constructor. More... | |
virtual | ~DataObject () |
Standard Destructor. More... | |
virtual unsigned long | addRef () |
Add reference to object. More... | |
virtual unsigned long | release () |
release reference to object More... | |
const std::string & | name () const |
Retreive DataObject name. It is the name when registered in the store. More... | |
virtual StatusCode | update () |
Provide empty placeholder for internal object reconfiguration callback. More... | |
void | setRegistry (IRegistry *pRegistry) |
Set pointer to Registry. More... | |
IRegistry * | registry () const |
Get pointer to Registry. More... | |
LinkManager * | linkMgr () const |
Retrieve Link manager. More... | |
unsigned char | version () const |
Retrieve version number of this object representation. More... | |
void | setVersion (unsigned char vsn) |
Set version number of this object representation. More... | |
unsigned long | refCount () const |
Return the refcount. More... | |
virtual std::ostream & | fillStream (std::ostream &s) const |
Fill the output stream (ASCII) More... | |
![]() | |
Generic2D () | |
virtual | ~Generic2D () |
Destructor. More... | |
TObject * | representation () const |
ROOT object implementation. More... | |
virtual void | adoptRepresentation (TObject *rep) |
Adopt ROOT histogram representation. More... | |
virtual std::string | title () const |
Get the title of the object. More... | |
virtual bool | setTitle (const std::string &title) |
Set the title of the object. More... | |
std::string | name () const |
object name More... | |
bool | setName (const std::string &newName) |
Set the name of the object. More... | |
virtual AIDA::IAnnotation & | annotation () |
Access annotation object. More... | |
virtual const AIDA::IAnnotation & | annotation () const |
Access annotation object (cons) More... | |
virtual const AIDA::IAxis & | xAxis () const |
Return the X axis. More... | |
virtual const AIDA::IAxis & | yAxis () const |
Return the Y axis. More... | |
virtual int | rIndexX (int index) const |
operator methods More... | |
virtual int | rIndexY (int index) const |
operator methods More... | |
virtual int | entries () const |
Get the number or all the entries. More... | |
virtual int | allEntries () const |
Get the number or all the entries, both in range and underflow/overflow bins of the IProfile. More... | |
virtual int | extraEntries () const |
Get the number of entries in the underflow and overflow bins. More... | |
virtual double | sumBinHeights () const |
Get the sum of in range bin heights in the IProfile. More... | |
virtual double | sumAllBinHeights () const |
Get the sum of all the bins heights (including underflow and overflow bin). More... | |
virtual double | sumExtraBinHeights () const |
Get the sum of the underflow and overflow bin height. More... | |
virtual double | minBinHeight () const |
Get the minimum height of the in-range bins. More... | |
virtual double | maxBinHeight () const |
Get the maximum height of the in-range bins. More... | |
virtual double | binMeanX (int indexX, int indexY) const |
The weighted mean along x of a given bin. More... | |
virtual double | binMeanY (int indexX, int indexY) const |
The weighted mean along y of a given bin. More... | |
virtual int | binEntries (int indexX, int indexY) const |
The number of entries (ie the number of times fill was called for this bin). More... | |
virtual int | binEntriesX (int indexX) const |
Equivalent to projectionX().binEntries(indexX) . More... | |
virtual int | binEntriesY (int indexY) const |
Equivalent to projectionY().binEntries(indexY) . More... | |
virtual double | binHeight (int indexX, int indexY) const |
Total height of the corresponding bin (ie the sum of the weights in this bin). More... | |
virtual double | binHeightX (int indexX) const |
Equivalent to projectionX().binHeight(indexX) . More... | |
virtual double | binHeightY (int indexY) const |
Equivalent to projectionY().binHeight(indexY) . More... | |
virtual double | binError (int indexX, int indexY) const |
The error on this bin. More... | |
virtual double | binRms (int indexX, int indexY) const |
The spread (RMS) of this bin. More... | |
virtual double | meanX () const |
Returns the mean of the profile, as calculated on filling-time projected on the X axis. More... | |
virtual double | meanY () const |
Returns the mean of the profile, as calculated on filling-time projected on the Y axis. More... | |
virtual double | rmsX () const |
Returns the rms of the profile as calculated on filling-time projected on the X axis. More... | |
virtual double | rmsY () const |
Returns the rms of the profile as calculated on filling-time projected on the Y axis. More... | |
virtual int | coordToIndexX (double coordX) const |
Convenience method, equivalent to xAxis().coordToIndex(coord) . More... | |
virtual int | coordToIndexY (double coordY) const |
Convenience method, equivalent to yAxis().coordToIndex(coord) . More... | |
virtual double | equivalentBinEntries () const |
Number of equivalent entries, i.e. SUM[ weight ] ^ 2 / SUM[ weight^2 ] More... | |
virtual bool | scale (double scaleFactor) |
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... | |
virtual bool | add (const INTERFACE &h) |
Modifies this profile by adding the contents of profile to it. More... | |
bool | reset () |
void * | cast (const std::string &className) const |
Introspection method. More... | |
const std::string & | userLevelClassType () const |
The AIDA user-level unterface leaf class type. More... | |
virtual int | dimension () const |
Get the Histogram's dimension. More... | |
virtual std::ostream & | print (std::ostream &s) const |
Print (ASCII) the histogram into the output stream. More... | |
virtual std::ostream & | write (std::ostream &s) const |
Write (ASCII) the histogram table into the output stream. More... | |
virtual int | write (const char *file_name) const |
Write (ASCII) the histogram table into a file. More... | |
template<> | |
void * | cast (const std::string &className) const |
template<> | |
int | binEntries (int indexX, int indexY) const |
template<> | |
void | adoptRepresentation (TObject *rep) |
Adopt ROOT histogram representation. More... | |
template<> | |
void * | cast (const std::string &className) const |
template<> | |
int | binEntries (int idX, int idY) const |
template<> | |
void | adoptRepresentation (TObject *rep) |
Adopt ROOT histogram representation. More... | |
![]() | |
virtual | ~HistogramBase () |
Static Public Member Functions | |
static const CLID & | classID () |
![]() | |
static const CLID & | classID () |
Retrieve reference to class definition structure (static access) More... | |
Protected Attributes | |
double | m_sumwx |
double | m_sumwy |
![]() | |
Axis | m_xAxis |
X axis member. More... | |
Axis | m_yAxis |
Y axis member. More... | |
AIDA::Annotation | m_annotation |
Object annotations. More... | |
IMPLEMENTATION * | m_rep |
Reference to underlying implementation. More... | |
std::string | m_classType |
class type More... | |
int | m_sumEntries |
cache sumEntries (allEntries) when setting contents since Root can't compute by himself More... | |
Additional Inherited Members | |
![]() | |
typedef Generic2D< INTERFACE, IMPLEMENTATION > | Base |
Gaudi::Histogram2D::Histogram2D | ( | ) |
Standard Constructor.
Definition at line 120 of file H2D.cpp.
Gaudi::Histogram2D::Histogram2D | ( | TH2D * | rep | ) |
Standard initializing Constructor with TH2D representation to be adopted.
Definition at line 129 of file H2D.cpp.
|
inlinevirtual |
|
inlinestatic |
|
inlinevirtual |
Retrieve reference to class defininition identifier.
Reimplemented from DataObject.
Definition at line 41 of file H2D.h.
void Gaudi::Histogram2D::copyFromAida | ( | const IHistogram2D & | h | ) |
Create new histogram from any AIDA based histogram.
Definition at line 186 of file H2D.cpp.
bool Gaudi::Histogram2D::fill | ( | double | x, |
double | y, | ||
double | weight = 1. |
||
) |
Fill the Histogram2D with a value and the.
Definition at line 161 of file H2D.cpp.
|
virtual |
Fast filling method for a given bin. It can be also the over/underflow bin.
Definition at line 137 of file H2D.cpp.
bool Gaudi::Histogram2D::setRms | ( | double | rmsX, |
double | rmsY | ||
) |
Sets the rms of the histogram.
Definition at line 166 of file H2D.cpp.