Additional protection in CreateTag (P.Christakoglou)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 22 Aug 2005 08:28:18 +0000 (08:28 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 22 Aug 2005 08:28:18 +0000 (08:28 +0000)
STEER/AliReconstruction.cxx

index 737305f3fe02eadc0f85423d043e4a72692d30ec..4913c0f6a0fd3ebf85954b91efe8d15d6b0c1e9e 100644 (file)
@@ -1342,7 +1342,8 @@ void AliReconstruction::CreateTag(TFile* file)
          ntrack++;
        }//track loop
       // Fill the event tags 
-      MeanPt = MeanPt/ntrack;
+      if(ntrack != 0)
+       MeanPt = MeanPt/ntrack;
       
       evTag->SetEventId(i_EventNumber+1);
       evTag->SetVertexX(VertexIn->GetXv());