Anaphe Home Page Reference Documentation

Main Page     Namespaces     Classes     Source Code    

T_Histo1D_FTS Class Reference

#include <T_Histograms_1D.h>

Inheritance diagram for T_Histo1D_FTS:

T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition > T_I_Histo_1D T_I_Histo List of all members.

Detailed Description

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'.

Definition at line 697 of file T_Histograms_1D.h.

Public Types

typedef T_Histo1D_FTS Like_Current
 Convenience typedef to current type.


Public Methods

 H_IID_IMPLEMENT (T_Histo1D_FTS)
 Very simple RTTI feature.

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.

 T_Histo1D_FTS (I_Histo &a_histo, int copy_data=1)
 Copy constructor.

 T_Histo1D_FTS (const I_Histo &a_histo, int copy_data=1)
 Copy constructor taking const reference.

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 ()
 Reset histograms content.

Ref_Like_Current clone (int copy_data=1)
 Clone the histogram.

Ref_Like_Current clone (H_T_CLUSTER1(a_place), int copy_data=1)
 Clone the histogram.

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_


Member Typedef Documentation

typedef T_Histo1D_FTS T_Histo1D_FTS::Like_Current
 

Reimplemented from T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >.

Definition at line 702 of file T_Histograms_1D.h.

Referenced by clone().


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
[inline]
 

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)

Definition at line 713 of file T_Histograms_1D.h.

References End_Point_Convention, entries_count_, H_H1D_E_EP, RIGHT_OPEN, Size, sum_wx_, and sum_wxx_.

T_Histo1D_FTS::T_Histo1D_FTS I_Histo   a_histo,
int    copy_data = 1
[inline]
 

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

Definition at line 721 of file T_Histograms_1D.h.

References entries_count_, sum_wx_, and sum_wxx_.

T_Histo1D_FTS::T_Histo1D_FTS const I_Histo   a_histo,
int    copy_data = 1
[inline]
 

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

Definition at line 728 of file T_Histograms_1D.h.

References entries_count_, sum_wx_, and sum_wxx_.

virtual T_Histo1D_FTS::~T_Histo1D_FTS   [inline, virtual]
 

Definition at line 733 of file T_Histograms_1D.h.


Member Function Documentation

void T_Histo1D_FTS::add double    x [inline]
 

Reimplemented from T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >.

Definition at line 861 of file T_Histograms_1D.h.

References T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >::add_().

void T_Histo1D_FTS::add const I_Histo   other [inline]
 

Reimplemented from T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >.

Definition at line 811 of file T_Histograms_1D.h.

References T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >::add_().

Ref_Like_Current T_Histo1D_FTS::add const Ref_Like_Current &    other [inline]
 

Reimplemented from T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >.

Definition at line 798 of file T_Histograms_1D.h.

References T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >::bin_count(), T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >::bins_, T_I_Histo_1D::extra_bin_count(), H_T_THIS, HTL_ERR, Index, I_Partition::is_compatible_with(), and T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >::partition().

double T_Histo1D_FTS::bin_center Index    i [inline]
 

Definition at line 746 of file T_Histograms_1D.h.

References H_Bin_Helper::bin_center(), I_Histo::I_Bin_Location, and Index.

Ref_Like_Current T_Histo1D_FTS::clone H_T_CLUSTER1(a_place)   ,
int    copy_data = 1
[inline]
 

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

Reimplemented from T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >.

Definition at line 788 of file T_Histograms_1D.h.

References H_T_NEW_CLUSTER1, and Like_Current.

Ref_Like_Current T_Histo1D_FTS::clone int    copy_data = 1 [inline]
 

If copy_data is zero the clone is empty.

Reimplemented from T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >.

Definition at line 779 of file T_Histograms_1D.h.

References H_T_NEW_CLUSTER0, and Like_Current.

Referenced by clone_().

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

Reimplemented from T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >.

Definition at line 793 of file T_Histograms_1D.h.

References clone().

virtual T_REF_I_Histo T_Histo1D_FTS::clone_ int    copy_data = 1 [inline, protected, virtual]
 

Reimplemented from T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >.

Definition at line 791 of file T_Histograms_1D.h.

References clone().

void T_Histo1D_FTS::div double    x [inline]
 

Reimplemented from T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >.

Definition at line 867 of file T_Histograms_1D.h.

References T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >::div_().

void T_Histo1D_FTS::div const I_Histo   other [inline]
 

Reimplemented from T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >.

Definition at line 859 of file T_Histograms_1D.h.

References T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >::div_().

Ref_Like_Current T_Histo1D_FTS::div const Ref_Like_Current &    other [inline]
 

Reimplemented from T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >.

Definition at line 845 of file T_Histograms_1D.h.

References T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >::bin_count(), T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >::bins_, T_I_Histo_1D::extra_bin_count(), H_T_THIS, HTL_ERR, Index, I_Partition::is_compatible_with(), and T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >::partition().

Size T_Histo1D_FTS::entries_count   [inline]
 

Definition at line 763 of file T_Histograms_1D.h.

References entries_count_, and Size.

void T_Histo1D_FTS::fill double    x,
double    w = 1.0
[inline]
 

Definition at line 736 of file T_Histograms_1D.h.

References T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >::extra_index_, T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >::is_in_range(), HTLlimits::isFinite(), T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >::mapped_bin(), Weighted_Bin::put(), sum_wx_, and sum_wxx_.

T_Histo1D_FTS::H_IID_IMPLEMENT T_Histo1D_FTS   
 

Reimplemented from T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >.

typedef T_Histo1D_FTS::H_T_REF Like_Current   
 

Reimplemented from T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >.

double T_Histo1D_FTS::mean   [inline]
 

Definition at line 749 of file T_Histograms_1D.h.

References H_Bin_Helper::in_range_value(), and sum_wx_.

Referenced by rms().

void T_Histo1D_FTS::mul double    x [inline]
 

Reimplemented from T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >.

Definition at line 865 of file T_Histograms_1D.h.

References T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >::mul_().

void T_Histo1D_FTS::mul const I_Histo   other [inline]
 

Reimplemented from T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >.

Definition at line 843 of file T_Histograms_1D.h.

References T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >::mul_().

Ref_Like_Current T_Histo1D_FTS::mul const Ref_Like_Current &    other [inline]
 

Reimplemented from T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >.

Definition at line 829 of file T_Histograms_1D.h.

References T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >::bin_count(), T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >::bins_, T_I_Histo_1D::extra_bin_count(), H_T_THIS, HTL_ERR, Index, I_Partition::is_compatible_with(), and T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >::partition().

virtual void T_Histo1D_FTS::reset   [inline, virtual]
 

Reimplemented from T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >.

Definition at line 764 of file T_Histograms_1D.h.

References entries_count_, T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >::reset(), sum_wx_, and sum_wxx_.

double T_Histo1D_FTS::rms   [inline]
 

Definition at line 751 of file T_Histograms_1D.h.

References H_Bin_Helper::in_range_value(), mean(), and sum_wxx_.

void T_Histo1D_FTS::set_entries_count Size    a_count [inline]
 

Definition at line 762 of file T_Histograms_1D.h.

References entries_count_, and Size.

void T_Histo1D_FTS::set_wx double    v [inline]
 

Definition at line 758 of file T_Histograms_1D.h.

References sum_wx_.

void T_Histo1D_FTS::set_wxx double    v [inline]
 

Definition at line 759 of file T_Histograms_1D.h.

References sum_wxx_.

void T_Histo1D_FTS::sub double    x [inline]
 

Reimplemented from T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >.

Definition at line 863 of file T_Histograms_1D.h.

References T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >::sub_().

void T_Histo1D_FTS::sub const I_Histo   other [inline]
 

Reimplemented from T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >.

Definition at line 827 of file T_Histograms_1D.h.

References T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >::sub_().

Ref_Like_Current T_Histo1D_FTS::sub const Ref_Like_Current &    other [inline]
 

Reimplemented from T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >.

Definition at line 813 of file T_Histograms_1D.h.

References T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >::bin_count(), T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >::bins_, T_I_Histo_1D::extra_bin_count(), H_T_THIS, HTL_ERR, Index, I_Partition::is_compatible_with(), and T_Histo_1D< T_Lifetime< Weighted_Bin >, Weighted_Bin, Even_Partition >::partition().

double T_Histo1D_FTS::wx   [inline]
 

Definition at line 760 of file T_Histograms_1D.h.

References sum_wx_.

double T_Histo1D_FTS::wxx   [inline]
 

Definition at line 761 of file T_Histograms_1D.h.

References sum_wxx_.


Member Data Documentation

Size T_Histo1D_FTS::entries_count_ [protected]
 

Definition at line 774 of file T_Histograms_1D.h.

Referenced by entries_count(), reset(), set_entries_count(), and T_Histo1D_FTS().

double T_Histo1D_FTS::sum_wx_ [protected]
 

Definition at line 770 of file T_Histograms_1D.h.

Referenced by fill(), mean(), reset(), set_wx(), T_Histo1D_FTS(), and wx().

double T_Histo1D_FTS::sum_wxx_ [protected]
 

Definition at line 772 of file T_Histograms_1D.h.

Referenced by fill(), reset(), rms(), set_wxx(), T_Histo1D_FTS(), and wxx().


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

Anaphe documentation generated by Doxygen (www.doxygen.org)