H_Bin_Helper Class Reference (original) (raw)

This website is no longer maintained. Its content may be obsolete.
Please visit https://home.cern/ for current CERN information.

Main Page Class Hierarchy Compound List File List Compound Members File Members


This class provides utility methods operating on bins. More...

#include <[H_Bin_Helper.h](H%5FBin%5FHelper.h-source.html)>

List of all members.

Static Public Methods
double in_range_error ( const I_Histo &a_histo , const H_F1d & operation = H_Identity() )
For each in-range bin, apply operation on the error and add all of the obtained errors. More...
double in_range_value ( const I_Histo &a_histo , const H_F1d & operation = H_Identity() )
For each in-range bin, apply operation on the value and add all of the obtained values. More...
double in_range_min_value ( const I_Histo &a_histo )
Min value of in-range bins of histo a_histo.
double in_range_max_value ( const I_Histo &a_histo )
Max value of in-range bins of histo a_histo.
double bin_center ( const I_Histo &a_histo, Index p, I_Histo::I_Bin_Location &l )
Center of the bin indexed/located by l on axis p of the histo a_histo.
double bin_center ( const I_Histo &a_histo, Index i )
Center of the bin indexed by i of the 1D histo a_histo.
double bin_center ( const I_Histo &a_histo, Index p, Index i, Index j )
Center of the bin indexed by i , j of the 2D histo a_histo.
Protected Methods
H_Bin_Helper ()
virtual ~H_Bin_Helper ()

Detailed Description

This class provides utility methods operating on bins.


Constructor & Destructor Documentation

**H_Bin_Helper::H_Bin_Helper () [inline, protected]

**H_Bin_Helper::~H_Bin_Helper () [inline, protected, virtual]


Member Function Documentation

Center of the bin indexed by i , j of the 2D histo a_histo.

| double H_Bin_Helper::bin_center ( | const | | ---------------------------------------- | --------- |

I_Histo & a_histo,

Index i) [inline, static]

Center of the bin indexed by i of the 1D histo a_histo.

Center of the bin indexed/located by l on axis p of the histo a_histo.

| double H_Bin_Helper::in_range_error ( | const | | --------------------------------------------- | --------- |

I_Histo & a_histo,

const H_F1d & operation = H_Identity()) [static]

For each in-range bin, apply operation on the error and add all of the obtained errors.

By default (i.e., in case of H_Identity() ), it returns : SUM[ error() ] Otherwise: SUM[ operation(error()) ] e.g. When operation is H_Sqr, the following is computed: SUM[ sqr(error()) ]

| double H_Bin_Helper::in_range_max_value ( | const | | -------------------------------------------------- | --------- |

I_Histo & a_histo) [static]

Max value of in-range bins of histo a_histo.

| double H_Bin_Helper::in_range_min_value ( | const | | -------------------------------------------------- | --------- |

I_Histo & a_histo) [static]

Min value of in-range bins of histo a_histo.

| double H_Bin_Helper::in_range_value ( | const | | --------------------------------------------- | --------- |

I_Histo & a_histo,

const H_F1d & operation = H_Identity()) [static]

For each in-range bin, apply operation on the value and add all of the obtained values.

By default (i.e., in case of H_Identity() ), it returns : SUM[ value() ] Otherwise: SUM[ operation(value()) ] e.g. When operation is H_Sqr, the following is computed: SUM[ sqr(value()) ]


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


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