|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcnuphys.swim.Swimmer
public class Swimmer
Handles the swimming of a particle.
| Constructor Summary | |
|---|---|
Swimmer(cnuphys.magfield.IField field)
Swimmer constructor |
|
| Method Summary | |
|---|---|
void |
clearAllTrajectoriesNoViewRefresh()
Clears all trajectories and wont cause all event views to be refreshed. |
java.util.Vector<SwimTrajectory> |
getTrajectories()
Get all generated trajectories |
boolean |
isZeroMagneticField()
|
void |
setZeroMagneticField(boolean zeroMagneticField)
|
boolean |
stopSwim(double t,
double[] u)
Given the current value of the integration, should we stop? This allows the integration to stop, for example, if some distance from the origin has been exceeded. |
SwimTrajectory |
swim(LundId lundId,
double xo,
double yo,
double zo,
double momentum,
double theta,
double phi,
double rmax,
double pathmax)
Swims a Lund particle |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Swimmer(cnuphys.magfield.IField field)
field - interface into a magnetic field| Method Detail |
|---|
public SwimTrajectory swim(LundId lundId,
double xo,
double yo,
double zo,
double momentum,
double theta,
double phi,
double rmax,
double pathmax)
swim in interface ISwimmerlundId - the particle to swimxo - the x vertex position in cmyo - the y vertex position in cmzo - the z vertex position in cmmomentum - initial momentum in GeV/ctheta - initial polar angle in degreesphi - initial azimuthal angle in degreesrmax - max radial coordinate (then integration stops) in meterspathmax - max pathlength (then integration stops) in meters
public boolean stopSwim(double t,
double[] u)
stopSwim in interface ISwimmert - the current value of the independent variableu - the current state vector
true if we should stop now (prematurely).public java.util.Vector<SwimTrajectory> getTrajectories()
public void clearAllTrajectoriesNoViewRefresh()
public boolean isZeroMagneticField()
public void setZeroMagneticField(boolean zeroMagneticField)
zeroMagneticField - the zeroMagneticField to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||