Class URWTStripFactory
java.lang.Object
org.jlab.detector.geant4.v2.MPGD.trapezoid.MPGDTrapezoidStripFactory
org.jlab.detector.geant4.v2.MPGD.URWT.URWTStripFactory
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class MPGDTrapezoidStripFactory
MPGDTrapezoidStripFactory.StripConstants, MPGDTrapezoidStripFactory.StripGeom, MPGDTrapezoidStripFactory.Trap2D -
Field Summary
Fields inherited from class MPGDTrapezoidStripFactory
C, geo, globalStrips, localStrips, nComponents, planes, surfaceLayers, tiltedStrips -
Constructor Summary
ConstructorsConstructorDescriptionURWTStripFactory(int run, String variation) Convenience constructor: internally creates a DatabaseConstantProvider.Build using an already-configured DatabaseConstantProvider. -
Method Summary
Modifier and TypeMethodDescriptionprotected Geant4BasicgetVolumeByName(String name) Detector-specific hook: Must return the volume object given its name.Typically implemented by indexing geo.getAllVolumes() into a Mapinvalid input: '<'String,Geant4Basic>.protected booleanIf URWT uses 2D readout (same readout Z for both layers), enable this.static voidSmall test / debug.Methods inherited from class MPGDTrapezoidStripFactory
baseLayerForCCDB, buildAll, buildStripCache, buildStripConstants, buildStripSegment, clearCaches, createPlane, createSurface, defaultPitchCm, defaultStereoAngleRad, defaultWidthCm, fillPlaneLists, fillStripLists, fillSurfaceLists, findReadoutZLocal, getNComponents, getPlane, getSensitiveHalfThicknessCm, getSensitiveMatComponentId, getSensitiveVolumeName, getStrip, getStripLocal, getStripTilted, getSurface, intersectEdgeWithLineNormal, toGlobalSensitive, toStripFrameXY, toTilted
-
Constructor Details
-
URWTStripFactory
Build using an already-configured DatabaseConstantProvider.- Parameters:
cp-
-
URWTStripFactory
Convenience constructor: internally creates a DatabaseConstantProvider.- Parameters:
run-variation-
-
-
Method Details
-
getVolumeByName
Description copied from class:MPGDTrapezoidStripFactoryDetector-specific hook: Must return the volume object given its name.Typically implemented by indexing geo.getAllVolumes() into a Mapinvalid input: '<'String,Geant4Basic>.- Specified by:
getVolumeByNamein classMPGDTrapezoidStripFactory- 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:
is2DReadoutin classMPGDTrapezoidStripFactory- Returns:
-
main
Small test / debug.
-