#ifndef HPIDGAUSSCONF_H
#define HPIDGAUSSCONF_H
#include "TROOT.h"
#include "TMath.h"
#include "TError.h"
#include "TObject.h"
class HPidGaussConf : public TObject
{
public:
inline static Double_t getConfLevel(Double_t dX);
inline static Double_t getConfLevel(Double_t dMean, Double_t dSigma, Double_t dX);
private:
static Double_t dDiv_Sqrt_2;
ClassDef(HPidGaussConf,0)
};
inline Double_t HPidGaussConf::getConfLevel(Double_t dX)
{
return TMath::Abs(TMath::Erf(dX * dDiv_Sqrt_2));
}
inline Double_t HPidGaussConf::getConfLevel(
Double_t dMean, Double_t dSigma, Double_t dX)
{
if(dSigma <= 0.0)
{
::Error("HPidGaussConf::getConfLevel", "sigma <= 0.0");
return -1.0;
}
return getConfLevel((dX - dMean) / dSigma);
}
#endif //HPIDGAUSSCONF_H
Last change: Sat May 22 13:07:06 2010
Last generated: 2010-05-22 13:07
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.