![]()  | 
  
    The Gaudi Framework
    v26r0
    
   | 
 
Common AIDA implementation stuff for histograms and profiles using ROOT implementations. More...
#include <GaudiPI/Generic2D.h>


Public Types | |
| typedef Generic2D< INTERFACE,  IMPLEMENTATION >  | Base | 
Public Member Functions | |
| 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... | |
  Public Member Functions inherited from Gaudi::HistogramBase | |
| virtual | ~HistogramBase () | 
Protected Attributes | |
| 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... | |
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 30 of file Generic2D.h.
| typedef Generic2D<INTERFACE,IMPLEMENTATION> Gaudi::Generic2D< INTERFACE, IMPLEMENTATION >::Base | 
Definition at line 32 of file Generic2D.h.
      
  | 
  inline | 
Definition at line 34 of file Generic2D.h.
      
  | 
  inlinevirtual | 
Destructor.
Definition at line 37 of file Generic2D.h.
      
  | 
  virtual | 
Modifies this profile by adding the contents of profile to it.
Definition at line 286 of file Generic2D.h.
      
  | 
  virtual | 
Adopt ROOT histogram representation.
Implements Gaudi::HistogramBase.
      
  | 
  virtual | 
Adopt ROOT histogram representation.
Implements Gaudi::HistogramBase.
Definition at line 71 of file P2D.cpp.
      
  | 
  virtual | 
Adopt ROOT histogram representation.
Implements Gaudi::HistogramBase.
Definition at line 104 of file H2D.cpp.
      
  | 
  virtual | 
Get the number or all the entries, both in range and underflow/overflow bins of the IProfile.
Definition at line 173 of file Generic2D.h.
      
  | 
  inlinevirtual | 
Access annotation object.
Definition at line 52 of file Generic2D.h.
      
  | 
  inlinevirtual | 
Access annotation object (cons)
Definition at line 54 of file Generic2D.h.
| int Gaudi::Generic2D< AIDA::IProfile2D, TProfile2D >::binEntries | ( | int | idX, | 
| int | idY | ||
| ) | const | 
Definition at line 65 of file P2D.cpp.
      
  | 
  virtual | 
The number of entries (ie the number of times fill was called for this bin).
| int Gaudi::Generic2D< IHistogram2D, TH2D >::binEntries | ( | int | indexX, | 
| int | indexY | ||
| ) | const | 
Definition at line 97 of file H2D.cpp.
      
  | 
  virtual | 
Equivalent to projectionX().binEntries(indexX). 
Definition at line 213 of file Generic2D.h.
      
  | 
  virtual | 
Equivalent to projectionY().binEntries(indexY). 
Definition at line 221 of file Generic2D.h.
      
  | 
  virtual | 
The error on this bin.
Definition at line 251 of file Generic2D.h.
      
  | 
  virtual | 
Total height of the corresponding bin (ie the sum of the weights in this bin).
Definition at line 229 of file Generic2D.h.
      
  | 
  virtual | 
Equivalent to projectionX().binHeight(indexX). 
Definition at line 234 of file Generic2D.h.
      
  | 
  virtual | 
Equivalent to projectionY().binHeight(indexY). 
Definition at line 243 of file Generic2D.h.
      
  | 
  virtual | 
The weighted mean along x of a given bin.
Definition at line 203 of file Generic2D.h.
      
  | 
  virtual | 
The weighted mean along y of a given bin.
Definition at line 208 of file Generic2D.h.
      
  | 
  virtual | 
The spread (RMS) of this bin.
Definition at line 198 of file Generic2D.h.
| void * Gaudi::Generic2D< AIDA::IProfile2D, TProfile2D >::cast | ( | const std::string & | className | ) | const | 
| void * Gaudi::Generic2D< IHistogram2D, TH2D >::cast | ( | const std::string & | className | ) | const | 
| void* Gaudi::Generic2D< INTERFACE, IMPLEMENTATION >::cast | ( | const std::string & | className | ) | const | 
Introspection method.
      
  | 
  virtual | 
Convenience method, equivalent to xAxis().coordToIndex(coord). 
Definition at line 276 of file Generic2D.h.
      
  | 
  virtual | 
Convenience method, equivalent to yAxis().coordToIndex(coord). 
Definition at line 281 of file Generic2D.h.
      
  | 
  inlinevirtual | 
      
  | 
  virtual | 
Get the number or all the entries.
Definition at line 168 of file Generic2D.h.
      
  | 
  virtual | 
Number of equivalent entries, i.e. SUM[ weight ] ^ 2 / SUM[ weight^2 ] 
Definition at line 305 of file Generic2D.h.
      
  | 
  virtual | 
Get the number of entries in the underflow and overflow bins.
Definition at line 296 of file Generic2D.h.
      
  | 
  virtual | 
Get the maximum height of the in-range bins.
Definition at line 183 of file Generic2D.h.
      
  | 
  virtual | 
Returns the mean of the profile, as calculated on filling-time projected on the X axis.
Definition at line 256 of file Generic2D.h.
      
  | 
  virtual | 
Returns the mean of the profile, as calculated on filling-time projected on the Y axis.
Definition at line 261 of file Generic2D.h.
      
  | 
  virtual | 
Get the minimum height of the in-range bins.
Definition at line 178 of file Generic2D.h.
      
  | 
  inline | 
object name
Definition at line 48 of file Generic2D.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 326 of file Generic2D.h.
      
  | 
  inlinevirtual | 
ROOT object implementation.
Implements Gaudi::HistogramBase.
Definition at line 40 of file Generic2D.h.
| bool Gaudi::Generic2D< INTERFACE, IMPLEMENTATION >::reset | ( | ) | 
Definition at line 319 of file Generic2D.h.
      
  | 
  inlinevirtual | 
operator methods
Definition at line 61 of file Generic2D.h.
      
  | 
  inlinevirtual | 
operator methods
Definition at line 63 of file Generic2D.h.
      
  | 
  virtual | 
Returns the rms of the profile as calculated on filling-time projected on the X axis.
Definition at line 266 of file Generic2D.h.
      
  | 
  virtual | 
Returns the rms of the profile as calculated on filling-time projected on the Y axis.
Definition at line 271 of file Generic2D.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 313 of file Generic2D.h.
| bool Gaudi::Generic2D< INTERFACE, IMPLEMENTATION >::setName | ( | const std::string & | newName | ) | 
Set the name of the object.
Definition at line 161 of file Generic2D.h.
      
  | 
  virtual | 
Set the title of the object.
Definition at line 151 of file Generic2D.h.
      
  | 
  virtual | 
Get the sum of all the bins heights (including underflow and overflow bin).
Definition at line 193 of file Generic2D.h.
      
  | 
  virtual | 
Get the sum of in range bin heights in the IProfile.
Definition at line 188 of file Generic2D.h.
      
  | 
  inlinevirtual | 
Get the sum of the underflow and overflow bin height.
Definition at line 76 of file Generic2D.h.
      
  | 
  inlinevirtual | 
Get the title of the object.
Definition at line 44 of file Generic2D.h.
      
  | 
  inline | 
      
  | 
  virtual | 
Write (ASCII) the histogram table into the output stream.
Implements Gaudi::HistogramBase.
Definition at line 335 of file Generic2D.h.
      
  | 
  virtual | 
Write (ASCII) the histogram table into a file.
Implements Gaudi::HistogramBase.
Definition at line 353 of file Generic2D.h.
      
  | 
  inlinevirtual | 
      
  | 
  inlinevirtual | 
      
  | 
  mutableprotected | 
Object annotations.
Definition at line 141 of file Generic2D.h.
      
  | 
  protected | 
class type
Definition at line 145 of file Generic2D.h.
      
  | 
  protected | 
Reference to underlying implementation.
Definition at line 143 of file Generic2D.h.
      
  | 
  protected | 
cache sumEntries (allEntries) when setting contents since Root can't compute by himself
Definition at line 147 of file Generic2D.h.
      
  | 
  protected | 
X axis member.
Definition at line 137 of file Generic2D.h.
      
  | 
  protected | 
Y axis member.
Definition at line 139 of file Generic2D.h.