Skip to content

Instantly share code, notes, and snippets.

@stdlogicvector
Created November 5, 2014 23:39
Show Gist options
  • Save stdlogicvector/a1f70f92cec7f62025a7 to your computer and use it in GitHub Desktop.
Save stdlogicvector/a1f70f92cec7f62025a7 to your computer and use it in GitHub Desktop.
Particles
public enum ElementaryParticle {
// Quarks
QUARK_UP("Up Quark", "u", 2.3E+06, +1/2, +2/3),
QUARK_DOWN("Down Quark", "d", 4.8E+06, +1/2, -1/3),
QUARK_CHARM("Charm Quark", "c", 1.275E+09, +1/2, +2/3),
QUARK_STRANGE("Strange Quark", "s", 95E+06, 1/2, -1/3),
QUARK_TOP("Top Quark", "t", 173.07E+06, +1/2, +2/3),
QUARK_BOTTOM("Bottom Quark", "b", 4.18E+06, +1/2, -1/3),
//Leptons
LEPTON_ELECTRON("Electron", "e", 0.511E+06, +1/2, -1),
LEPTON_ELECTRON_NEUTRINO("Electron Neutrino", "v_e", 2.2, +1/2, 0),
LEPTON_MUON("Muon", "µ", 105.7E+06, +1/2, -1),
LEPTON_MUON_NEUTRINO("Muon Neutrino", "v_µ", 0.17E+06, +1/2, 0),
LEPTON_TAU("Tau", "\tau", 1.777E+09, +1/2, -1),
LEPTON_TAU_NEUTRINO("Tau Neutrino", "v_\tau", 15.5E+06, +1/2, 0),
// Gauge Bosons
BOSON_GLUON("Gluon", "g", 0, +1, 0),
BOSON_PHOTON("Photon", "\gamma", 0, +1, 0),
BOSON_Z("Z Boson", "Z", 91.2E+09, +1, 0),
BOSON_W+("W+ Boson", "W+", 80.4E+09, +1, 0),
BOSON_W-("W- Boson", "W-", 80.4E+09, -1, 0),
BOSON_HIGGS("Higgs Boson", "H", 126E+09, 0, 0),
public final String name;
public final String symbol;
public final float mass; // in ev/c²
public final float spin;
public final float electric_charge;
public ElementaryParticle(
final String name,
final String symbol,
final float mass,
final float spin,
final float electric_charge) {
this.name = name;
this.symbol = symbol;
this.mass = mass;
this.spin = spin;
this.electric_charge = electric_charge;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment