Skip to content

Commit

Permalink
Add comment about spin
Browse files Browse the repository at this point in the history
  • Loading branch information
Wells Wulsin committed Feb 24, 2015
1 parent 00f8ef3 commit 6c05163
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions SimG4Core/CustomPhysics/src/CustomPDGParser.cc
Expand Up @@ -140,6 +140,12 @@ return 0;

double CustomPDGParser::s_spin(int pdg)
{
// The PDG numbering is described in the Review of Particle Physics:
// "3. In composite quark systems (diquarks, mesons, and baryons) ...
// the rightmost digit nJ = 2J + 1 gives the system's spin."
// Since this does not apply to SUSY / exotic particles,
// if the spin is important for the simulation
// it should be hard-coded based on PDG ID in this function.
int pdgAbs=abs(pdg);
return pdgAbs % 10;
}
Expand Down

0 comments on commit 6c05163

Please sign in to comment.