]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Protect mpdgha against negative argument.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 18 Feb 2003 16:12:17 +0000 (16:12 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 18 Feb 2003 16:12:17 +0000 (16:12 +0000)
TFluka/TFluka.cxx

index ac2fe364ec075437576304b2f556924945fe9460..7eee381c94285067d4fcf96e8bab10dd5ac3a190 100644 (file)
@@ -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);
 }