//at the begining initialize to 0
for (Int_t i =0; i<fNRF;i++) fcharge[i] = 0;
if ( fGRF == 0 ) return;
+ // This form is no longer available
+#if ROOT_VERISON_CODE < ROOT_VERSION(5,99,0)
fInteg = fGRF->Integral(-5*forigsigma,5*forigsigma,funParam,0.00001);
+#else
+ TArrayD savParam(fGRF->GetNpar(), fGRF->GetParameters());
+ fGRF->SetParameters(funParam);
+ fInteg = fGRF->Integral(-5*forigsigma,5*forigsigma,0.00001);
+#endif
if ( fInteg == 0 ) fInteg = 1;
if (fDirect==kFALSE){
//integrate charge over pad for different distance of pad
Float_t x = (Float_t)(i-fNRF/2)/fDSTEPM1;
Float_t x1=TMath::Max(x-fpadWidth/2,-5*forigsigma);
Float_t x2=TMath::Min(x+fpadWidth/2,5*forigsigma);
- fcharge[i] =
- fkNorm*fGRF->Integral(x1,x2,funParam,0.0001)/fInteg;
+#if ROOT_VERISON_CODE < ROOT_VERSION(5,99,0)
+ fcharge[i] = fkNorm*fGRF->Integral(x1,x2,funParam,0.0001)/fInteg;
+#else
+ fcharge[i] = fkNorm*fGRF->Integral(x1,x2,0.0001)/fInteg;
+#endif
};
}
else{
fSigma = TMath::Sqrt(fSigma/sum-mean*mean);
}
else fSigma=0;
+#if ROOT_VERISON_CODE >= ROOT_VERSION(5,99,0)
+ fGRF->SetParameters(savParam.GetArray());
+#endif
}
void AliTPCRF1D::Streamer(TBuffer &R__b)
#include <TCanvas.h>
#include <TGraph2DErrors.h>
#include "TPostScript.h"
+#if ROOT_VERSION_CODE < ROOT_VERSION(5,99,0)
#include "TCint.h"
+#endif
#include <TH2D.h>
#include <TF2.h>
this->SetTitle(title);
if (GetDebugLevel() > 0) cout << " ***** this is AliTPCcalibTracks' main constructor ***** " << endl;
+#if ROOT_VERSION_CODE < ROOT_VERSION(5,99,0)
G__SetCatchException(0);
+#endif
fClusterParam = clusterParam;
if (fClusterParam){