Package org.jlab.clas.swimtools
Class Swim
java.lang.Object
org.jlab.clas.swimtools.Swim
- Direct Known Subclasses:
- DoubleSwim
- Author:
- ziegler
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiondouble[]AdaptiveSwimCylinder(double a1x, double a1y, double a1z, double a2x, double a2y, double a2z, double radius, double accuracy) double[]AdaptiveSwimPlane(double px, double py, double pz, double nx, double ny, double nz, double accuracy) double[]AdaptiveSwimRho(double radius, double accuracy) voidBfield(int sector, double x_cm, double y_cm, double z_cm, float[] result) voidBfieldLab(double x_cm, double y_cm, double z_cm, float[] result) voidSetSwimParameters(double x0, double y0, double z0, double px, double py, double pz, int charge) Sets the parameters used by swimmer based on the input track parametersvoidSetSwimParameters(double xcm, double ycm, double zcm, double phiDeg, double thetaDeg, double p, int charge, double maxPathLength) voidSetSwimParameters(double xcm, double ycm, double zcm, double phiDeg, double thetaDeg, double p, int charge, double maxPathLength, double Accuracy, double StepSize) voidSetSwimParameters(int direction, double x0, double y0, double z0, double thx, double thy, double p, int charge) voidSetSwimParameters(int superlayerIdx, int layerIdx, double x0, double y0, double z0, double thx, double thy, double p, int charge) Sets the parameters used by swimmer based on the input track state vector parameters swimming outwardsvoidsetSwimTraj(SwimTrajectory swimTraj) double[]SwimGenCylinder(Point3D axisPoint1, Point3D axisPoint2, double radius) double[]SwimGenCylinder(Point3D axisPoint1, Point3D axisPoint2, double radius, double accuracy) double[]double[]SwimRho(double radius) double[]SwimRho(double radius, double accuracy) double[]SwimToBeamLine(double xB, double yB) double[]SwimToCylinder(double Rad) double[]SwimToDCA(SwimTrajectory trk2) double[]SwimToLine(Line3D l) double[]SwimToPlaneBoundary(double d_cm, Vector3D n, int dir) double[]SwimToPlaneLab(double z_cm) double[]SwimToPlaneTiltSecSys(int sector, double z_cm) double[]SwimToPlaneTiltSecSysBdlXZPlane(int sector, double z_cm) double[]SwimToSphere(double Rad) double[]SwimToZ(double Z, int dir) 
- 
Field Details- 
stepSizepublic double stepSize
- 
distanceBetweenSavespublic double distanceBetweenSaves
 
- 
- 
Constructor Details- 
Swimpublic Swim()Class for swimming to various surfaces. The input and output units are cm and GeV/c
 
- 
- 
Method Details- 
SetSwimParameterspublic void SetSwimParameters(int direction, double x0, double y0, double z0, double thx, double thy, double p, int charge) - Parameters:
- direction- +1 for out -1 for in
- x0-
- y0-
- z0-
- thx-
- thy-
- p-
- charge-
 
- 
SetSwimParameterspublic void SetSwimParameters(int superlayerIdx, int layerIdx, double x0, double y0, double z0, double thx, double thy, double p, int charge) Sets the parameters used by swimmer based on the input track state vector parameters swimming outwards- Parameters:
- superlayerIdx-
- layerIdx-
- x0-
- y0-
- thx-
- thy-
- p-
- charge-
 
- 
SetSwimParameterspublic void SetSwimParameters(double x0, double y0, double z0, double px, double py, double pz, int charge) Sets the parameters used by swimmer based on the input track parameters- Parameters:
- x0-
- y0-
- z0-
- px-
- py-
- pz-
- charge-
 
- 
SetSwimParameterspublic void SetSwimParameters(double xcm, double ycm, double zcm, double phiDeg, double thetaDeg, double p, int charge, double maxPathLength) - Parameters:
- xcm-
- ycm-
- zcm-
- phiDeg-
- thetaDeg-
- p-
- charge-
- maxPathLength-
 
- 
SetSwimParameterspublic void SetSwimParameters(double xcm, double ycm, double zcm, double phiDeg, double thetaDeg, double p, int charge, double maxPathLength, double Accuracy, double StepSize) - Parameters:
- xcm-
- ycm-
- zcm-
- phiDeg-
- thetaDeg-
- p-
- charge-
- maxPathLength-
- Accuracy-
- StepSize-
 
- 
SwimToPlaneTiltSecSyspublic double[] SwimToPlaneTiltSecSys(int sector, double z_cm) 
- 
SwimToPlaneTiltSecSysBdlXZPlanepublic double[] SwimToPlaneTiltSecSysBdlXZPlane(int sector, double z_cm) 
- 
SwimToPlaneLabpublic double[] SwimToPlaneLab(double z_cm) - Parameters:
- z_cm-
- Returns:
- state x,y,z,px,py,pz, pathlength, iBdl at the plane surface
 
- 
SwimToCylinderpublic double[] SwimToCylinder(double Rad) - Parameters:
- Rad-
- Returns:
- state x,y,z,px,py,pz, pathlength, iBdl at the surface
 
- 
SwimRhopublic double[] SwimRho(double radius) - Parameters:
- radius- in cm
- Returns:
- state x,y,z,px,py,pz, pathlength, iBdl at the surface
 
- 
SwimRhopublic double[] SwimRho(double radius, double accuracy) - Parameters:
- radius- in cm
- accuracy- in cm
- Returns:
- state x,y,z,px,py,pz, pathlength, iBdl at the surface
 
- 
SwimGenCylinder- Parameters:
- axisPoint1- in cm
- axisPoint2- in cm
- radius- in cm
- Returns:
- swam trajectory to the cylinder
 
- 
SwimGenCylinderpublic double[] SwimGenCylinder(Point3D axisPoint1, Point3D axisPoint2, double radius, double accuracy) - Parameters:
- axisPoint1- in cm
- axisPoint2- in cm
- radius- in cm
- accuracy- in cm
- Returns:
- swam trajectory to the cylinder
 
- 
SwimPlane
- 
SwimToSpherepublic double[] SwimToSphere(double Rad) - Parameters:
- Rad-
- Returns:
- state x,y,z,px,py,pz, pathlength, iBdl at the surface
 
- 
SwimToPlaneBoundary- Parameters:
- d_cm-
- n-
- dir-
- Returns:
- return state x,y,z,px,py,pz, pathlength, iBdl at the plane surface in the lab frame
 
- 
SwimToBeamLinepublic double[] SwimToBeamLine(double xB, double yB) 
- 
SwimToLine
- 
Bfieldpublic void Bfield(int sector, double x_cm, double y_cm, double z_cm, float[] result) - Parameters:
- sector-
- x_cm-
- y_cm-
- z_cm-
- result- B field components in T in the tilted sector system
 
- 
BfieldLabpublic void BfieldLab(double x_cm, double y_cm, double z_cm, float[] result) - Parameters:
- x_cm-
- y_cm-
- z_cm-
- result- B field components in T in the lab frame
 
- 
AdaptiveSwimPlanepublic double[] AdaptiveSwimPlane(double px, double py, double pz, double nx, double ny, double nz, double accuracy) 
- 
AdaptiveSwimCylinderpublic double[] AdaptiveSwimCylinder(double a1x, double a1y, double a1z, double a2x, double a2y, double a2z, double radius, double accuracy) 
- 
AdaptiveSwimRhopublic double[] AdaptiveSwimRho(double radius, double accuracy) 
- 
SwimToZpublic double[] SwimToZ(double Z, int dir) - Parameters:
- Z-
- Returns:
- state x,y,z,px,py,pz, pathlength, iBdl at the surface
 
- 
getSwimTraj- Returns:
- the swimTraj
 
- 
setSwimTraj- Parameters:
- swimTraj- the swimTraj to set
 
- 
SwimToDCA
 
-