T_ProfileHisto2D Class Reference (original) (raw)

This website is no longer maintained. Its content may be obsolete.
Please visit https://home.cern/ for current CERN information.

List of all members.

Public Types
typedef T_ProfileHisto2D Like_Current
Convenience typedef to current type.
Public Methods
H_IID_IMPLEMENT ( T_ProfileHisto2D )
Very simple RTTI feature.
typedef H_T_REF ( Like_Current ) Ref_Like_Current
Convenience typedef to reference to current type.
T_ProfileHisto2D ( const char *a_title , Size n1, double x1 , double x2 , Size n2, double y1 , double y2 , End_Point_Convention epc1 = RIGHT_OPEN , End_Point_Convention epc2 = RIGHT_OPEN )
Create a transient 2D histo with Profile_Bin and fixed partition. More...
T_ProfileHisto2D ( I_Histo &a_histo, int copy_data = 1 )
Copy constructor. More...
T_ProfileHisto2D (const I_Histo &a_histo, int copy_data = 1 )
Copy constructor taking const reference. More...
virtual ~T_ProfileHisto2D ()
Destructor.
void fill ( double x, double y, double k , double w = 1.0)
Fill histo with datapoints ( x , y ) weight w and character value k.
double bin_center ( Index i, Index j, Index p = 0 )
Center of the bin indexed by ( i , j ) projected on axis p.
double mean ( Index p=0 )
Mean projected on axis p.
double rms (Index p=0)
RMS (Root Mean Square) projected on axis p.
Ref_Like_Current clone ( int copy_data = 1 )
Clone the histogram. More...
Ref_Like_Current clone ( H_T_CLUSTER1(a_place), int copy_data = 1 )
Clone the histogram. More...
Ref_Like_Current add ( const Ref_Like_Current &other )
Add another histogram of the same type to this one.
void add ( const I_Histo &other )
Add another histogram to this one using the abstract interface.
Ref_Like_Current sub ( const Ref_Like_Current &other )
Subtract another histogram of the same type from this one.
void sub ( const I_Histo &other )
Subtract another histogram from this one using the abstract interface.
Ref_Like_Current mul ( const Ref_Like_Current &other )
Multiply another histogram of the same type to this one.
void mul ( const I_Histo &other )
Multiply another histogram to this one using the abstract interface.
Ref_Like_Current div ( const Ref_Like_Current &other )
Divide this histogram by another of the same type.
void div ( const I_Histo &other )
Divide this histogram by another one using the abstract interface.
void add ( double x )
Add a scalar to this histogram.
void sub ( double x )
Subtract a scalar from this histogram.
void mul ( double x )
Multiply by a scalar this histogram.
void div ( double x )
Divide by scalar this histogram.
Protected Methods
virtual T_REF_I_Histo clone_ ( int copy_data = 1 )
virtual T_REF_I_Histo clone_ ( H_T_CLUSTER1(a_place), int copy_data = 1 )

Detailed Description

2D histogram with Profile_Bin and fixed partition.

Values stored in the bins are `double'.


Member Typedef Documentation

**typedef T_ProfileHisto2D T_ProfileHisto2D::Like_Current

Convenience typedef to current type.


Constructor & Destructor Documentation

Create a transient 2D histo with Profile_Bin and fixed partition.

Parameters:

a_title: title of the histo
n1: number of (in range) bins on axis X
x1 and x2: (x1,x2) is the interval of in range bins
epc1: global endpoint convention (RIGHT_OPEN or LEFT_OPEN) on X axis
n2: number of (in range) bins on Y axis
y1 and y2: (y1,y2) is the interval of in range bins
epc2: global endpoint convention (RIGHT_OPEN or LEFT_OPEN) on Y axis

| T_ProfileHisto2D::T_ProfileHisto2D ( | | | ------------------------------------------ | |

I_Histo & a_histo,

int copy_data = 1)

Copy constructor.

If copy_data == 1 the content of the histogram is copied as well, otherwise the copy is empty.

| T_ProfileHisto2D::T_ProfileHisto2D ( | const | | ------------------------------------------ | --------- |

I_Histo & a_histo,

int copy_data = 1)

Copy constructor taking const reference.

If copy_data == 1 the content of the histogram is copied as well, otherwise the copy is empty.

**T_ProfileHisto2D::~T_ProfileHisto2D () [inline, virtual]


Member Function Documentation

| T_ProfileHisto2D::H_IID_IMPLEMENT ( | T_ProfileHisto2D) | | ------------------------------------------ | ---------------------- |

Very simple RTTI feature.

Convenience typedef to reference to current type.

| void T_ProfileHisto2D::add ( | double x) [inline] | | --------------------------------- | -------------------------- |

Add a scalar to this histogram.

| void T_ProfileHisto2D::add ( | const | | --------------------------------- | --------- |

I_Histo & other) [inline]

Add another histogram to this one using the abstract interface.

| Ref_Like_Current T_ProfileHisto2D::add ( | const Ref_Like_Current & other) [inline] | | ----------------------------------------------- | -------------------------------------------------- |

Add another histogram of the same type to this one.

| double T_ProfileHisto2D::bin_center ( | | | ------------------------------------------- | |

Index i,

Index j,

Index p = 0) [inline]

Center of the bin indexed by ( i , j ) projected on axis p.

| Ref_Like_Current T_ProfileHisto2D::clone ( | H_T_CLUSTER1(a_place), | | ------------------------------------------------- | ----------------------------- | | int copy_data = 1) [inline] | |

Clone the histogram.

The first parameter is a clustering hint. If copy_data is zero the clone is empty.

| Ref_Like_Current T_ProfileHisto2D::clone ( | int copy_data = 1) [inline] | | ------------------------------------------------- | ------------------------------------- |

Clone the histogram.

If copy_data is zero the clone is empty.

| T_REF_I_Histo T_ProfileHisto2D::clone_ ( | H_T_CLUSTER1(a_place), | | --------------------------------------------------------- | ----------------------------- | | int copy_data = 1) [inline, protected, virtual] | |

| T_REF_I_Histo T_ProfileHisto2D::clone_ ( | int copy_data = 1) [inline, protected, virtual] | | ------------------------------------------------- | --------------------------------------------------------- |

| void T_ProfileHisto2D::div ( | double x) [inline] | | --------------------------------- | -------------------------- |

Divide by scalar this histogram.

| void T_ProfileHisto2D::div ( | const | | --------------------------------- | --------- |

I_Histo & other) [inline]

Divide this histogram by another one using the abstract interface.

| Ref_Like_Current T_ProfileHisto2D::div ( | const Ref_Like_Current & other) [inline] | | ----------------------------------------------- | -------------------------------------------------- |

Divide this histogram by another of the same type.

| void T_ProfileHisto2D::fill ( | double x, | | ---------------------------------- | --------------- | | double y, | | | double k, | | | double w = 1.0) [inline] | |

Fill histo with datapoints ( x , y ) weight w and character value k.

| double T_ProfileHisto2D::mean ( | | | ------------------------------------ | |

Index p = 0) [inline]

Mean projected on axis p.

| void T_ProfileHisto2D::mul ( | double x) [inline] | | --------------------------------- | -------------------------- |

Multiply by a scalar this histogram.

| void T_ProfileHisto2D::mul ( | const | | --------------------------------- | --------- |

I_Histo & other) [inline]

Multiply another histogram to this one using the abstract interface.

| Ref_Like_Current T_ProfileHisto2D::mul ( | const Ref_Like_Current & other) [inline] | | ----------------------------------------------- | -------------------------------------------------- |

Multiply another histogram of the same type to this one.

| double T_ProfileHisto2D::rms ( | | | ----------------------------------- | |

Index p = 0) [inline]

RMS (Root Mean Square) projected on axis p.

| void T_ProfileHisto2D::sub ( | double x) [inline] | | --------------------------------- | -------------------------- |

Subtract a scalar from this histogram.

| void T_ProfileHisto2D::sub ( | const | | --------------------------------- | --------- |

I_Histo & other) [inline]

Subtract another histogram from this one using the abstract interface.

| Ref_Like_Current T_ProfileHisto2D::sub ( | const Ref_Like_Current & other) [inline] | | ----------------------------------------------- | -------------------------------------------------- |

Subtract another histogram of the same type from this one.


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


Generated at Fri Nov 24 09:28:38 2000 for TransientHTL by doxygen 1.1.2 written by Dimitri van Heesch, © 1997-2000