All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Gaudi::Profile2D Class Reference

AIDA implementation for 2 D profiles using ROOT TProfile2D. More...

Inheritance diagram for Gaudi::Profile2D:
Collaboration diagram for Gaudi::Profile2D:

Public Member Functions

 Profile2D ()
 Default Constructor. More...
 
 Profile2D (TProfile2D *rep)
 Default Constructor with representation object. More...
 
virtual ~Profile2D ()
 Destructor. More...
 
bool fill (double x, double y, double z, double weight)
 Fill bin content. More...
 
virtual const CLIDclID () const
 Retrieve reference to class defininition identifier. More...
 
- Public Member Functions inherited from DataObject
 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...
 
IRegistryregistry () const
 Get pointer to Registry. More...
 
LinkManagerlinkMgr () 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...
 
- Public Member Functions inherited from Gaudi::Generic2D< INTERFACE, IMPLEMENTATION >
 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 ()
 

Static Public Member Functions

static const CLIDclassID ()
 
- Static Public Member Functions inherited from DataObject
static const CLIDclassID ()
 Retrieve reference to class definition structure (static access) More...
 

Additional Inherited Members

- Public Types inherited from Gaudi::Generic2D< INTERFACE, IMPLEMENTATION >
typedef Generic2D< INTERFACE,
IMPLEMENTATION > 
Base
 
- Protected Attributes inherited from Gaudi::Generic2D< INTERFACE, IMPLEMENTATION >
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...
 

Detailed Description

AIDA implementation for 2 D profiles using ROOT TProfile2D.

Author
M.Frank

Definition at line 27 of file P2D.cpp.

Constructor & Destructor Documentation

Gaudi::Profile2D::Profile2D ( )
inline

Default Constructor.

Definition at line 30 of file P2D.cpp.

30  {
31  m_classType = "IProfile2D";
32  m_rep = new TProfile2D();
33  m_rep->SetErrorOption("s");
34  m_rep->SetDirectory(0);
35  m_sumEntries = 0;
36  }
int m_sumEntries
cache sumEntries (allEntries) when setting contents since Root can't compute by himself ...
Definition: Generic2D.h:147
std::string m_classType
class type
Definition: Generic2D.h:145
IMPLEMENTATION * m_rep
Reference to underlying implementation.
Definition: Generic2D.h:143
Gaudi::Profile2D::Profile2D ( TProfile2D *  rep)

Default Constructor with representation object.

Definition at line 103 of file P2D.cpp.

103  {
104  m_rep = 0;
105  m_classType = "IProfile2D";
106  rep->SetDirectory(0);
107  adoptRepresentation(rep);
108  m_sumEntries = 0;
109 }
int m_sumEntries
cache sumEntries (allEntries) when setting contents since Root can't compute by himself ...
Definition: Generic2D.h:147
std::string m_classType
class type
Definition: Generic2D.h:145
virtual void adoptRepresentation(TObject *rep)
Adopt ROOT histogram representation.
IMPLEMENTATION * m_rep
Reference to underlying implementation.
Definition: Generic2D.h:143
virtual Gaudi::Profile2D::~Profile2D ( )
inlinevirtual

Destructor.

Definition at line 40 of file P2D.cpp.

40 {}

Member Function Documentation

static const CLID& Gaudi::Profile2D::classID ( )
inlinestatic

Definition at line 48 of file P2D.cpp.

48 { return CLID_ProfileH2; }
virtual const CLID& Gaudi::Profile2D::clID ( ) const
inlinevirtual

Retrieve reference to class defininition identifier.

Reimplemented from DataObject.

Definition at line 47 of file P2D.cpp.

47 { return classID(); }
static const CLID & classID()
Definition: P2D.cpp:48
bool Gaudi::Profile2D::fill ( double  x,
double  y,
double  z,
double  weight 
)
inline

Fill bin content.

Definition at line 42 of file P2D.cpp.

42  {
43  m_rep->Fill(x,y,z,weight);
44  return true;
45  }
IMPLEMENTATION * m_rep
Reference to underlying implementation.
Definition: Generic2D.h:143

The documentation for this class was generated from the following file: