]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDPreprocessorOffline.cxx
Adding a very small proctection (Raphaelle)
[u/mrichter/AliRoot.git] / TRD / AliTRDPreprocessorOffline.cxx
index f668af6839437411e49e2844754662b403e02d67..a21db178c4d977c7f2052b19aa65a535b6d17e76 100644 (file)
@@ -775,7 +775,7 @@ Bool_t AliTRDPreprocessorOffline::AnalyzeVdriftLinearFit(){
       if((oldmeanvdrift > 0.0) && (oldmeanexb < 70.0))  {
        //printf("Correction factor %f\n",vdriftoverall);
        calDetVdrift->Multiply(vdriftoverall/oldmeanvdrift);
-       calDetLorentz->Multiply(exboverall/oldmeanexb);
+       if(TMath::Abs(oldmeanexb) > 0.0001) calDetLorentz->Multiply(exboverall/oldmeanexb);
        //printf("newmean %f\n",calDetVdrift->CalcMean(kFALSE));
        TH1F *coefDriftLinear  = calDetVdrift->MakeHisto1DAsFunctionOfDet();
        TH1F *coefLorentzAngle = calDetLorentz->MakeHisto1DAsFunctionOfDet();