Class Geometry

java.lang.Object
org.jlab.rec.cvt.Geometry

public class Geometry extends Object
Author:
devita
  • Field Details

    • TSHIELDRMIN

      public static double TSHIELDRMIN
    • TSHIELDRMAX

      public static double TSHIELDRMAX
    • TSHIELDLENGTH

      public static double TSHIELDLENGTH
    • TSHIELDZPOS

      public static double TSHIELDZPOS
    • TSHIELDRADLEN

      public static double TSHIELDRADLEN
    • TSHIELDZOVERA

      public static double TSHIELDZOVERA
    • TSHIELDRHO

      public static double TSHIELDRHO
    • TSHIELDI

      public static double TSHIELDI
    • SCINTILLATOR

      public static final Material SCINTILLATOR
    • VACUUM

      public static final Material VACUUM
  • Method Details

    • getInstance

      public static Geometry getInstance()
      public access to the singleton
      Returns:
      the cvt geometry singleton
    • initialize

      public static void initialize(String variation, int run, IndexedTable svtLorentz, IndexedTable bmtVoltage)
    • getTargetZOffset

      public double getTargetZOffset()
    • getTargetHalfLength

      public double getTargetHalfLength()
    • getTargetRadius

      public double getTargetRadius()
    • getTargetMaterials

      public List<Material> getTargetMaterials()
    • getTargetCellSurface

      public Surface getTargetCellSurface()
    • getScatteringChamber

      public Surface getScatteringChamber()
    • getTargetShield

      public Surface getTargetShield()
    • getSVT

      public SVTGeometry getSVT()
    • getBMT

      public BMTGeometry getBMT()
    • getCTOF

      public CTOFGeant4Factory getCTOF()
    • getCND

      public Detector getCND()
    • geOuterSurfaces

      public List<Surface> geOuterSurfaces()
    • getSVT

      public static List<Line3D> getSVT(int run, int region, String variation, IndexedTable lorentz)
      Get the list of SVT strips for geometry defined by the selected run and variation
      Parameters:
      run -
      region -
      variation -
      lorentz -
      Returns:
      list of strips as Line3D
    • getBMT

      public static List<Line3D> getBMT(BMTType type, int run, String variation, IndexedTable voltage)
      Get the list of BMT strips for the selected BMT tile type and the geometry defined by the selected run and variation
      Parameters:
      type -
      run -
      variation -
      voltage -
      Returns:
      list of strips as Line3D, corresponding to the actual strip for Z tiles and for lines connecting the upstream and downstream circular edges of C tiles at the same local phi
    • getOffset

      public static Point3D getOffset(List<Line3D> geo1, List<Line3D> geo2)
      Computes the average offset of the origins of the two strip lists
      Parameters:
      geo1 -
      geo2 -
      Returns:
      the offset (1-2) as a Point3D
    • compareStrips

      public static org.jlab.groot.group.DataGroup compareStrips(List<Line3D> geo1, List<Line3D> geo2, Point3D offset)
      Draws representative plots of the differences between the two lists of strips, compensating for a global offset
      Parameters:
      geo1 -
      geo2 -
      offset - applied to the second geometry
      Returns:
      a DataGroup with the relevant plots
    • main

      public static void main(String[] args)
      Compares the CVT geometry for two geometry variations selected from command line, with the option of compensating for the average offset between the SVT-R1 strip upstream endpoints
      Parameters:
      args -