iceCube.uhe.decay
Class TauDecayBase

java.lang.Object
  extended by iceCube.uhe.event.MonteCarloBase
      extended by iceCube.uhe.decay.TauDecayBase

public class TauDecayBase
extends MonteCarloBase

    The TauDecayBase class to treat tau decay same as interactions for Event class.
    This class and other "Base" classes inherit the MonteCarloBase class.

    This class has TauDecayYMatrix object. It treats energy transfer as dN/dlogY,
    Y = Edecay/Etau.
    


Constructor Summary
TauDecayBase(TauDecayYMatrix tauDecayMtx)
          Constructor for making the table of lifetime and cumulative table.
 
Method Summary
 int getDecayMode()
          Get the decay mode (0:tau to electron, 1:tau to mu, 2:tau to hadron)
 java.lang.String getInteractionName()
          Get the name of interacion
 double getNeutrinoPathLength(double logEnergy, RandomGenerator rand)
          This is a dummy method because this class extends MonteCarloBase.class
 double getNeutrinoPathLength(int iLogE, RandomGenerator rand)
          This is a dummy method because this class extends MonteCarloBase.class
 double getPathLength(double logEnergy, RandomGenerator rand)
          Get pathlength by random number.
 double getPathLength(int iLogE, RandomGenerator rand)
          Get pathlength by random number.
 double getProducedEnergy(double logEnergy, RandomGenerator rand)
          Get produced log energy.
 double getProducedEnergy(int iLogE, RandomGenerator rand)
          Get produced log energy.
 int getProducedFlavor()
          Get the flavor of the produced particle
 int getPropDoublet()
          Get the doublet of the particle propagating
 int getPropFlavor()
          Get the flavor of the particle propagating
 int getTypeOfInteraction()
          get Type Of Interaction (Interaction->0; Decay->1)
 void setCumulativeTable(TauDecayYMatrix tauDecayMtx)
          Make a cumulative table of differential cross section.
 void setDecayMode(RandomGenerator rand)
          Choose the decay mode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TauDecayBase

public TauDecayBase(TauDecayYMatrix tauDecayMtx)
Constructor for making the table of lifetime and cumulative table.

Method Detail

setCumulativeTable

public void setCumulativeTable(TauDecayYMatrix tauDecayMtx)
Make a cumulative table of differential cross section. The elements are normalized to branching ratio of tau decay.


getPathLength

public double getPathLength(int iLogE,
                            RandomGenerator rand)
Get pathlength by random number.

Specified by:
getPathLength in class MonteCarloBase

getPathLength

public double getPathLength(double logEnergy,
                            RandomGenerator rand)
Get pathlength by random number.

Specified by:
getPathLength in class MonteCarloBase

getNeutrinoPathLength

public double getNeutrinoPathLength(int iLogE,
                                    RandomGenerator rand)
This is a dummy method because this class extends MonteCarloBase.class

Specified by:
getNeutrinoPathLength in class MonteCarloBase

getNeutrinoPathLength

public double getNeutrinoPathLength(double logEnergy,
                                    RandomGenerator rand)
This is a dummy method because this class extends MonteCarloBase.class

Specified by:
getNeutrinoPathLength in class MonteCarloBase

getProducedEnergy

public double getProducedEnergy(int iLogE,
                                RandomGenerator rand)
Get produced log energy. In order to decide the value of log energy in a bin, use a random number

Specified by:
getProducedEnergy in class MonteCarloBase

getProducedEnergy

public double getProducedEnergy(double logEnergy,
                                RandomGenerator rand)
Get produced log energy. In order to decide the value of log energy in a bin, use a random number

Specified by:
getProducedEnergy in class MonteCarloBase

setDecayMode

public void setDecayMode(RandomGenerator rand)
Choose the decay mode. This method is called when tau decay is chozen. Tau to hadon decay is treated which produced one "hadron" particle, it is superposition of each hadrons.


getDecayMode

public int getDecayMode()
Get the decay mode (0:tau to electron, 1:tau to mu, 2:tau to hadron)


getPropFlavor

public int getPropFlavor()
Get the flavor of the particle propagating

Specified by:
getPropFlavor in class MonteCarloBase

getPropDoublet

public int getPropDoublet()
Get the doublet of the particle propagating

Specified by:
getPropDoublet in class MonteCarloBase

getProducedFlavor

public int getProducedFlavor()
Get the flavor of the produced particle

Specified by:
getProducedFlavor in class MonteCarloBase

getInteractionName

public java.lang.String getInteractionName()
Get the name of interacion

Specified by:
getInteractionName in class MonteCarloBase

getTypeOfInteraction

public int getTypeOfInteraction()
get Type Of Interaction (Interaction->0; Decay->1)

Specified by:
getTypeOfInteraction in class MonteCarloBase