Class RecoilStripFactory

java.lang.Object
org.jlab.detector.geant4.v2.recoil.RecoilStripFactory

public final class RecoilStripFactory extends Object
Creates and handles the URWELL detector strips as 3D lines
Author:
bondi, niccolai
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
     
    RecoilStripFactory(org.jlab.detector.calib.utils.DatabaseConstantProvider cp)
    Create the strip factory based on constants from CCDB.
    RecoilStripFactory(org.jlab.detector.calib.utils.DatabaseConstantProvider cp, int regions)
    Create the strip factory based on constants from CCDB.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    int
    getChamberIndex(int strip)
    Provides the index of the chamber containing the strip with the given ID
    int
    getNStripChamber(int ichamber, int regions)
    Calculates the number of strips in the given chamber
    int
    Calculates the total number of strips in a sector
    org.jlab.geom.prim.Plane3D
    getPlane(int sector, int layer, int strip)
     
    org.jlab.geom.prim.Line3D
    getStrip(int sector, int layer, int strip)
    Provides the 3D line for the given strip in the CLAS12 frame
    org.jlab.geom.prim.Line3D
    getTiltedStrip(int sector, int layer, int strip)
    Provides the 3D line for the given strip in the tilted frame
    void
    init(org.jlab.detector.calib.utils.DatabaseConstantProvider cp)
    Initialize the factory by the strip maps
    void
    init(org.jlab.detector.calib.utils.DatabaseConstantProvider cp, int regions)
    Initialize the factory by the strip maps
    static void
    main(String[] args)
     
    org.jlab.geom.prim.Line3D
    toLocal(int sector, org.jlab.geom.prim.Line3D global)
    Transform the given strip line to the tilted frame

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details Link icon

    • RecoilStripFactory Link icon

      public RecoilStripFactory()
    • RecoilStripFactory Link icon

      public RecoilStripFactory(org.jlab.detector.calib.utils.DatabaseConstantProvider cp)
      Create the strip factory based on constants from CCDB. Currently constants are defined in the RecoilConstants class. They will be moved to CCDB when finalized).
      Parameters:
      cp - database provide
    • RecoilStripFactory Link icon

      public RecoilStripFactory(org.jlab.detector.calib.utils.DatabaseConstantProvider cp, int regions)
      Create the strip factory based on constants from CCDB. Currently constants are defined in the URWellConstants class. They will be moved to CCDB when finalized).
      Parameters:
      cp - database provide
      regions -
  • Method Details Link icon

    • init Link icon

      public void init(org.jlab.detector.calib.utils.DatabaseConstantProvider cp)
      Initialize the factory by the strip maps
      Parameters:
      cp -
    • init Link icon

      public void init(org.jlab.detector.calib.utils.DatabaseConstantProvider cp, int regions)
      Initialize the factory by the strip maps
      Parameters:
      cp -
      regions -
    • getNStripSector Link icon

      public int getNStripSector()
      Calculates the total number of strips in a sector
      Returns:
      the strip number
    • getNStripChamber Link icon

      public int getNStripChamber(int ichamber, int regions)
      Calculates the number of strips in the given chamber
      Parameters:
      ichamber - (0, 1, 2)
      Returns:
      the strip number (1-N)
    • getChamberIndex Link icon

      public int getChamberIndex(int strip)
      Provides the index of the chamber containing the strip with the given ID
      Parameters:
      strip - (1 to N)
      Returns:
      the chamber index (0, 1, 2)
    • toLocal Link icon

      public org.jlab.geom.prim.Line3D toLocal(int sector, org.jlab.geom.prim.Line3D global)
      Transform the given strip line to the tilted frame
      Parameters:
      sector - (1-6)
      global -
      Returns:
      the 3D strip line in the tilted frame as a Line3D
    • getPlane Link icon

      public org.jlab.geom.prim.Plane3D getPlane(int sector, int layer, int strip)
    • getStrip Link icon

      public org.jlab.geom.prim.Line3D getStrip(int sector, int layer, int strip)
      Provides the 3D line for the given strip in the CLAS12 frame
      Parameters:
      sector - (1-6)
      layer - (1-2)
      strip - (1-N)
      Returns:
      the 3D strip line in the CLAS12 frame as a Line3D
    • getTiltedStrip Link icon

      public org.jlab.geom.prim.Line3D getTiltedStrip(int sector, int layer, int strip)
      Provides the 3D line for the given strip in the tilted frame
      Parameters:
      sector - (1-6)
      layer - (1-2)
      strip - (1-N)
      Returns:
      the 3D strip line in the tilted frame as a Line3D
    • main Link icon

      public static void main(String[] args)