T_Histo1D_FTS 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_Histo1D_FTS Like_Current
Convenience typedef to current type.
Public Methods
H_IID_IMPLEMENT ( T_Histo1D_FTS )
typedef H_T_REF ( Like_Current ) Ref_Like_Current
Convenience typedef to reference to current type.
T_Histo1D_FTS ( const char *a_title, Size n, double x1 ,double x2, End_Point_Convention epc = RIGHT_OPEN)
Create a 1D histo with Weighted_Bin and fixed partition. More...
T_Histo1D_FTS ( I_Histo &a_histo, int copy_data = 1 )
Copy constructor. More...
T_Histo1D_FTS ( const I_Histo &a_histo, int copy_data = 1 )
Copy constructor taking const reference. More...
virtual ~T_Histo1D_FTS ()
Destructor.
void fill ( double x, double w = 1.0 )
Fill histo with datapoint x and weight w.
double bin_center ( Index i )
Center of bin indexed by i.
double mean ()
Return histogram mean using filling time statistics.
double rms ()
Return histogram RMS using filling time statistics.
void set_wx ( double v )
void set_wxx ( double v )
double wx ()
double wxx ()
void set_entries_count ( Size a_count )
Size entries_count ()
virtual void reset ()
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 )
Sutract 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 )
Protected Attributes
double sum_wx_
double sum_wxx_
Size entries_count_

Detailed Description

1D histogram with Weighted_Bin and fixed partition.

These histograms are used just to properly convert HBOOK histos and should not be used for other purposes. External filling time statistics. Values stored in the bins are `double'.


Member Typedef Documentation

**typedef T_Histo1D_FTS T_Histo1D_FTS::Like_Current

Convenience typedef to current type.


Constructor & Destructor Documentation

| T_Histo1D_FTS::T_Histo1D_FTS ( | const char * a_title, | | -------------------------------------- | ----------------------------- | | | |

Size n,

double x1,

double x2,

End_Point_Convention epc = RIGHT_OPEN)

Create a 1D histo with Weighted_Bin and fixed partition.

Parameters:

a_title: title of the histo
n: number of (in range) bins
x1 and x2: (x1,x2) is the interval of in range bins
epc: global endpoint convention (RIGHT_OPEN or LEFT_OPEN)

| T_Histo1D_FTS::T_Histo1D_FTS ( | | | -------------------------------------- | |

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_Histo1D_FTS::T_Histo1D_FTS ( | 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_Histo1D_FTS::~T_Histo1D_FTS () [inline, virtual]


Member Function Documentation

| T_Histo1D_FTS::H_IID_IMPLEMENT ( | T_Histo1D_FTS) | | ---------------------------------------- | -------------------- |

Convenience typedef to reference to current type.

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

Add a scalar to this histogram.

| void T_Histo1D_FTS::add ( | const | | ------------------------------- | --------- |

I_Histo & other) [inline]

Add another histogram to this one using the abstract interface.

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

Add another histogram of the same type to this one.

| double T_Histo1D_FTS::bin_center ( | | | ----------------------------------------- | |

Index i) [inline]

Center of bin indexed by i.

| Ref_Like_Current T_Histo1D_FTS::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_Histo1D_FTS::clone ( | int copy_data = 1) [inline] | | ----------------------------------------------- | ------------------------------------- |

Clone the histogram.

If copy_data is zero the clone is empty.

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

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

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

Divide by scalar this histogram.

| void T_Histo1D_FTS::div ( | const | | ------------------------------- | --------- |

I_Histo & other) [inline]

Divide this histogram by another one using the abstract interface.

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

Divide this histogram by another of the same type.

Size T_Histo1D_FTS::entries_count () [inline]

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

Fill histo with datapoint x and weight w.

**double T_Histo1D_FTS::mean () [inline]

Return histogram mean using filling time statistics.

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

Multiply by a scalar this histogram.

| void T_Histo1D_FTS::mul ( | const | | ------------------------------- | --------- |

I_Histo & other) [inline]

Multiply another histogram to this one using the abstract interface.

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

Multiply another histogram of the same type to this one.

**void T_Histo1D_FTS::reset () [inline, virtual]

**double T_Histo1D_FTS::rms () [inline]

Return histogram RMS using filling time statistics.

| void T_Histo1D_FTS::set_entries_count ( | | | ----------------------------------------------- | |

Size a_count) [inline]

| void T_Histo1D_FTS::set_wx ( | double v) [inline] | | ----------------------------------- | -------------------------- |

| void T_Histo1D_FTS::set_wxx ( | double v) [inline] | | ------------------------------------ | -------------------------- |

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

Sutract a scalar from this histogram.

| void T_Histo1D_FTS::sub ( | const | | ------------------------------- | --------- |

I_Histo & other) [inline]

Subtract another histogram from this one using the abstract interface.

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

Subtract another histogram of the same type from this one.

**double T_Histo1D_FTS::wx () [inline]

**double T_Histo1D_FTS::wxx () [inline]


Member Data Documentation

Size T_Histo1D_FTS::entries_count_ [protected]

**double T_Histo1D_FTS::sum_wx_ [protected]

**double T_Histo1D_FTS::sum_wxx_ [protected]


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


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