Anaphe Home Page Reference Documentation

Main Page     Namespaces     Classes     Source Code    

P_Histo1DVar_FTS Class Reference

Inheritance diagram for P_Histo1DVar_FTS:

P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition > P_I_Histo_1D P_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 876 of file P_Histograms_1D.ddl.

Public Types

typedef P_Histo1DVar_FTS Like_Current
 Convenience typedef to current type.


Public Methods

 H_IID_IMPLEMENT (P_Histo1DVar_FTS)
 Very simple RTTI feature.

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

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

 P_Histo1DVar_FTS (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.

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

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

virtual ~P_Histo1DVar_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_P_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 P_REF_I_Histo clone_ (int copy_data=1)
virtual P_REF_I_Histo clone_ (H_P_CLUSTER1(a_place), int copy_data=1)

Protected Attributes

double sum_wx_
double sum_wxx_
Size entries_count_


Member Typedef Documentation

typedef P_Histo1DVar_FTS P_Histo1DVar_FTS::Like_Current
 

Reimplemented from P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >.

Definition at line 882 of file P_Histograms_1D.ddl.

Referenced by clone().


Constructor & Destructor Documentation

P_Histo1DVar_FTS::P_Histo1DVar_FTS 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 tha 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 893 of file P_Histograms_1D.ddl.

References End_Point_Convention, entries_count_, H_H1D_U_EP, RIGHT_OPEN, sum_wx_, and sum_wxx_.

P_Histo1DVar_FTS::P_Histo1DVar_FTS 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 904 of file P_Histograms_1D.ddl.

References End_Point_Convention, entries_count_, H_H1D_U_EP, RIGHT_OPEN, sum_wx_, and sum_wxx_.

P_Histo1DVar_FTS::P_Histo1DVar_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 914 of file P_Histograms_1D.ddl.

References entries_count_, sum_wx_, and sum_wxx_.

P_Histo1DVar_FTS::P_Histo1DVar_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 921 of file P_Histograms_1D.ddl.

References entries_count_, sum_wx_, and sum_wxx_.

virtual P_Histo1DVar_FTS::~P_Histo1DVar_FTS   [inline, virtual]
 

Definition at line 926 of file P_Histograms_1D.ddl.


Member Function Documentation

void P_Histo1DVar_FTS::add double    x [inline]
 

Reimplemented from P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >.

Definition at line 1054 of file P_Histograms_1D.ddl.

References P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >::add_().

void P_Histo1DVar_FTS::add const I_Histo   other [inline]
 

Reimplemented from P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >.

Definition at line 1004 of file P_Histograms_1D.ddl.

References P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >::add_().

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

Reimplemented from P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >.

Definition at line 991 of file P_Histograms_1D.ddl.

References P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >::bin_count(), P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >::bins_, P_I_Histo_1D::extra_bin_count(), H_BIN_UPDATE, H_P_THIS, HTL_ERR, Index, I_Partition::is_compatible_with(), and P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >::partition().

double P_Histo1DVar_FTS::bin_center Index    i [inline]
 

Definition at line 940 of file P_Histograms_1D.ddl.

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

Ref_Like_Current P_Histo1DVar_FTS::clone H_P_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 P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >.

Definition at line 981 of file P_Histograms_1D.ddl.

References H_P_NEW_CLUSTER1, and Like_Current.

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

If copy_data is zero the clone is empty.

Reimplemented from P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >.

Definition at line 972 of file P_Histograms_1D.ddl.

References H_P_NEW_CLUSTER0, and Like_Current.

Referenced by clone_().

virtual P_REF_I_Histo P_Histo1DVar_FTS::clone_ H_P_CLUSTER1(a_place)   ,
int    copy_data = 1
[inline, protected, virtual]
 

Reimplemented from P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >.

Definition at line 986 of file P_Histograms_1D.ddl.

References clone().

virtual P_REF_I_Histo P_Histo1DVar_FTS::clone_ int    copy_data = 1 [inline, protected, virtual]
 

Reimplemented from P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >.

Definition at line 984 of file P_Histograms_1D.ddl.

References clone().

void P_Histo1DVar_FTS::div double    x [inline]
 

Reimplemented from P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >.

Definition at line 1060 of file P_Histograms_1D.ddl.

References P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >::div_().

void P_Histo1DVar_FTS::div const I_Histo   other [inline]
 

Reimplemented from P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >.

Definition at line 1052 of file P_Histograms_1D.ddl.

References P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >::div_().

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

Reimplemented from P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >.

Definition at line 1038 of file P_Histograms_1D.ddl.

References P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >::bin_count(), P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >::bins_, P_I_Histo_1D::extra_bin_count(), H_BIN_UPDATE, H_P_THIS, HTL_ERR, Index, I_Partition::is_compatible_with(), and P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >::partition().

Size P_Histo1DVar_FTS::entries_count   [inline]
 

Definition at line 956 of file P_Histograms_1D.ddl.

References entries_count_, and Size.

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

Definition at line 929 of file P_Histograms_1D.ddl.

References P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >::extra_index_, P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >::is_in_range(), HTLlimits::isFinite(), P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >::mapped_bin(), Weighted_Bin::put(), sum_wx_, and sum_wxx_.

P_Histo1DVar_FTS::H_IID_IMPLEMENT P_Histo1DVar_FTS   
 

Reimplemented from P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >.

typedef P_Histo1DVar_FTS::H_P_REF Like_Current   
 

Reimplemented from P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >.

double P_Histo1DVar_FTS::mean   [inline]
 

Definition at line 943 of file P_Histograms_1D.ddl.

References H_Bin_Helper::in_range_value(), and sum_wx_.

Referenced by rms().

void P_Histo1DVar_FTS::mul double    x [inline]
 

Reimplemented from P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >.

Definition at line 1058 of file P_Histograms_1D.ddl.

References P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >::mul_().

void P_Histo1DVar_FTS::mul const I_Histo   other [inline]
 

Reimplemented from P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >.

Definition at line 1036 of file P_Histograms_1D.ddl.

References P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >::mul_().

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

Reimplemented from P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >.

Definition at line 1022 of file P_Histograms_1D.ddl.

References P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >::bin_count(), P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >::bins_, P_I_Histo_1D::extra_bin_count(), H_BIN_UPDATE, H_P_THIS, HTL_ERR, Index, I_Partition::is_compatible_with(), and P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >::partition().

virtual void P_Histo1DVar_FTS::reset   [inline, virtual]
 

Reimplemented from P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >.

Definition at line 957 of file P_Histograms_1D.ddl.

References entries_count_, P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >::reset(), sum_wx_, and sum_wxx_.

double P_Histo1DVar_FTS::rms   [inline]
 

Definition at line 945 of file P_Histograms_1D.ddl.

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

void P_Histo1DVar_FTS::set_entries_count Size    a_count [inline]
 

Definition at line 955 of file P_Histograms_1D.ddl.

References entries_count_, and Size.

void P_Histo1DVar_FTS::set_wx double    v [inline]
 

Definition at line 951 of file P_Histograms_1D.ddl.

References sum_wx_.

void P_Histo1DVar_FTS::set_wxx double    v [inline]
 

Definition at line 952 of file P_Histograms_1D.ddl.

References sum_wxx_.

void P_Histo1DVar_FTS::sub double    x [inline]
 

Reimplemented from P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >.

Definition at line 1056 of file P_Histograms_1D.ddl.

References P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >::sub_().

void P_Histo1DVar_FTS::sub const I_Histo   other [inline]
 

Reimplemented from P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >.

Definition at line 1020 of file P_Histograms_1D.ddl.

References P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >::sub_().

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

Reimplemented from P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >.

Definition at line 1006 of file P_Histograms_1D.ddl.

References P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >::bin_count(), P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >::bins_, P_I_Histo_1D::extra_bin_count(), H_BIN_UPDATE, H_P_THIS, HTL_ERR, Index, I_Partition::is_compatible_with(), and P_Histo_1D< P_Lifetime< Weighted_Bin >, Weighted_Bin, P_Uneven_Partition >::partition().

double P_Histo1DVar_FTS::wx   [inline]
 

Definition at line 953 of file P_Histograms_1D.ddl.

References sum_wx_.

double P_Histo1DVar_FTS::wxx   [inline]
 

Definition at line 954 of file P_Histograms_1D.ddl.

References sum_wxx_.


Member Data Documentation

Size P_Histo1DVar_FTS::entries_count_ [protected]
 

Definition at line 967 of file P_Histograms_1D.ddl.

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

double P_Histo1DVar_FTS::sum_wx_ [protected]
 

Definition at line 963 of file P_Histograms_1D.ddl.

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

double P_Histo1DVar_FTS::sum_wxx_ [protected]
 

Definition at line 965 of file P_Histograms_1D.ddl.

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


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

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