iceCube.uhe.particles
Class Particle

java.lang.Object
  extended by iceCube.uhe.particles.Particle
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
I3Particle

public class Particle
extends java.lang.Object
implements java.io.Serializable

    The Particle class to define their mass, names, flavors, lifetime
    It also provides the instance variables such as energy. 

             flavor  0      1      2        3
doublet 
    0              e-nu   mu-nu   tau-nu    hadron(pi0)
    1              e      muon    tauon     hadron(pi+)

    In adition this class can yield a maxtrix to accomodate dN/dlogE, 
    the energy distribution of particles. The matrix "logEnergyMatrix"
    corresponds to (dN/dlogE)_i (0< i = < DimensionOflogEnergyMatrix).
    The lowest logE and bin width in this table are defined by 
    "deltaLogE and alogEnergyMinimu", respectively.
    

See Also:
Serialized Form

Field Summary
static int NumberOfDoublet
          Number of the "Doublet" valuables to define the particle.
static int NumberOfFlavor
          Number of the "Flavor" valuables to define the particle.
static double[][] particleMasses
          Particle Mass [GeV]
 
Constructor Summary
Particle(int initialFlavor, int initialDoublet)
          Default initial energy 1EeV = 1.0e9 GeV
Particle(int initialFlavor, int initialDoublet, double initialEnergy)
          Constructor for Checking the given flavor and doublet index.
 
Method Summary
 void generateLogEnergyMatrix()
           
static double getDeltaLogEnergy()
           
static int getDimensionOfLogEnergyMatrix()
           
 int getDoublet()
           
 double getEnergy()
           
 int getFlavor()
           
 double getLifeTime()
           
 double getLogEnergy()
           
 double getLogEnergyMatrix(int ilogE)
           
static double getLogEnergyMinimum()
           
 double getMass()
           
static boolean isValidDoublet(int initialDoublet)
           
 boolean isValidEnergy(double initialEnergy)
           
static boolean isValidFlavor(int initialFlavor)
           
static java.lang.String particleName(int flavor, int doublet)
          Display the particle name.
 void putDeltaLogEnergy(double newDeltaLogE)
           
 void putDimensionOfLogEnergyMatrix(int dimension)
           
 void putEnergy(double newEnergy)
           
 void putLogEnergy(double newLogEnergy)
           
 void putLogEnergyMatrix(double logE, double matrixElement)
           
 void putLogEnergyMatrix(int ilogE, double matrixElement)
           
 void putLogEnergyMinimum(double newLogEnergy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NumberOfFlavor

public static final int NumberOfFlavor
Number of the "Flavor" valuables to define the particle.

See Also:
Constant Field Values

NumberOfDoublet

public static final int NumberOfDoublet
Number of the "Doublet" valuables to define the particle.
 0 .. Neutrinos (or pi0 if Flabor = 3)
 1 .. Charged lepton (or pi+) 
        

See Also:
Constant Field Values

particleMasses

public static final double[][] particleMasses
Particle Mass [GeV]

Constructor Detail

Particle

public Particle(int initialFlavor,
                int initialDoublet)
Default initial energy 1EeV = 1.0e9 GeV


Particle

public Particle(int initialFlavor,
                int initialDoublet,
                double initialEnergy)
Constructor for Checking the given flavor and doublet index.
           initialFlabor ... flavor valuable
           initialDoblet ... doublet valuable
           initialEnergy ... initial Energy [GeV]
           

Method Detail

isValidFlavor

public static boolean isValidFlavor(int initialFlavor)

isValidDoublet

public static boolean isValidDoublet(int initialDoublet)

isValidEnergy

public boolean isValidEnergy(double initialEnergy)

getFlavor

public int getFlavor()

getDoublet

public int getDoublet()

getMass

public double getMass()

getLifeTime

public double getLifeTime()

getEnergy

public double getEnergy()

getLogEnergy

public double getLogEnergy()

putEnergy

public void putEnergy(double newEnergy)

putLogEnergy

public void putLogEnergy(double newLogEnergy)

particleName

public static java.lang.String particleName(int flavor,
                                            int doublet)
Display the particle name. Returns the String where the particle name is written.


getDimensionOfLogEnergyMatrix

public static int getDimensionOfLogEnergyMatrix()

putDimensionOfLogEnergyMatrix

public void putDimensionOfLogEnergyMatrix(int dimension)

getLogEnergyMinimum

public static double getLogEnergyMinimum()

putLogEnergyMinimum

public void putLogEnergyMinimum(double newLogEnergy)

getDeltaLogEnergy

public static double getDeltaLogEnergy()

putDeltaLogEnergy

public void putDeltaLogEnergy(double newDeltaLogE)

generateLogEnergyMatrix

public void generateLogEnergyMatrix()

getLogEnergyMatrix

public double getLogEnergyMatrix(int ilogE)

putLogEnergyMatrix

public void putLogEnergyMatrix(double logE,
                               double matrixElement)

putLogEnergyMatrix

public void putLogEnergyMatrix(int ilogE,
                               double matrixElement)