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


Public Types | |
| typedef Generic1D< INTERFACE,  IMPLEMENTATION >  | Base | 
Public Member Functions | |
| Generic1D () | |
| Default constructor.  More... | |
| virtual | ~Generic1D () | 
| Default destructor.  More... | |
| virtual const std::string & | userLevelClassType () const | 
| The AIDA user-level unterface leaf class type.  More... | |
| virtual void * | cast (const std::string &cl) const | 
| Manual cast by class name.  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... | |
| Axis & | axis () | 
| Access to axis object.  More... | |
| const Axis & | axis () const | 
| Get the x axis of the IHistogram1D.  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 int | binEntries (int index) const | 
| Number of entries in the corresponding bin (ie the number of times fill was called for this bin).  More... | |
| virtual double | binRms (int index) const | 
| 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 | 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 | reset () | 
| Reset the Histogram; as if just created.  More... | |
| virtual bool | add (const INTERFACE &profile) | 
| Modifies this IProfile1D by adding the contents of profile to it.  More... | |
| virtual int | rIndex (int index) const | 
| operator methods  More... | |
| virtual double | binMean (int index) const | 
| The weighted mean of a bin.  More... | |
| virtual double | binHeight (int index) const | 
| Total height of the corresponding bin (ie the sum of the weights in this bin).  More... | |
| virtual double | binError (int index) const | 
| The error of a given bin.  More... | |
| virtual double | mean () const | 
| The mean of the whole IHistogram1D.  More... | |
| virtual double | rms () const | 
| The RMS of the whole IHistogram1D.  More... | |
| virtual int | coordToIndex (double coord) const | 
| Get the bin number corresponding to a given coordinate along the x axis.  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 index) const | 
| template<> | |
| void | adoptRepresentation (TObject *rep) | 
| Adopt ROOT histogram representation.  More... | |
| template<> | |
| int | binEntries (int index) const | 
| template<> | |
| void * | cast (const std::string &className) const | 
| template<> | |
| void | adoptRepresentation (TObject *rep) | 
| Adopt ROOT histogram representation.  More... | |
  Public Member Functions inherited from Gaudi::HistogramBase | |
| virtual | ~HistogramBase () | 
Protected Attributes | |
| Axis | m_axis | 
| Axis member.  More... | |
| 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 Generic1D.h.
| typedef Generic1D<INTERFACE,IMPLEMENTATION> Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::Base | 
Definition at line 31 of file Generic1D.h.
      
  | 
  inline | 
Default constructor.
Definition at line 33 of file Generic1D.h.
      
  | 
  inlinevirtual | 
Default destructor.
Definition at line 35 of file Generic1D.h.
      
  | 
  virtual | 
Modifies this IProfile1D by adding the contents of profile to it.
Definition at line 190 of file Generic1D.h.
      
  | 
  virtual | 
Adopt ROOT histogram representation.
Implements Gaudi::HistogramBase.
Reimplemented in Gaudi::Histogram1D.
      
  | 
  virtual | 
Adopt ROOT histogram representation.
Implements Gaudi::HistogramBase.
Definition at line 49 of file H1D.cpp.
      
  | 
  virtual | 
Adopt ROOT histogram representation.
Implements Gaudi::HistogramBase.
Definition at line 59 of file P1D.cpp.
      
  | 
  inlinevirtual | 
Get the number or all the entries, both in range and underflow/overflow bins of the IProfile.
Definition at line 64 of file Generic1D.h.
      
  | 
  inlinevirtual | 
Access annotation object.
Definition at line 53 of file Generic1D.h.
      
  | 
  inlinevirtual | 
Access annotation object (cons)
Definition at line 55 of file Generic1D.h.
      
  | 
  inline | 
      
  | 
  inline | 
| int Gaudi::Generic1D< AIDA::IHistogram1D, TH1D >::binEntries | ( | int | index | ) | const | 
Definition at line 42 of file H1D.cpp.
| int Gaudi::Generic1D< AIDA::IProfile1D, TProfile >::binEntries | ( | int | index | ) | const | 
Definition at line 44 of file P1D.cpp.
      
  | 
  virtual | 
Number of entries in the corresponding bin (ie the number of times fill was called for this bin).
      
  | 
  virtual | 
The error of a given bin.
Definition at line 159 of file Generic1D.h.
      
  | 
  virtual | 
Total height of the corresponding bin (ie the sum of the weights in this bin).
Definition at line 154 of file Generic1D.h.
      
  | 
  virtual | 
The weighted mean of a bin.
Definition at line 149 of file Generic1D.h.
      
  | 
  virtual | 
Definition at line 144 of file Generic1D.h.
| void * Gaudi::Generic1D< AIDA::IHistogram1D, TH1D >::cast | ( | const std::string & | className | ) | const | 
      
  | 
  virtual | 
Manual cast by class name.
| void * Gaudi::Generic1D< AIDA::IProfile1D, TProfile >::cast | ( | const std::string & | className | ) | const | 
      
  | 
  inlinevirtual | 
Get the bin number corresponding to a given coordinate along the x axis.
Definition at line 103 of file Generic1D.h.
      
  | 
  inlinevirtual | 
      
  | 
  inlinevirtual | 
Get the number or all the entries.
Definition at line 62 of file Generic1D.h.
      
  | 
  virtual | 
Number of equivalent entries, i.e. SUM[ weight ] ^ 2 / SUM[ weight^2 ] 
Definition at line 176 of file Generic1D.h.
      
  | 
  virtual | 
Get the number of entries in the underflow and overflow bins.
Definition at line 164 of file Generic1D.h.
      
  | 
  inlinevirtual | 
Get the maximum height of the in-range bins.
Definition at line 80 of file Generic1D.h.
      
  | 
  inlinevirtual | 
The mean of the whole IHistogram1D.
Definition at line 99 of file Generic1D.h.
      
  | 
  inlinevirtual | 
Get the minimum height of the in-range bins.
Definition at line 78 of file Generic1D.h.
      
  | 
  inline | 
object name
Definition at line 49 of file Generic1D.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 201 of file Generic1D.h.
      
  | 
  inlinevirtual | 
ROOT object implementation.
Implements Gaudi::HistogramBase.
Definition at line 41 of file Generic1D.h.
      
  | 
  virtual | 
Reset the Histogram; as if just created.
Reimplemented in Gaudi::Histogram1D.
Definition at line 169 of file Generic1D.h.
      
  | 
  inlinevirtual | 
operator methods
Definition at line 91 of file Generic1D.h.
      
  | 
  inlinevirtual | 
The RMS of the whole IHistogram1D.
Definition at line 101 of file Generic1D.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 184 of file Generic1D.h.
| bool Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::setName | ( | const std::string & | newName | ) | 
Set the name of the object.
Definition at line 137 of file Generic1D.h.
      
  | 
  virtual | 
Set the title of the object.
Definition at line 127 of file Generic1D.h.
      
  | 
  inlinevirtual | 
Get the sum of all the bins heights (including underflow and overflow bin).
Definition at line 74 of file Generic1D.h.
      
  | 
  inlinevirtual | 
Get the sum of in range bin heights in the IProfile.
Definition at line 72 of file Generic1D.h.
      
  | 
  inlinevirtual | 
Get the sum of the underflow and overflow bin height.
Definition at line 76 of file Generic1D.h.
      
  | 
  inlinevirtual | 
Get the title of the object.
Definition at line 45 of file Generic1D.h.
      
  | 
  inlinevirtual | 
      
  | 
  virtual | 
Write (ASCII) the histogram table into the output stream.
Implements Gaudi::HistogramBase.
Definition at line 209 of file Generic1D.h.
      
  | 
  virtual | 
Write (ASCII) the histogram table into a file.
Implements Gaudi::HistogramBase.
Definition at line 222 of file Generic1D.h.
      
  | 
  mutableprotected | 
Object annotations.
Definition at line 117 of file Generic1D.h.
      
  | 
  protected | 
Axis member.
Definition at line 115 of file Generic1D.h.
      
  | 
  protected | 
Definition at line 121 of file Generic1D.h.
      
  | 
  protected | 
Reference to underlying implementation.
Definition at line 119 of file Generic1D.h.
      
  | 
  protected | 
Definition at line 123 of file Generic1D.h.