cz.muni.fi.xmravec.bc.prodes
Class Physics

java.lang.Object
  extended by cz.muni.fi.xmravec.bc.prodes.Physics

public class Physics
extends java.lang.Object

Class for simulation of neutrons history according to physical model


Constructor Summary
Physics(RangeTable range, Filling filling)
          Constructor setting the proton range table and filling
 
Method Summary
 double[] generate(int quantity, double energy, int pressure)
          Generate one beam of monoenergetic neutrons
 org.jfree.data.statistics.HistogramDataset generateOnce(int quantity, double energy, int pressure, double precision)
          Generate one monoenergetic neutron beam
 int getCount()
          Number of (first) interactions
 int getCurrent()
          Current progress of simulation
 org.jfree.data.statistics.HistogramDataset getResults()
          Returns results
 boolean isDone()
          Status of simulation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Physics

public Physics(RangeTable range,
               Filling filling)
Constructor setting the proton range table and filling

Parameters:
range -
filling -
Method Detail

generateOnce

public org.jfree.data.statistics.HistogramDataset generateOnce(int quantity,
                                                               double energy,
                                                               int pressure,
                                                               double precision)
Generate one monoenergetic neutron beam

Parameters:
quantity - number of neutrons
energy - energy of one neutron in series (MeV)
pressure - pressure inside the detector (atm)
precision - width of bin of response function (MeV)
Returns:
dataset containing results

generate

public double[] generate(int quantity,
                         double energy,
                         int pressure)
Generate one beam of monoenergetic neutrons

Parameters:
quantity - number of neutrons
energy - energy of one neutron (MeV)
pressure - pressure pressure inside the detector (atm)
Returns:
array of registered proton energies

getCurrent

public int getCurrent()
Current progress of simulation

Returns:
number of calculated neutron histories

isDone

public boolean isDone()
Status of simulation

Returns:
true if simulation is finished

getResults

public org.jfree.data.statistics.HistogramDataset getResults()
Returns results

Returns:
dataset with results

getCount

public int getCount()
Number of (first) interactions

Returns:
number of interactions