Anaphe Home Page Reference Documentation

Main Page     Namespaces     Classes     Source Code    

T_ProfileHisto1DVar Class Reference

#include <T_Histograms_1D.h>

Inheritance diagram for T_ProfileHisto1DVar:

T_Histo_1D< T_Lifetime< Profile_Bin >, Profile_Bin, T_Uneven_Partition > T_I_Histo_1D T_I_Histo List of all members.

Detailed Description

Values stored in the bins are `double'.

Definition at line 524 of file T_Histograms_1D.h.

Public Types

typedef T_ProfileHisto1DVar Like_Current
 Convenience typedef to current type.


Public Methods

 H_IID_IMPLEMENT (T_ProfileHisto1DVar)
 Very simple RTTI feature.

typedef H_T_REF (Like_Current) Ref_Like_Current
 Convenience typedef to reference to current type.

 T_ProfileHisto1DVar (const char *a_title, HTL_STD::vector< float > &some_points, End_Point_Convention epc=RIGHT_OPEN)
 Create a 1D histo with Profile_Bin and variable partition.

 T_ProfileHisto1DVar (const char *a_title, HTL_STD::vector< double > &some_points, End_Point_Convention epc=RIGHT_OPEN)
 The same but now using a vector<double> e.g.

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

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

virtual ~T_ProfileHisto1DVar ()
 Destructor.

void fill (double x, double k,double w=1.0)
 Fill histo with datapoint x, weight w and character value k.

double bin_center (Index i)
 Center of the bin indexed by i.

double mean ()
 Return histogram mean.

double rms ()
 Return histogram RMS (Root Mean Square).

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)


Member Typedef Documentation

typedef T_ProfileHisto1DVar T_ProfileHisto1DVar::Like_Current
 

Reimplemented from T_Histo_1D< T_Lifetime< Profile_Bin >, Profile_Bin, T_Uneven_Partition >.

Definition at line 530 of file T_Histograms_1D.h.

Referenced by clone().


Constructor & Destructor Documentation

T_ProfileHisto1DVar::T_ProfileHisto1DVar const char *    a_title,
HTL_STD::vector< float > &    some_points,
End_Point_Convention    epc = RIGHT_OPEN
[inline]
 

Parameters:
a_title:  title of the histo
some_points:  vector of points that delimit the intervals
epc:  global endpoint convention (RIGHT_OPEN or LEFT_OPEN) e.g. to define 100 points: vector<float>my_points(100);

Definition at line 541 of file T_Histograms_1D.h.

References End_Point_Convention, H_H1D_U_EP, and RIGHT_OPEN.

T_ProfileHisto1DVar::T_ProfileHisto1DVar const char *    a_title,
HTL_STD::vector< double > &    some_points,
End_Point_Convention    epc = RIGHT_OPEN
[inline]
 

to define 100 points: vector<double> my_points(100);

Definition at line 550 of file T_Histograms_1D.h.

References End_Point_Convention, H_H1D_U_EP, and RIGHT_OPEN.

T_ProfileHisto1DVar::T_ProfileHisto1DVar 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 559 of file T_Histograms_1D.h.

T_ProfileHisto1DVar::T_ProfileHisto1DVar 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 566 of file T_Histograms_1D.h.

virtual T_ProfileHisto1DVar::~T_ProfileHisto1DVar   [inline, virtual]
 

Definition at line 570 of file T_Histograms_1D.h.


Member Function Documentation

void T_ProfileHisto1DVar::add double    x [inline]
 

Reimplemented from T_Histo_1D< T_Lifetime< Profile_Bin >, Profile_Bin, T_Uneven_Partition >.

Definition at line 681 of file T_Histograms_1D.h.

References T_Histo_1D< T_Lifetime< Profile_Bin >, Profile_Bin, T_Uneven_Partition >::add_().

void T_ProfileHisto1DVar::add const I_Histo   other [inline]
 

Reimplemented from T_Histo_1D< T_Lifetime< Profile_Bin >, Profile_Bin, T_Uneven_Partition >.

Definition at line 631 of file T_Histograms_1D.h.

References T_Histo_1D< T_Lifetime< Profile_Bin >, Profile_Bin, T_Uneven_Partition >::add_().

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

Reimplemented from T_Histo_1D< T_Lifetime< Profile_Bin >, Profile_Bin, T_Uneven_Partition >.

Definition at line 618 of file T_Histograms_1D.h.

References T_Histo_1D< T_Lifetime< Profile_Bin >, Profile_Bin, T_Uneven_Partition >::bin_count(), T_Histo_1D< T_Lifetime< Profile_Bin >, Profile_Bin, T_Uneven_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< Profile_Bin >, Profile_Bin, T_Uneven_Partition >::partition().

double T_ProfileHisto1DVar::bin_center Index    i [inline]
 

Definition at line 589 of file T_Histograms_1D.h.

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

Ref_Like_Current T_ProfileHisto1DVar::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< Profile_Bin >, Profile_Bin, T_Uneven_Partition >.

Definition at line 608 of file T_Histograms_1D.h.

References H_T_NEW_CLUSTER1, and Like_Current.

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

If copy_data is zero the clone is empty.

Reimplemented from T_Histo_1D< T_Lifetime< Profile_Bin >, Profile_Bin, T_Uneven_Partition >.

Definition at line 599 of file T_Histograms_1D.h.

References H_T_NEW_CLUSTER0, and Like_Current.

Referenced by clone_().

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

Reimplemented from T_Histo_1D< T_Lifetime< Profile_Bin >, Profile_Bin, T_Uneven_Partition >.

Definition at line 613 of file T_Histograms_1D.h.

References clone().

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

Reimplemented from T_Histo_1D< T_Lifetime< Profile_Bin >, Profile_Bin, T_Uneven_Partition >.

Definition at line 611 of file T_Histograms_1D.h.

References clone().

void T_ProfileHisto1DVar::div double    x [inline]
 

Reimplemented from T_Histo_1D< T_Lifetime< Profile_Bin >, Profile_Bin, T_Uneven_Partition >.

Definition at line 687 of file T_Histograms_1D.h.

References T_Histo_1D< T_Lifetime< Profile_Bin >, Profile_Bin, T_Uneven_Partition >::div_().

void T_ProfileHisto1DVar::div const I_Histo   other [inline]
 

Reimplemented from T_Histo_1D< T_Lifetime< Profile_Bin >, Profile_Bin, T_Uneven_Partition >.

Definition at line 679 of file T_Histograms_1D.h.

References T_Histo_1D< T_Lifetime< Profile_Bin >, Profile_Bin, T_Uneven_Partition >::div_().

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

Reimplemented from T_Histo_1D< T_Lifetime< Profile_Bin >, Profile_Bin, T_Uneven_Partition >.

Definition at line 665 of file T_Histograms_1D.h.

References T_Histo_1D< T_Lifetime< Profile_Bin >, Profile_Bin, T_Uneven_Partition >::bin_count(), T_Histo_1D< T_Lifetime< Profile_Bin >, Profile_Bin, T_Uneven_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< Profile_Bin >, Profile_Bin, T_Uneven_Partition >::partition().

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

Definition at line 574 of file T_Histograms_1D.h.

References HTLlimits::classify(), HTLlimits::isFinite(), T_Histo_1D< T_Lifetime< Profile_Bin >, Profile_Bin, T_Uneven_Partition >::mapped_bin(), and Profile_Bin::put().

T_ProfileHisto1DVar::H_IID_IMPLEMENT T_ProfileHisto1DVar   
 

Reimplemented from T_Histo_1D< T_Lifetime< Profile_Bin >, Profile_Bin, T_Uneven_Partition >.

typedef T_ProfileHisto1DVar::H_T_REF Like_Current   
 

Reimplemented from T_Histo_1D< T_Lifetime< Profile_Bin >, Profile_Bin, T_Uneven_Partition >.

double T_ProfileHisto1DVar::mean   [inline]
 

Definition at line 592 of file T_Histograms_1D.h.

References H_Statistics::mean().

Referenced by rms().

void T_ProfileHisto1DVar::mul double    x [inline]
 

Reimplemented from T_Histo_1D< T_Lifetime< Profile_Bin >, Profile_Bin, T_Uneven_Partition >.

Definition at line 685 of file T_Histograms_1D.h.

References T_Histo_1D< T_Lifetime< Profile_Bin >, Profile_Bin, T_Uneven_Partition >::mul_().

void T_ProfileHisto1DVar::mul const I_Histo   other [inline]
 

Reimplemented from T_Histo_1D< T_Lifetime< Profile_Bin >, Profile_Bin, T_Uneven_Partition >.

Definition at line 663 of file T_Histograms_1D.h.

References T_Histo_1D< T_Lifetime< Profile_Bin >, Profile_Bin, T_Uneven_Partition >::mul_().

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

Reimplemented from T_Histo_1D< T_Lifetime< Profile_Bin >, Profile_Bin, T_Uneven_Partition >.

Definition at line 649 of file T_Histograms_1D.h.

References T_Histo_1D< T_Lifetime< Profile_Bin >, Profile_Bin, T_Uneven_Partition >::bin_count(), T_Histo_1D< T_Lifetime< Profile_Bin >, Profile_Bin, T_Uneven_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< Profile_Bin >, Profile_Bin, T_Uneven_Partition >::partition().

double T_ProfileHisto1DVar::rms   [inline]
 

Definition at line 594 of file T_Histograms_1D.h.

References mean(), and H_Statistics::rms().

void T_ProfileHisto1DVar::sub double    x [inline]
 

Reimplemented from T_Histo_1D< T_Lifetime< Profile_Bin >, Profile_Bin, T_Uneven_Partition >.

Definition at line 683 of file T_Histograms_1D.h.

References T_Histo_1D< T_Lifetime< Profile_Bin >, Profile_Bin, T_Uneven_Partition >::sub_().

void T_ProfileHisto1DVar::sub const I_Histo   other [inline]
 

Reimplemented from T_Histo_1D< T_Lifetime< Profile_Bin >, Profile_Bin, T_Uneven_Partition >.

Definition at line 647 of file T_Histograms_1D.h.

References T_Histo_1D< T_Lifetime< Profile_Bin >, Profile_Bin, T_Uneven_Partition >::sub_().

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

Reimplemented from T_Histo_1D< T_Lifetime< Profile_Bin >, Profile_Bin, T_Uneven_Partition >.

Definition at line 633 of file T_Histograms_1D.h.

References T_Histo_1D< T_Lifetime< Profile_Bin >, Profile_Bin, T_Uneven_Partition >::bin_count(), T_Histo_1D< T_Lifetime< Profile_Bin >, Profile_Bin, T_Uneven_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< Profile_Bin >, Profile_Bin, T_Uneven_Partition >::partition().


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

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