iceCube.uhe.interactions
Class GlashowResonanceBase

java.lang.Object
  extended by iceCube.uhe.event.MonteCarloBase
      extended by iceCube.uhe.interactions.GlashowResonanceBase

public class GlashowResonanceBase
extends MonteCarloBase

    The GlashowResonanceBase class to treat Glashow Resonance for JulietEventGenerator class and 
    RunManager class. This class inherits the MonteCarloBase class.
    


Field Summary
static int neutrinoFactor
          In order to save CPU time, we increase neutrino cross section by this factor.
 
Constructor Summary
GlashowResonanceBase()
          Default Constructor of GlashowResonanceBase.
GlashowResonanceBase(int flavor, int mediumID)
          Constructor of GlashowResonanceBase.
 
Method Summary
 java.lang.String getInteractionName()
          Get the name of the interaction
 double getNeutrinoPathLength(double logEnergy, RandomGenerator rand)
          Get pathlength for neutrino.
 double getNeutrinoPathLength(int iLogE, RandomGenerator rand)
          Get pathlength for neutrino by given logEnergy bin.
 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 propagateing
 int getPropFlavor()
          Get the flavor of the particle propagateing
 int getTypeOfInteraction()
          Get type of the interaction (Interaction->0; Decay->1)
 void setProducedFlavor(int flavor)
          Set the flavor of the produced particle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

neutrinoFactor

public static int neutrinoFactor
In order to save CPU time, we increase neutrino cross section by this factor. As long as the meanfree path is by far shorter than the propagation length (presumably 1km), this is equivallent to the case when one neutrino particle represents multiple neutrinos whose number is equal to this factor. You (or RunManager class) have to\ devide this factor later to compensate this "artificial" enhancement of the neutrino cross section.

Constructor Detail

GlashowResonanceBase

public GlashowResonanceBase()
Default Constructor of GlashowResonanceBase.


GlashowResonanceBase

public GlashowResonanceBase(int flavor,
                            int mediumID)
Constructor of GlashowResonanceBase.

Method Detail

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)
Get pathlength for neutrino by given logEnergy bin.

Specified by:
getNeutrinoPathLength in class MonteCarloBase

getNeutrinoPathLength

public double getNeutrinoPathLength(double logEnergy,
                                    RandomGenerator rand)
Get pathlength for neutrino. You can get exact path length from a random number because of simple energy dependence of Sigma.

Specified by:
getNeutrinoPathLength in class MonteCarloBase

getProducedEnergy

public double getProducedEnergy(int iLogE,
                                RandomGenerator rand)
Get produced log energy. You can get exact energy from a random number because of simple energy dependence of dSigma/dy, where y = 1 - E_{l^{-1}}/E_{\bar{\nu_e}}.

Specified by:
getProducedEnergy in class MonteCarloBase

getProducedEnergy

public double getProducedEnergy(double logEnergy,
                                RandomGenerator rand)
Get produced log energy. You can get exact energy from a random number because of simple energy dependence of dSigma/dy, where y = 1 - E_{l^{-1}}/E_{\bar{\nu_e}}.

Specified by:
getProducedEnergy in class MonteCarloBase

getPropFlavor

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

Specified by:
getPropFlavor in class MonteCarloBase

getPropDoublet

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

Specified by:
getPropDoublet in class MonteCarloBase

getProducedFlavor

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

Specified by:
getProducedFlavor in class MonteCarloBase

setProducedFlavor

public void setProducedFlavor(int flavor)
Set the flavor of the produced particle


getInteractionName

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

Specified by:
getInteractionName in class MonteCarloBase

getTypeOfInteraction

public int getTypeOfInteraction()
Get type of the interaction (Interaction->0; Decay->1)

Specified by:
getTypeOfInteraction in class MonteCarloBase