public class RK4integrator extends Object
Modifier and Type | Field and Description |
---|---|
private double |
alpha |
private org.lcsim.geometry.FieldMap |
fM |
private double |
h |
private double |
h2 |
Constructor and Description |
---|
RK4integrator(double Q,
double dx,
org.lcsim.geometry.FieldMap fM) |
Modifier and Type | Method and Description |
---|---|
private Pair<Hep3Vector,Hep3Vector> |
f(Hep3Vector x,
Hep3Vector p) |
Pair<Hep3Vector,Hep3Vector> |
integrate(Hep3Vector r0,
Hep3Vector p0,
double s) |
Hep3Vector |
integrationMomentum(Hep3Vector r0,
Hep3Vector p0,
double s) |
Hep3Vector |
integrationPosition(Hep3Vector r0,
Hep3Vector p0,
double s) |
void |
setAlpha(double input) |
void |
setFieldmap(org.lcsim.geometry.FieldMap input) |
void |
setQ(int input) |
void |
setStepSize(double input) |
private double h
private double h2
private double alpha
private org.lcsim.geometry.FieldMap fM
public RK4integrator(double Q, double dx, org.lcsim.geometry.FieldMap fM)
public void setQ(int input)
public void setAlpha(double input)
public void setFieldmap(org.lcsim.geometry.FieldMap input)
public void setStepSize(double input)
public Hep3Vector integrationPosition(Hep3Vector r0, Hep3Vector p0, double s)
public Hep3Vector integrationMomentum(Hep3Vector r0, Hep3Vector p0, double s)
public Pair<Hep3Vector,Hep3Vector> integrate(Hep3Vector r0, Hep3Vector p0, double s)
private Pair<Hep3Vector,Hep3Vector> f(Hep3Vector x, Hep3Vector p)
Copyright © 2019. All rights reserved.