public class ParticleD extends Object implements Comparable<ParticleD>, Serializable
Constructor and Description |
---|
ParticleD()
Initialize pseudoparticle.
|
ParticleD(double px,
double py,
double pz,
double energy)
Initialize from 4-momenta.
|
Modifier and Type | Method and Description |
---|---|
void |
add(ParticleD a)
Add to this particle another particle.
|
void |
add(ParticleD a,
int index)
Add to this particle another particle.
|
void |
addConstituent(int i) |
void |
cachePhiRapidity()
The method precomputers Phi, Rapidity and Pt2 and store them.
|
int |
compareTo(ParticleD o)
Comparator.
|
ParticleD |
copy(ParticleD o)
Copy a particle.
|
double |
e()
Get energy.
|
double |
et()
Compute transverse energy.
|
double |
et2()
Compute transverse energy squared.
|
double |
eta()
Compute pseudorapidity.
|
int[] |
getConstituents()
Get indexes of constituents, iff filled with the "add" method
|
List<Integer> |
getConstituentsList()
Get indexes of constituents, iff filled with the "add" method
|
double |
getPhi()
Get cached phi
|
double |
getPt()
Get cached Pt.
|
double |
getPt2()
Get cached perp**2.
|
double |
getRapidity()
Get cached rapidity
|
int |
hashCode()
Get a hash code
|
double |
m()
Compute mass.
|
double |
mag()
Compute magnitude sqrt(px**2+py**2+pz**2)
|
double |
mass()
Compute mass.
|
double |
perp()
Compute transverse momentum (pT).
|
double |
perp2()
Compute pT**2.
|
double |
phi()
Compute Phi
|
double |
px()
Get px.
|
double |
py()
Get py.
|
double |
pz()
Get pz.
|
double |
rapidity()
Compute rapidity.
|
void |
setConstituents(ArrayList<Integer> consts) |
void |
setEnergy(double energy)
Set energy.
|
void |
setPhi(double phi) |
void |
setPt2(double pt2) |
void |
setPtEtaPhiM(double pt,
double eta,
double phi,
double m)
Set 4-momentum of a particle using transverse momentum (pt),
pseudorapidity (eta) and azimuthal angle (phi) and mass (m).
|
void |
setPx(double px) |
void |
setPxPyPzE(double px,
double py,
double pz,
double energy)
Initialize from 4-momenta.
|
void |
setPy(double py) |
void |
setPz(double pz) |
void |
setRapidity(double rapidity) |
String |
toString()
Convert a particle to a string.
|
public ParticleD()
public ParticleD(double px, double py, double pz, double energy)
px
- py
- pz
- energy
- public void setPxPyPzE(double px, double py, double pz, double energy)
px
- py
- pz
- energy
- public void setPtEtaPhiM(double pt, double eta, double phi, double m)
pt
- transverse momentum of a particle.eta
- eta (pseudorapidity) .phi
- azimuthal anglem
- masspublic double eta()
public double et2()
public double et()
public double mass()
public double m()
public double rapidity()
public double mag()
public double perp2()
public double perp()
public void setEnergy(double energy)
public int compareTo(ParticleD o)
compareTo
in interface Comparable<ParticleD>
o
- particlepublic ParticleD copy(ParticleD o)
o
- public String toString()
public double px()
public double py()
public double pz()
public double getRapidity()
public double getPt2()
public double getPt()
public double getPhi()
public List<Integer> getConstituentsList()
public void addConstituent(int i)
public int[] getConstituents()
public double phi()
public double e()
public void setPx(double px)
public void setPy(double py)
public void setPz(double pz)
public void setRapidity(double rapidity)
public void setPhi(double phi)
public void setPt2(double pt2)
public void cachePhiRapidity()
public void add(ParticleD a)
a
- public void add(ParticleD a, int index)
a
- index
- index of the particle to be storedJas4pp 1.5 © Java Analysis Studio for Particle Physics