HEP-FCC / FCCSW

FCC software, common to FCC-hh, -ee, and -eh.
https://cern.ch/fccsw
33 stars 112 forks source link

Problem using particles in SimG4SingleParticleGeneratorTool #251

Closed jhrdinka closed 6 years ago

jhrdinka commented 6 years ago

When handing over another particle name than "geantino" to the SimG4SingleParticleGeneratorTool the initialisation of the tool fails here because the particle is not found.

vvolkl commented 6 years ago

I think I figured out why it isn't working for you - can you check that you indeed used the right physics list? The G4ParticleTable is defined in the physics list, and SimG4GeantinoDeposits doesn't know about muons. If that's the case, please change it to SimG4FtfpBert.

jhrdinka commented 6 years ago

Yes, I used the right physics list. However I just found the problem. It is not in the SimG4SingleParticleGeneratorTool, but in the geant_fullsim_pgun_geantino.py - example. One needs to use the Gaudi__ParticlePropertySvc and use the particle properties file: "Generation/data/ParticleTable.txt".

vvolkl commented 6 years ago

I'm a bit surprised, because the SimG4SingleParticleGeneratorTool is not using the ParticlePropertyService, only the MomentumRangeParticleGun, but in any case, if it works you can close the issue.