-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add long-form names #619
Comments
Hi. This would not be so helpful, actually. What you call long names, or "names as we refer to some particles as we speak", are only possible for the most common particles, which are the proton, neutron, electron, muon and tau. Already here some people talk about the tauon - maybe a detail - and such a name would say nothing about the charge. If you would go ahead and add a new "property" long_name, what would that be for the bosons and in particular for all the excited mesons, etc.? Think of a You have to recall that the various names we define either are defined by the PDG, and we hence need to abide to that, or else are extensions for very needed names in programs, as the EvtGen names. Here are a few examples for those common particles you seem to be interested in:
In short, you cannot add long names for just the 1% of the particles (much less if you include the nuclei) and I do not see anything reasonable or useful anyway. Can you tell me the motivation? Feel free to close if you agree with my analysis. Thanks anyway; always good to discuss with users :-). |
I forgot to say - "gamma" works because it is the name and PDG name (typically a short version with no charge) for the photon. BTW, this exemplifies even further the issue because then you would also want to allow for the name "photon". On the other hand would the long name of the Z boson be "Z-boson", or "Z boson"? You would be opening a can of warms, really, for no real use/gain. |
Nothing more complex than a naive user trying to do
Which is 99.9% of the particles people would like to use I couldn't figure out any way to get the proton and the neutron with |
Maybe the issue is more about the documentation? Again, some special particles are, well, special, but then do you say tau ,tauon, tau lepton, tau-lepton (just picking one example of another popular particle) ;-). Would it help if I updated the |
I think the issue is not about the doc-string, but about user's expectation when seeing a very general sounding method like If it was |
It can be frustrating but funny enough I never got the issue raised in all these years. I will reply on that one soon, though Hans already sourced the issue. I agree one should have a special handling for the 2 only special particles that can be defined with 2 PDG IDs, since particles and also nuclei. |
Life is never so easy - if you want to be consistent then from_pdg_name, which I agree sounds nice, would not be OK because the PDG name does not have the charge included! I either have to be consistent, and have features as this one you raise, or be inconsistent with the PDG, which I think is not viable. You need to look from both perspectives, not just from the side of a "naive user", and a naive user needs to be educated to be less naive and understand what they are dealing with, and why things are the way they are. |
Maybe a bit more context on what this triggered: we are thinking about representation of particles in CTAO data models and chose the pdgid. This leaves us to figure out interfaces to the software using different schemes, e.g. CORSIKA 7 (using the scheme now also implemented here) and just plain text configuration files using mostly
My first tries for adding the conversion from strings were to do |
One could easily add some special code to make from_name("proton") work (and others), but then "proton" would not appear as a Particle name/property, and special cases would be needed for other methods as well. I just don't see this viable. |
Now, for example my experiment, LHCb, also has some "funny" naming scheme - I never understood why - that departs for EvtGen names (these are very important for flavour physics) and PDG names. There is a little |
I now see better your needs. I won't claim that the conversions are the best possible (in fact there are suggestions around for improvements around this "area" - #427) but that might be a good option to you? |
I will reply to the rest of your issues by the end of the week. Let me know if you see any possible route here, else we close and sort the other feature, which is important. Thanks. |
You mean that:
? That might be confusing, yes. |
Yep, exactly. |
I think this is now settled, hence closing. (But please reopen if you see a path forward.) |
Would be handy and intuitive (I just tried and was surprised this doesn't work), it also is inconsistent sometimes (I guess due to not requiring greek letters as input?):
The text was updated successfully, but these errors were encountered: