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

java.lang.Object
  extended by cz.muni.fi.xmravec.bc.prodes.Sphere
All Implemented Interfaces:
DetectorShape

public class Sphere
extends java.lang.Object
implements DetectorShape

Spheric detector shape


Constructor Summary
Sphere()
          Sphere constructor tries to load radius from radius.txt file
 
Method Summary
 Coordinates coordinates()
          Calculates coordinates of intersection neutron trajectory and detector surface
 double getLambda()
          Returns a distance of neutron to the surface of detector in neutron direction
 Coordinates hitPoint(Particle particle)
          Calculates the coordinates on the surface of the detector where particle is about to leave the detector
 void setLambda(double lambda)
          Sets a distance of neutron to the surface of detector in neutron direction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sphere

public Sphere()
Sphere constructor tries to load radius from radius.txt file

Method Detail

coordinates

public Coordinates coordinates()
Calculates coordinates of intersection neutron trajectory and detector surface

Specified by:
coordinates in interface DetectorShape
Returns:
cartesian coordinates of intersection

getLambda

public double getLambda()
Returns a distance of neutron to the surface of detector in neutron direction

Specified by:
getLambda in interface DetectorShape
Returns:
lambda distance of neutron to the surface of detector in metres

setLambda

public void setLambda(double lambda)
Sets a distance of neutron to the surface of detector in neutron direction

Specified by:
setLambda in interface DetectorShape
Parameters:
lambda - distance of neutron to the surface of detector in metres

hitPoint

public Coordinates hitPoint(Particle particle)
Calculates the coordinates on the surface of the detector where particle is about to leave the detector

Specified by:
hitPoint in interface DetectorShape
Parameters:
particle - particle
Returns:
carthesian coordinates