Class URWTStripFactory

java.lang.Object
org.jlab.detector.geant4.v2.MPGD.trapezoid.MPGDTrapezoidStripFactory
org.jlab.detector.geant4.v2.MPGD.URWT.URWTStripFactory

public final class URWTStripFactory extends MPGDTrapezoidStripFactory
URWT strip factory. It relies entirely on AbstractMPGDTrapezoidStripFactory for: - strip building (component IDs, endpoints) - surfaces - planes The ONLY detector-specific thing here is the mapping "volume name -> Geant4Basic", used by the abstract class to find the sensitive volume (Sensitivity==1) and its transform.
  • Constructor Details

    • URWTStripFactory

      public URWTStripFactory(DatabaseConstantProvider cp)
      Build using an already-configured DatabaseConstantProvider.
      Parameters:
      cp -
    • URWTStripFactory

      public URWTStripFactory(int run, String variation)
      Convenience constructor: internally creates a DatabaseConstantProvider.
      Parameters:
      run -
      variation -
  • Method Details

    • getVolumeByName

      protected Geant4Basic getVolumeByName(String name)
      Description copied from class: MPGDTrapezoidStripFactory
      Detector-specific hook: Must return the volume object given its name.Typically implemented by indexing geo.getAllVolumes() into a Mapinvalid input: '<'String,Geant4Basic>.
      Specified by:
      getVolumeByName in class MPGDTrapezoidStripFactory
      Parameters:
      name -
      Returns:
    • is2DReadout

      protected boolean is2DReadout()
      If URWT uses 2D readout (same readout Z for both layers), enable this. Otherwise leave it false (default 1D: z = +/- zHalf).
      Overrides:
      is2DReadout in class MPGDTrapezoidStripFactory
      Returns:
    • main

      public static void main(String[] args)
      Small test / debug.