From: morsch Date: Tue, 18 Feb 2003 16:12:17 +0000 (+0000) Subject: Protect mpdgha against negative argument. X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=6015a930f587be003d3393fbe08ce186d83660e3 Protect mpdgha against negative argument. --- diff --git a/TFluka/TFluka.cxx b/TFluka/TFluka.cxx index ac2fe364ec0..7eee381c942 100644 --- a/TFluka/TFluka.cxx +++ b/TFluka/TFluka.cxx @@ -15,6 +15,9 @@ /* $Log$ +Revision 1.14 2003/02/18 12:47:59 morsch +Gmtod and Gdtom added. + Revision 1.13 2003/01/31 14:01:51 morsch Major update on - Getters related to geometry. @@ -534,9 +537,11 @@ Int_t TFluka::PDGFromId(Int_t id) const if (intfluka == 0) { printf("PDGFromId: Error intfluka = 0"); return -1; + } else if (intfluka < 0) { + printf("PDGFromId: Error intfluka < 0"); + return -1; } - - //MPKDHA() goes from internal to PDG + printf("mpdgha called with %d %d \n", id, intfluka); return mpdgha(intfluka); }