impy-project / chromo

Hadronic Interaction Model interface in PYthon
Other
31 stars 7 forks source link

PhoJet cannot handle projectiles other than protons #105

Closed HDembinski closed 1 year ago

HDembinski commented 1 year ago

The name "PhoJet" suggests that PhoJet can handle gamma + hadron collisions. However, when these are attempted, "PhoJet" crashes, see e.g. https://github.com/impy-project/impy/actions/runs/3724300209/jobs/6316372052#step:10:4256

PhoJet also crashes when hadrons (e.g. pi-) are used as projectiles.

afedynitch commented 1 year ago

Yes, true, PHOJet does gamma-gamma, gamma-hadron, as well as DPMJET, actually. But there are some specific settings (different proton PDF) required to run gammas. I could introduce some special case and add these settings but it needs to happen at initialization time and then the generator can not switch back to different primaries consistently. This has some historical non-scientific reasons dating back to my PhD.

We can leave this as a bug for while until I have more on-screen time. The two options to fix it are:

HDembinski commented 1 year ago

I think it is fine to restrict PhoJet to hadron-hadron for the time being, and leave out photon-hadron.

But hadron-hadron also do not work, only p-p, is that expected?

Ralph always says that people should not use PhoJet anymore. How important is it that we have bindings for PhoJet? It sounds like DPMJet offers a superset of the functionality of PhoJet. In that case, PhoJet would only be interesting for historical reasons.

Or is it more complicated?

afedynitch commented 1 year ago

Phojet has some advantages compared to DPMJET. DPMJET uses a subset of information from PHOJET and simply wraps around it for events, where nuclei are not involved. But when doing this it loses quite some about event topology (MPI, diffractive cuts, etc). I still recommend using PHOJET for pp or h-p physics at high energies.

Nonetheless, I fixed the projectiles accepted by phojet, so it doesn't crash anymore in #90. So, we can close this or leave it until I find time to take care of the photon projectile fixes.

afedynitch commented 1 year ago

This issue can be closed since the description is not accurate anymore and the initial problem is gone. Photons in PHOJET and DPMJET need deeper fixing in the models and it's not a matter of chromo.