Repository navigation
Conversation
baltzell
force-pushed
the
pdg-g3-codes
branch
from
December 1, 2026 15:30
7e97485 to
0f5dcc8
Compare
c-dilks
reviewed
Dec 1, 2026
| particleDatabase.put(pid, new PDGParticle(name, pid, mass, charge)); | ||
| } | ||
|
|
||
| private static HashMap<Integer, PDGParticle> initDatabaseG3(HashMap<Integer, PDGParticle> pdg) { |
Member
There was a problem hiding this comment.
For reference and consideration, the jnp-physics version of this sort of approach is
private static HashMap<Integer, PDGParticle> initDatabaseGeant() {
HashMap<Integer, PDGParticle> particleMap = new HashMap<Integer, PDGParticle>();
particleMap.put(3, new PDGParticle("e-", 11, 3, 0.0005, -1));
particleMap.put(2, new PDGParticle("e+", -11, 2, 0.0005, 1));
particleMap.put(6, new PDGParticle("mu-", 13, 6, 0.1056583715, -1));
particleMap.put(5, new PDGParticle("mu+", -13, 5, 0.1056583715, 1));
particleMap.put(1, new PDGParticle("gamma", 22, 1, 0.000, 0));
particleMap.put(7, new PDGParticle("pi0", 111, 7, 0.1349766, 0));
particleMap.put(8, new PDGParticle("pi+", 211, 8, 0.13957018, 1));
particleMap.put(9, new PDGParticle("pi-", -211, 9, 0.13957018, -1));
particleMap.put(11, new PDGParticle("K+", 321, 11, 0.49367716, 1));
particleMap.put(12, new PDGParticle("K-", -321, 12, 0.49367716, -1));
particleMap.put(10, new PDGParticle("K0", 311, 10, 0.49761424, 0));
particleMap.put(14, new PDGParticle("p", 2212, 14, 0.938272046, 1));
particleMap.put(15, new PDGParticle("p-", -2212, 15, 0.938272046, -1));
particleMap.put(13, new PDGParticle("n", 2112, 13, 0.939565379, 0));
return particleMap;
}
Collaborator
Author
There was a problem hiding this comment.
how's it accessed?
baltzell
marked this pull request as draft
December 1, 2026 22:41
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
alternative to #1586