![]()  | 
  
    The Gaudi Framework
    v26r0
    
   | 
 
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 constructor.  More... | |
| virtual | ~Generic3D () | 
| Destructor.  More... | |
| TObject * | representation () const | 
| ROOT object implementation.  More... | |
| virtual void | adoptRepresentation (TObject *rep) | 
| Adopt ROOT histogram representation.  More... | |
| virtual int | dimension () const | 
| Get the Histogram's dimension.  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... | |
| virtual std::string | name () const | 
| object name  More... | |
| bool | setName (const std::string &newName) | 
| Sets 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 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 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... | |
| int | rIndexX (int index) const | 
| int | rIndexY (int index) const | 
| int | rIndexZ (int index) const | 
| double | binMeanX (int indexX, int, int) const | 
| The weighted mean along the x axis of a given bin.  More... | |
| double | binMeanY (int, int indexY, int) const | 
| The weighted mean along the y axis of a given bin.  More... | |
| double | binMeanZ (int, int, int indexZ) const | 
| The weighted mean along the z axis of a given bin.  More... | |
| int | binEntries (int indexX, int indexY, int indexZ) const | 
| Number of entries in the corresponding bin (ie the number of times fill was calle d for this bin).  More... | |
| virtual int | binEntriesX (int index) const | 
| Sum of all the entries of the bins along a given x bin.  More... | |
| virtual int | binEntriesY (int index) const | 
| Sum of all the entries of the bins along a given y bin.  More... | |
| virtual int | binEntriesZ (int index) const | 
| 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... | |
| virtual double | binHeightX (int index) const | 
| Sum of all the heights of the bins along a given x bin.  More... | |
| virtual double | binHeightY (int index) const | 
| Sum of all the heights of the bins along a given y bin.  More... | |
| virtual double | binHeightZ (int index) const | 
| Sum of all the heights of the bins along a given z bin.  More... | |
| virtual double | binError (int indexX, int indexY, int indexZ) const | 
| The error of a given bin.  More... | |
| virtual double | meanX () const | 
| The mean of the IHistogram3D along the x axis.  More... | |
| virtual double | meanY () const | 
| The mean of the IHistogram3D along the y axis.  More... | |
| virtual double | meanZ () const | 
| The mean of the IHistogram3D along the z axis.  More... | |
| virtual double | rmsX () const | 
| The RMS of the IHistogram3D along the x axis.  More... | |
| virtual double | rmsY () const | 
| The RMS of the IHistogram3D along the y axis.  More... | |
| virtual double | rmsZ () const | 
| The RMS of the IHistogram3D along the z axis.  More... | |
| virtual const AIDA::IAxis & | xAxis () const | 
| Get the x axis of the IHistogram3D.  More... | |
| virtual const AIDA::IAxis & | yAxis () const | 
| Get the y axis of the IHistogram3D.  More... | |
| virtual const AIDA::IAxis & | zAxis () const | 
| Get the z axis of the IHistogram3D.  More... | |
| virtual int | coordToIndexX (double coord) const | 
| Get the bin number corresponding to a given coordinate along the x axis.  More... | |
| virtual int | coordToIndexY (double coord) const | 
| Get the bin number corresponding to a given coordinate along the y axis.  More... | |
| virtual int | coordToIndexZ (double coord) const | 
| Get the bin number corresponding to a given coordinate along the z axis.  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 &hist) | 
| Add to this Histogram3D the contents of another IHistogram3D.  More... | |
| int | extraEntries () const | 
| 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 | adoptRepresentation (TObject *rep) | 
| Adopt ROOT histogram representation.  More... | |
  Public Member Functions inherited from Gaudi::HistogramBase | |
| virtual | ~HistogramBase () | 
Protected Attributes | |
| Gaudi::Axis | m_xAxis | 
| Gaudi::Axis | m_yAxis | 
| Gaudi::Axis | m_zAxis | 
| AIDA::Annotation | m_annotation | 
| Object annotations.  More... | |
| IMPLEMENTATION * | m_rep | 
| Reference to underlying implementation.  More... | |
| std::string | m_classType | 
| int | m_sumEntries | 
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 29 of file Generic3D.h.
| typedef Generic3D<INTERFACE,IMPLEMENTATION> Gaudi::Generic3D< INTERFACE, IMPLEMENTATION >::Base | 
Definition at line 31 of file Generic3D.h.
      
  | 
  inline | 
Default constructor.
Definition at line 33 of file Generic3D.h.
      
  | 
  inlinevirtual | 
Destructor.
Definition at line 35 of file Generic3D.h.
      
  | 
  inlinevirtual | 
Add to this Histogram3D the contents of another IHistogram3D.
Definition at line 179 of file Generic3D.h.
      
  | 
  virtual | 
Adopt ROOT histogram representation.
Implements Gaudi::HistogramBase.
      
  | 
  virtual | 
Adopt ROOT histogram representation.
Implements Gaudi::HistogramBase.
Definition at line 61 of file H3D.cpp.
      
  | 
  virtual | 
Get the number or all the entries, both in range and underflow/overflow bins of the IProfile.
Definition at line 242 of file Generic3D.h.
      
  | 
  inlinevirtual | 
Access annotation object.
Definition at line 52 of file Generic3D.h.
      
  | 
  inlinevirtual | 
Access annotation object (cons)
Definition at line 54 of file Generic3D.h.
      
  | 
  inline | 
Number of entries in the corresponding bin (ie the number of times fill was calle d for this bin).
Definition at line 85 of file Generic3D.h.
      
  | 
  inlinevirtual | 
Sum of all the entries of the bins along a given x bin.
Definition at line 91 of file Generic3D.h.
      
  | 
  inlinevirtual | 
Sum of all the entries of the bins along a given y bin.
Definition at line 100 of file Generic3D.h.
      
  | 
  inlinevirtual | 
Sum of all the entries of the bins along a given z bin.
Definition at line 109 of file Generic3D.h.
      
  | 
  inlinevirtual | 
The error of a given bin.
Definition at line 146 of file Generic3D.h.
      
  | 
  inline | 
Total height of the corresponding bin (ie the sum of the weights in this bin).
Definition at line 118 of file Generic3D.h.
      
  | 
  inlinevirtual | 
Sum of all the heights of the bins along a given x bin.
Definition at line 122 of file Generic3D.h.
      
  | 
  inlinevirtual | 
Sum of all the heights of the bins along a given y bin.
Definition at line 130 of file Generic3D.h.
      
  | 
  inlinevirtual | 
Sum of all the heights of the bins along a given z bin.
Definition at line 138 of file Generic3D.h.
      
  | 
  inline | 
The weighted mean along the x axis of a given bin.
Definition at line 76 of file Generic3D.h.
      
  | 
  inline | 
The weighted mean along the y axis of a given bin.
Definition at line 79 of file Generic3D.h.
      
  | 
  inline | 
The weighted mean along the z axis of a given bin.
Definition at line 82 of file Generic3D.h.
      
  | 
  inlinevirtual | 
Get the bin number corresponding to a given coordinate along the x axis.
Definition at line 168 of file Generic3D.h.
      
  | 
  inlinevirtual | 
Get the bin number corresponding to a given coordinate along the y axis.
Definition at line 170 of file Generic3D.h.
      
  | 
  inlinevirtual | 
Get the bin number corresponding to a given coordinate along the z axis.
Definition at line 172 of file Generic3D.h.
      
  | 
  inlinevirtual | 
      
  | 
  virtual | 
Get the number or all the entries.
Definition at line 237 of file Generic3D.h.
      
  | 
  virtual | 
Number of equivalent entries, i.e. SUM[ weight ] ^ 2 / SUM[ weight^2 ] 
Definition at line 267 of file Generic3D.h.
      
  | 
  inline | 
Definition at line 189 of file Generic3D.h.
      
  | 
  virtual | 
Get the maximum height of the in-range bins.
Definition at line 252 of file Generic3D.h.
      
  | 
  inlinevirtual | 
The mean of the IHistogram3D along the x axis.
Definition at line 149 of file Generic3D.h.
      
  | 
  inlinevirtual | 
The mean of the IHistogram3D along the y axis.
Definition at line 152 of file Generic3D.h.
      
  | 
  inlinevirtual | 
The mean of the IHistogram3D along the z axis.
Definition at line 154 of file Generic3D.h.
      
  | 
  virtual | 
Get the minimum height of the in-range bins.
Definition at line 247 of file Generic3D.h.
      
  | 
  inlinevirtual | 
object name
Definition at line 48 of file Generic3D.h.
      
  | 
  virtual | 
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 281 of file Generic3D.h.
      
  | 
  inlinevirtual | 
ROOT object implementation.
Implements Gaudi::HistogramBase.
Definition at line 37 of file Generic3D.h.
      
  | 
  inline | 
Definition at line 71 of file Generic3D.h.
      
  | 
  inline | 
Definition at line 72 of file Generic3D.h.
      
  | 
  inline | 
Definition at line 73 of file Generic3D.h.
      
  | 
  inlinevirtual | 
The RMS of the IHistogram3D along the x axis.
Definition at line 156 of file Generic3D.h.
      
  | 
  inlinevirtual | 
The RMS of the IHistogram3D along the y axis.
Definition at line 158 of file Generic3D.h.
      
  | 
  inlinevirtual | 
The RMS of the IHistogram3D along the z axis.
Definition at line 160 of file Generic3D.h.
      
  | 
  virtual | 
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 275 of file Generic3D.h.
| bool Gaudi::Generic3D< INTERFACE, IMPLEMENTATION >::setName | ( | const std::string & | newName | ) | 
Sets the name of the object.
Definition at line 231 of file Generic3D.h.
      
  | 
  virtual | 
Set the title of the object.
Definition at line 221 of file Generic3D.h.
      
  | 
  virtual | 
Get the sum of all the bins heights (including underflow and overflow bin).
Definition at line 262 of file Generic3D.h.
      
  | 
  virtual | 
Get the sum of in range bin heights in the IProfile.
Definition at line 257 of file Generic3D.h.
      
  | 
  inlinevirtual | 
Get the sum of the underflow and overflow bin height.
Definition at line 65 of file Generic3D.h.
      
  | 
  inlinevirtual | 
Get the title of the object.
Definition at line 44 of file Generic3D.h.
      
  | 
  virtual | 
Write (ASCII) the histogram table into the output stream.
Implements Gaudi::HistogramBase.
Definition at line 291 of file Generic3D.h.
      
  | 
  virtual | 
Write (ASCII) the histogram table into a file.
Implements Gaudi::HistogramBase.
Definition at line 309 of file Generic3D.h.
      
  | 
  inlinevirtual | 
      
  | 
  inlinevirtual | 
      
  | 
  inlinevirtual | 
      
  | 
  mutableprotected | 
Object annotations.
Definition at line 211 of file Generic3D.h.
      
  | 
  protected | 
Definition at line 215 of file Generic3D.h.
      
  | 
  protected | 
Reference to underlying implementation.
Definition at line 213 of file Generic3D.h.
      
  | 
  protected | 
Definition at line 217 of file Generic3D.h.
      
  | 
  protected | 
Definition at line 207 of file Generic3D.h.
      
  | 
  protected | 
Definition at line 208 of file Generic3D.h.
      
  | 
  protected | 
Definition at line 209 of file Generic3D.h.