hephysics.jet
Class ParticleF
- java.lang.Object
-
- hephysics.jet.ParticleF
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ParticleF>
public class ParticleF extends java.lang.Object implements java.lang.Comparable<ParticleF>, java.io.Serializable
A class representing a jet or particle with pre-computed et, et2, phi, eta (float values). It uses floats to speedup calculations for jet fundings. The class is used by light-weighthephysics.jets.KTjet
algorithm. "F" means float calculations The class has a minimum dynamic computation to minimize CPU. UseLParticle
for (slower) dynamic calculations. To use double precision calculations, usehephysics.jets.ParticleD
class.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description ParticleF()
Initialize pseudoparticle.ParticleF(float px, float py, float pz, float energy)
Initialize fast particle from 4-momenta.ParticleF(LParticle p)
Initialize pseudoparticle.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
add(ParticleF a)
Add to this particle and recalculate all characteristics.int
compareTo(ParticleF o)
Comparator.void
doc()
Show online documentation.float
eta()
Same as getEta().float
getEt()
float
getEt2()
float
getEta()
LParticle
getLParticle()
float
getPhi()
int
hashCode()
Get a hash codefloat
perp()
Same as getEt().void
setEt2(float et2)
void
setEta(float eta)
void
setPhi(float phi)
void
setPxPyPzE(float px, float py, float pz, float energy)
Initialize from 4-momenta.java.lang.String
toString()
Convert a particle to a string.
-
-
-
Constructor Detail
-
ParticleF
public ParticleF(LParticle p)
Initialize pseudoparticle.- Parameters:
p
- initialisation particle.
-
ParticleF
public ParticleF()
Initialize pseudoparticle.
-
ParticleF
public ParticleF(float px, float py, float pz, float energy)
Initialize fast particle from 4-momenta. The methods precomputes internal variables et, et, phi, eta.- Parameters:
px
-py
-pz
-energy
-
-
-
Method Detail
-
setPxPyPzE
public void setPxPyPzE(float px, float py, float pz, float energy)
Initialize from 4-momenta. Recompute et2, et, eta, and phi.- Parameters:
px
-py
-pz
-energy
-
-
getEta
public float getEta()
-
getPhi
public float getPhi()
-
getEt2
public float getEt2()
-
getEt
public float getEt()
-
perp
public float perp()
Same as getEt(). Returns perp without calculations.
-
eta
public float eta()
Same as getEta(). Returns pseudo-rapidity without calculations.
-
setEta
public void setEta(float eta)
-
setEt2
public void setEt2(float et2)
-
setPhi
public void setPhi(float phi)
-
getLParticle
public LParticle getLParticle()
-
compareTo
public int compareTo(ParticleF o)
Comparator. using perp2 for comparison (in increasing order)- Specified by:
compareTo
in interfacejava.lang.Comparable<ParticleF>
- Parameters:
o
-- Returns:
-
doc
public void doc()
Show online documentation.
-
toString
public java.lang.String toString()
Convert a particle to a string.- Overrides:
toString
in classjava.lang.Object
- Returns:
- a string with the particle
-
add
public void add(ParticleF a)
Add to this particle and recalculate all characteristics.- Parameters:
a
-
-
hashCode
public int hashCode()
Get a hash code- Overrides:
hashCode
in classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG