Repository navigation
Conversation
|
Using tritium, he3 or he4 from gemc to CJ was crashing the truth matching since it reads the MC Particle bank that converts PDG codes to short gemc codes, and these codes were not in the pdgdatabase |
|
I think Whitney added those species a few lines down. Maybe they were never used. |
|
@baltzell They were added with the real PDG code, but gemc is writing short codes in the MC::Particle bank that is then used for truth matching, so it crashes when using the truth matching specifically |
I believe everything that is added there with the PDG/geant4 ID and not the gemc/geant3 ID will crash with the truth matching. The TruthMatch class is reading out the ID from MC::Particle. gemc writes the short (geant3) ID in there. If there is no entry with the corresponding ID in the PDGdatabase, it crashes. This should be the case for all particleMap that are created using the geant4 PID as the first field at least. Maybe another solution is that the comparison is done with the particleIdGeant from the PDGParticle class, and not fields in the hashmap? |
|
Is ALERT using Whitney's 4 PDG particles? That naming follows more the existing naming scheme. |
|
It's worth mentioning here that gemc does support PDG codes in LUND files. But coatjava probably should support the same "short" (geant3) codes as gemc too. |
|
see if #1599 is a better option |
No description provided.