Anaphe Home Page Reference Documentation

Main Page     Namespaces     Classes     Source Code    

P_Histo2DVar Class Reference

Inheritance diagram for P_Histo2DVar:

P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition > P_I_Histo_2D P_I_Histo List of all members.

Detailed Description

Values stored in the bins are `double'.

Definition at line 373 of file P_Histograms_2D.ddl.

Public Types

typedef P_Histo2DVar Like_Current
 Convenience typedef to current type.


Public Methods

 H_IID_IMPLEMENT (P_Histo2DVar)
 Very simple RTTI feature.

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

 P_Histo2DVar (const char *a_title, HTL_STD::vector< float > &some_points1, HTL_STD::vector< float > &some_points2, End_Point_Convention epc1=RIGHT_OPEN, End_Point_Convention epc2=RIGHT_OPEN)
 Create a transient 2D histo with Weighted_Bin and variable partition.

 P_Histo2DVar (const char *a_title, HTL_STD::vector< double > &some_points1, HTL_STD::vector< double > &some_points2, End_Point_Convention epc1=RIGHT_OPEN, End_Point_Convention epc2=RIGHT_OPEN)
 Create a transient 2D histo with Weighted_Bin and variable partition using vector<double> instead of vector<float> to define the partition.

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

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

virtual ~P_Histo2DVar ()
 Destructor.

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

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)
 Return histogram mean projected on axis p.

double rms (Index p=0)
 Return histogram RMS (Root Mean Square) projected on axis p.

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


Member Typedef Documentation

typedef P_Histo2DVar P_Histo2DVar::Like_Current
 

Reimplemented from P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >.

Definition at line 379 of file P_Histograms_2D.ddl.

Referenced by clone().


Constructor & Destructor Documentation

P_Histo2DVar::P_Histo2DVar const char *    a_title,
HTL_STD::vector< float > &    some_points1,
HTL_STD::vector< float > &    some_points2,
End_Point_Convention    epc1 = RIGHT_OPEN,
End_Point_Convention    epc2 = RIGHT_OPEN
[inline]
 

Parameters:
a_title:  title of the histo
some_points1:  vector of points that delimit the intervals on X axis.
epc1:  global endpoint convention (RIGHT_OPEN or LEFT_OPEN) on X axis
some_points2:  vector of points that delimit the intervals on Y axis.
epc2:  global endpoint convention (RIGHT_OPEN or LEFT_OPEN) on Y axis

Definition at line 395 of file P_Histograms_2D.ddl.

References End_Point_Convention, H_H2D_U_EP, and RIGHT_OPEN.

P_Histo2DVar::P_Histo2DVar const char *    a_title,
HTL_STD::vector< double > &    some_points1,
HTL_STD::vector< double > &    some_points2,
End_Point_Convention    epc1 = RIGHT_OPEN,
End_Point_Convention    epc2 = RIGHT_OPEN
[inline]
 

Parameters:
a_title:  title of the histo
some_points1:  vector of points that delimit the intervals on X axis.
epc1:  global endpoint convention (RIGHT_OPEN or LEFT_OPEN) on X axis
some_points2:  vector of points that delimit the intervals on Y axis.
epc2:  global endpoint convention (RIGHT_OPEN or LEFT_OPEN) on Y axis

Definition at line 417 of file P_Histograms_2D.ddl.

References End_Point_Convention, H_H2D_U_EP, and RIGHT_OPEN.

P_Histo2DVar::P_Histo2DVar 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 429 of file P_Histograms_2D.ddl.

P_Histo2DVar::P_Histo2DVar 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 435 of file P_Histograms_2D.ddl.

virtual P_Histo2DVar::~P_Histo2DVar   [inline, virtual]
 

Definition at line 439 of file P_Histograms_2D.ddl.


Member Function Documentation

void P_Histo2DVar::add double    x [inline]
 

Reimplemented from P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >.

Definition at line 555 of file P_Histograms_2D.ddl.

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

void P_Histo2DVar::add const I_Histo   other [inline]
 

Reimplemented from P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >.

Definition at line 502 of file P_Histograms_2D.ddl.

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

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

Reimplemented from P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >.

Definition at line 488 of file P_Histograms_2D.ddl.

References P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >::bin_count(), P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >::bins_, P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >::extra_bin_count(), H_BIN_UPDATE, H_P_THIS, HTL_ERR, Index, I_Partition::is_compatible_with(), P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >::partition_X(), and P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >::partition_Y().

double P_Histo2DVar::bin_center Index    i,
Index    j,
Index    p = 0
[inline]
 

Definition at line 458 of file P_Histograms_2D.ddl.

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

Ref_Like_Current P_Histo2DVar::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_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >.

Definition at line 478 of file P_Histograms_2D.ddl.

References H_P_NEW_CLUSTER1, and Like_Current.

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

If copy_data is zero the clone is empty.

Reimplemented from P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >.

Definition at line 469 of file P_Histograms_2D.ddl.

References H_P_NEW_CLUSTER0, and Like_Current.

Referenced by clone_().

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

Reimplemented from P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >.

Definition at line 483 of file P_Histograms_2D.ddl.

References clone().

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

Reimplemented from P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >.

Definition at line 481 of file P_Histograms_2D.ddl.

References clone().

void P_Histo2DVar::div double    x [inline]
 

Reimplemented from P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >.

Definition at line 561 of file P_Histograms_2D.ddl.

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

void P_Histo2DVar::div const I_Histo   other [inline]
 

Reimplemented from P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >.

Definition at line 553 of file P_Histograms_2D.ddl.

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

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

Reimplemented from P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >.

Definition at line 538 of file P_Histograms_2D.ddl.

References P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >::bin_count(), P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >::bins_, P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >::extra_bin_count(), H_BIN_UPDATE, H_P_THIS, HTL_ERR, Index, I_Partition::is_compatible_with(), P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >::partition_X(), and P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >::partition_Y().

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

Definition at line 443 of file P_Histograms_2D.ddl.

References HTLlimits::classify(), HTLlimits::isFinite(), P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >::mapped_bin(), and Weighted_Bin::put().

P_Histo2DVar::H_IID_IMPLEMENT P_Histo2DVar   
 

Reimplemented from P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >.

typedef P_Histo2DVar::H_P_REF Like_Current   
 

Reimplemented from P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >.

double P_Histo2DVar::mean Index    p = 0 [inline]
 

Definition at line 462 of file P_Histograms_2D.ddl.

References Index, and H_Statistics::mean().

Referenced by rms().

void P_Histo2DVar::mul double    x [inline]
 

Reimplemented from P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >.

Definition at line 559 of file P_Histograms_2D.ddl.

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

void P_Histo2DVar::mul const I_Histo   other [inline]
 

Reimplemented from P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >.

Definition at line 536 of file P_Histograms_2D.ddl.

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

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

Reimplemented from P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >.

Definition at line 521 of file P_Histograms_2D.ddl.

References P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >::bin_count(), P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >::bins_, P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >::extra_bin_count(), H_BIN_UPDATE, H_P_THIS, HTL_ERR, Index, I_Partition::is_compatible_with(), P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >::partition_X(), and P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >::partition_Y().

double P_Histo2DVar::rms Index    p = 0 [inline]
 

Definition at line 464 of file P_Histograms_2D.ddl.

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

void P_Histo2DVar::sub double    x [inline]
 

Reimplemented from P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >.

Definition at line 557 of file P_Histograms_2D.ddl.

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

void P_Histo2DVar::sub const I_Histo   other [inline]
 

Reimplemented from P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >.

Definition at line 519 of file P_Histograms_2D.ddl.

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

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

Reimplemented from P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >.

Definition at line 504 of file P_Histograms_2D.ddl.

References P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >::bin_count(), P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >::bins_, P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >::extra_bin_count(), H_BIN_UPDATE, H_P_THIS, HTL_ERR, Index, I_Partition::is_compatible_with(), P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >::partition_X(), and P_Histo_2D< P_Lifetime< Weighted_Bin >, Weighted_Bin, double, P_Uneven_Partition, double, P_Uneven_Partition >::partition_Y().


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

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