Little numerical protection
authorbelikov <Iouri.Belikov@cern.ch>
Mon, 5 May 2014 07:29:20 +0000 (09:29 +0200)
committerbelikov <Iouri.Belikov@cern.ch>
Mon, 5 May 2014 07:29:20 +0000 (09:29 +0200)
ITS/UPGRADE/macros/AliITSUComparison.C [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 1af879a..2a734df
@@ -238,7 +238,7 @@ Int_t AliITSUComparison
 
         hpt->Fill((pt_1 - 1/ptg)/(1/ptg)*100.);
 
-        Float_t mom=1./(pt_1*TMath::Cos(lam));
+        Float_t mom=(TMath::Abs(pt_1)>1e-5) ? 1./(pt_1*TMath::Cos(lam)) : 1e+5;
         Float_t dedx=esd->GetITSsignal();
         hep->Fill(mom,dedx,1.);