|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcnuphys.lund.LundId
public class LundId
Used to store a Lund ID
| Constructor Summary | |
|---|---|
LundId(java.lang.String type,
java.lang.String name,
int id,
double mass,
int chargeX3,
int spinX2)
Create a Lund ID |
|
| Method Summary | |
|---|---|
int |
compareTo(LundId o)
Compare based on Id. |
int |
getCharge()
Get the charge of the particle in e's. |
int |
getChargeX3()
Return three times the charge, in units of e. |
int |
getId()
Get the Lund Id of the particle. |
double |
getMass()
Get the mass in MeV |
java.lang.String |
getName()
Get the name of the particle. |
double |
getSpin()
Get the spin of the particle. |
java.lang.String |
getType()
Get the type, one of {"Lepton","InterBoson", "Nucleus","Baryon", "Meson"} |
java.lang.String |
smallString()
Obtain a small string representation. |
java.lang.String |
toString()
Obtain a string representation. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LundId(java.lang.String type,
java.lang.String name,
int id,
double mass,
int chargeX3,
int spinX2)
type - "Lepton", "InterBoson", "Nucleus", "Baryon", or "Meson"name - e.g., "pi+"id - the Lund Idmass - the mass in GeVchargeX3 - three times the chargespinX2 - twice the spin| Method Detail |
|---|
public java.lang.String getType()
public java.lang.String getName()
public int getId()
public double getSpin()
public int getCharge()
public double getMass()
public int getChargeX3()
public java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(LundId o)
compareTo in interface java.lang.Comparable<LundId>public java.lang.String smallString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||