37 for(
G4int i=0; i<nGammas; i++)
delete theGammas[i];
47 for(
G4int i=0; i<nGammas; i++)
delete theGammas[i];
55 theGammas[i] = aGamma;
71 for(i=0; i<nGammas; i++)
73 if(i!=0) running[i]=running[i-1];
76 sum = running[nGammas-1];
79 for(i=0; i<nGammas; i++)
82 if(random*sum < running[i])
break;