#if !defined(__MYBAYESUL_H__) # define __MYBAYESUL_H__ # if !defined(__CINT__) || defined(__MAKECINT__) # include "TObject.h" # endif class MyBayesUL : public TObject { public: MyBayesUL(); virtual ~MyBayesUL(); public: // CERNLIB CHISIN test static Double_t GetUL(Int_t n_obs, Double_t n_exp=0, Double_t cl=0.90); static Double_t GetClassicalUL(Int_t n_obs, Double_t n_exp=0, Double_t cl=0.90); static Double_t chisin(Double_t Q, Int_t N); static Double_t gausin(Double_t P); static Double_t freq(Double_t X); // for TRolke test // static Double_t GetUL_TRolke(Double_t n_obs, Double_t cl); static Double_t Chi2Percentile(Double_t df,Double_t CL1); static Double_t InverseIncompleteGamma(Double_t df,Double_t CL1); static Double_t InverseNormal(Double_t CL1); static Double_t EvalPolynomial(Double_t x, const Int_t coef[], Int_t N); static Double_t EvalMonomial(Double_t x, const Int_t coef[], Int_t N); ClassDef(MyBayesUL,1) ; }; #endif