void HistoCompare::PVCompute(TH2 * oldHisto , TH2 * newHisto , TText * te ) { myoldHisto2 = oldHisto; mynewHisto2 = newHisto; myte = te; Double_t *res ; Double_t mypv = myoldHisto2->Chi2Test(mynewHisto2,"WW",res); TString title = myoldHisto2->GetName(); printRes(title, mypv, myte); return; }
void HistoCompare::PVCompute(TH2 * oldHisto , TH2 * newHisto , TText * te ) { myoldHisto2 = oldHisto; mynewHisto2 = newHisto; myte = te; Double_t *res ; Double_t mypvchi = myoldHisto2->Chi2Test(mynewHisto2,"WW",res); char str [128]; sprintf(str,"chi^2 P Value: %f",mypvchi); TString title = str; printRes(title, mypvchi, myte); return; }