// Add ions to PDG Data base
//
AddParticlesToPdgDataBase();
+ //
+
+
}
}
// Error id
if (id == 0 || id < kFLUKAcodemin || id > kFLUKAcodemax) {
- if (fVerbosityLevel >= 3)
- printf("PDGFromId: Error id = 0\n");
+ if (fVerbosityLevel >= -1)
+ printf("PDGFromId: Error id = 0 %5d %5d\n", id, fCaller);
return -1;
}
// Good id
// and there is a call to endraw for energy deposition for each of them
// and they have the track number of their parent, but different identity (pdg)
// so we want to assign also their parent identity.
- if( (IsTrackStop() )
+ if( (IsTrackStop())
&& TRACKR.ispusr[mkbmx2 - 4] == TRACKR.ispusr[mkbmx2 - 1]
&& TRACKR.jtrack != TRACKR.ispusr[mkbmx2 - 3] ) {
if (fVerbosityLevel >=3)
<< " assign parent PDG=" << PDGFromId(TRACKR.ispusr[mkbmx2 - 3]) << endl;
return TRACKR.ispusr[mkbmx2 - 3]; // assign parent identity
}
- return TRACKR.jtrack;
+ return TRACKR.jtrack;
}
break;
case kKASOPHrefraction:
iproc = kPLightRefraction;
- case kEMSCOlocaledep :
+ case kEMFSCOlocaldep :
iproc = kPPhotoelectric;
break;
default:
kKASKADpair = 104, // pair production
kKASKADbrems = 105, // bremsstrahlung
kEMFSCO = 2, // EMFSCO code first digit
- kEMSCOlocaledep = 20, // local energy deposition (i.e. photoelectric)
+ kEMFSCOlocaldep = 20, // local energy deposition (i.e. photoelectric)
kEMFSCOstopping1 = 21, // below user-defined cut-off
kEMFSCOstopping2 = 22, // below user cut-off
kEMFSCOescape = 23, // escape