fix of divison by 0 (Jens)
authorjthaeder <jthaeder@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 11 May 2012 10:17:17 +0000 (10:17 +0000)
committerjthaeder <jthaeder@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 11 May 2012 10:17:17 +0000 (10:17 +0000)
TPC/AliTPCcalibDB.cxx

index c9b6025..9f6931c 100644 (file)
@@ -697,7 +697,7 @@ Int_t AliTPCcalibDB::InitDeadMap() {
       chamberMedian[iROC]=0;
       TGraph *gr=sensor->GetGraph();
       AliSplineFit *fit=sensor->GetFit();
-      Int_t nmax=0;
+      Int_t nmax=1;
       Int_t nout=0;
       if ( gr && gr->GetN()>0 ){
         nmax=gr->GetN();