Class SVTGeometry

java.lang.Object
org.jlab.rec.cvt.svt.SVTGeometry

public class SVTGeometry extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • getTwinLayer

      public int getTwinLayer(int layer)
    • getLayerRadius

      public static double getLayerRadius(int layer)
    • getRegionRadius

      public static double getRegionRadius(int region)
    • getLayerGap

      public static double getLayerGap()
    • getLayerZ0

      public static double getLayerZ0(int layer)
    • getSectorPhi

      public static double getSectorPhi(int layer, int sector)
    • getPitch

      public static double getPitch()
    • getActiveSensorWidth

      public static double getActiveSensorWidth()
    • getActiveSensorLength

      public static double getActiveSensorLength()
    • getModuleLength

      public static double getModuleLength()
    • getStrip0

      public Line3D getStrip0(int layer, int sector, int strip)
    • getStrip

      public Line3D getStrip(int layer, int sector, int strip)
    • getModule

      public Line3D getModule(int layer, int sector)
    • getModuleId

      public static int getModuleId(int layer, int sector)
    • getNormal

      public Vector3D getNormal(int layer, int sector)
    • getPlane

      public Plane3D getPlane(int layer, int sector)
    • getStripProjection

      public Line3D getStripProjection(Line3D strip, Plane3D plane, Vector3D dir)
    • getCross

      public Point3D getCross(int sector, int layer, Line3D strip1, Line3D strip2, Vector3D dir)
    • toLocal

      public Point3D toLocal(int layer, int sector, Point3D traj)
    • toGlobal

      public Point3D toGlobal(int layer, int sector, Point3D traj)
    • toLocal

      public Vector3D toLocal(int layer, int sector, Vector3D dir)
    • toGlobal

      public Vector3D toGlobal(int layer, int sector, Vector3D dir)
    • getDoca

      public double getDoca(int layer, int sector, int strip, Point3D traj)
    • getResidual

      public double getResidual(int layer, int sector, int strip, Point3D traj)
    • getLocalTrack

      public Vector3D getLocalTrack(int layer, int sector, Vector3D trackDir)
      Return track vector for local angle calculations 1) transform to the geometry service local frame first: y axis pointing toward the center, z axis pointing downstream along the module x axis given by y.cross(z) 2) for even layers, it rotates by 180 deg to have the y axis pointing outward *
      Parameters:
      layer -
      sector -
      trackDir -
      Returns:
    • getLocalAngle

      public double getLocalAngle(int layer, int sector, Vector3D trackDir)
      Returns angle of the track with respect to the normal to the module in the x-z plane defined above
      Parameters:
      layer -
      sector -
      trackDir -
      Returns:
    • getSurfaces

      public List<Surface> getSurfaces()
    • getSurface

      public Surface getSurface(int layer, int sector, int stripId, double centroid, Line3D stripLine)
    • getSurface

      public Surface getSurface(int layer, int sector, Strip strip)
    • getFaradayCageSurfaces

      public Surface getFaradayCageSurfaces(int i)
    • getSector

      @Deprecated public int getSector(int layer, Point3D traj)
      Deprecated.
    • calcNearestStrip

      public int calcNearestStrip(double X, double Y, double Z, int layer, int sect)
    • getSingleStripResolution

      public double getSingleStripResolution(int lay, int strip, double Z)
    • getXAtZ

      public double getXAtZ(int layer, double centroidstrip, double Z)
    • isInFiducial

      public boolean isInFiducial(int layer, int sector, Point3D traj)
    • isInside

      public boolean isInside(int layer, int sector, Point3D traj)
    • distanceToEdge

      public double distanceToEdge(int layer, int sector, Point3D traj)