Use PDG code also for Gfpart
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 14 Jul 1999 08:35:08 +0000 (08:35 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 14 Jul 1999 08:35:08 +0000 (08:35 +0000)
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)); 
 }