21 #include <TGraphErrors.h>
22 #include <TGraphAsymmErrors.h>
46 double Chisquare(
double *x,
double *p){
52 double half_mu = 0.5*p[1];
54 double D = pow(2,half_mu) * TMath::Gamma(half_mu);
56 return (1/D)*p[0]*pow(x[0],(half_mu-1))*exp( -0.5*x[0] );
59 double GetChi2(
double x,
double n){
61 double half_nu = 0.5*n;
63 double D = pow(2,half_mu) * TMath::Gamma(half_mu);
65 return (1/D)*pow(x,(half_mu-1))*exp( -0.5*x );