Skip to content

complete light nuclear codes and store/access G3 codes in a parallel map - #1602

Draft
baltzell wants to merge 2 commits into
developmentfrom
pdg-g3-codes
Draft

baltzell wants to merge 2 commits into
developmentfrom
pdg-g3-codes

Conversation

@baltzell

Copy link
Copy Markdown
Collaborator

alternative to #1586

@baltzell
baltzell requested review from N-Plx and c-dilks November 24, 2026 17:38
@baltzell baltzell changed the title complete G3 nuclear codes and store/access in a parallel map complete PDG nuclear codes and store/access G3 codes in a parallel map Nov 24, 2026
@baltzell
baltzell requested a review from heddle as a code owner December 1, 2026 00:21
@baltzell baltzell changed the title complete PDG nuclear codes and store/access G3 codes in a parallel map complete light nuclear codes and store/access G3 codes in a parallel map Dec 1, 2026
particleDatabase.put(pid, new PDGParticle(name, pid, mass, charge));
}

private static HashMap<Integer, PDGParticle> initDatabaseG3(HashMap<Integer, PDGParticle> pdg) {

@c-dilks c-dilks Dec 1, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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;
        }

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how's it accessed?

@baltzell
baltzell marked this pull request as draft December 1, 2026 22:41

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants