]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TGeant3/TGeant3.cxx
Use PDG code also for Gfpart
[u/mrichter/AliRoot.git] / TGeant3 / TGeant3.cxx
index a7a1bd786b90d4f97e1762fcc786e5f544b6e25c..05d16ee16f7a5172e6d95587a4c94b841c396563 100644 (file)
@@ -1620,7 +1620,8 @@ void  TGeant3::Gfpart(Int_t ipart, char *name, Int_t &itrtyp,
   //
   Float_t *ubuf=0; 
   Int_t   nbuf; 
-  gfpart(ipart, PASSCHARD(name), itrtyp, amass, charge, tlife, ubuf, nbuf
+  Int_t igpart = IdFromPDG(ipart);
+  gfpart(igpart, PASSCHARD(name), itrtyp, amass, charge, tlife, ubuf, nbuf
         PASSCHARL(name)); 
 }