Utility class for returning properties of a TimeDistribution. More...
#include "sevt/TimeDistributionAlgorithm.h"
Public Types | |
typedef boost::tuple< double, double > | TupleD |
Static Public Member Functions | |
template<typename T > | |
static double | Centroid (const TimeDistribution< T > &td, const int bin1, const int bin2) |
Evaluate the centroid in slot number between bin1 and bin2. More... | |
template<typename T > | |
static double | Mean (const TimeDistribution< T > &td, const int bin1, const int bin2) |
Evaluate mean of TimeDistribution between bin1 and bin2. More... | |
template<typename T > | |
static TupleD | MeanRMS (const TimeDistribution< T > &td, const int bin1, const int bin2) |
Evalueate both mean and RMS of TimeDistribution between bin1 and bin2. More... | |
template<typename T > | |
static double | RMS (const TimeDistribution< T > &td, const int bin1, const int bin2) |
Evalueate RMS of TimeDistribution between bin1 and bin2. More... | |
template<typename T > | |
static double | Sum (const TimeDistribution< T > &td, const int bin1, const int bin2) |
Evaluate the sum of bin1 through bin2. More... | |
Utility class for returning properties of a TimeDistribution.
Definition at line 28 of file TimeDistributionAlgorithm.h.
typedef boost::tuple<double, double> utl::TimeDistributionAlgorithm::TupleD |
Definition at line 31 of file TimeDistributionAlgorithm.h.
|
static |
Evaluate the centroid in slot number between bin1 and bin2.
Computes the centroid in number of slots. In other words, this method does not multiply by the slot size. To compute centroid in time, you need to use the GetBinning() method to get size of a slot.
Definition at line 105 of file TimeDistributionAlgorithm.cc.
References utl::TimeDistribution< T >::At(), utl::TimeDistribution< T >::fData, utl::TimeDistribution< T >::GetStart(), utl::TimeDistribution< T >::GetStop(), and max.
|
static |
Evaluate mean of TimeDistribution between bin1 and bin2.
Definition at line 43 of file TimeDistributionAlgorithm.cc.
References utl::abs().
|
static |
Evalueate both mean and RMS of TimeDistribution between bin1 and bin2.
Definition at line 78 of file TimeDistributionAlgorithm.cc.
References utl::abs(), utl::TimeDistribution< T >::At(), utl::TimeDistribution< T >::fData, utl::TimeDistribution< T >::GetStart(), utl::TimeDistribution< T >::GetStop(), max, and sqrt().
|
static |
Evalueate RMS of TimeDistribution between bin1 and bin2.
Definition at line 51 of file TimeDistributionAlgorithm.cc.
References utl::abs(), utl::TimeDistribution< T >::At(), utl::TimeDistribution< T >::fData, utl::TimeDistribution< T >::GetStart(), utl::TimeDistribution< T >::GetStop(), max, and sqrt().
|
static |
Evaluate the sum of bin1 through bin2.
Definition at line 22 of file TimeDistributionAlgorithm.cc.
References utl::TimeDistribution< T >::fData, utl::TimeDistribution< T >::GetStart(), utl::TimeDistribution< T >::GetStop(), and max.