Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- init(DatabaseConstantProvider, boolean, int)
- getChamberThickness()
- getSectorDimensions()
- getCenterCoordinate(int, int)
- createSector(int, int, int)
- createChamber(int, int, int)
- getChamber_Dimensions(int)
- getChamber_daughter_Dimensions(int)
- getChamberVolume(int, int, int, boolean)
- getSectorVolume(int, int)
- main(String[])
Class URWellGeant4Factory
java.lang.Object
org.jlab.detector.geant4.v2.Geant4Factory
org.jlab.detector.geant4.v2.URWELL.URWellGeant4Factory
Generate GEANT4 volume for the URWELL detector
- Author:
- bondi
-
Field Summary
Fields inherited from class org.jlab.detector.geant4.v2.Geant4Factory
motherVolume, properties
-
Constructor Summary
ConstructorsConstructorDescriptionURWellGeant4Factory
(org.jlab.detector.calib.utils.DatabaseConstantProvider cp, boolean prototype, int nRegions) Create the URWELL full geometry -
Method Summary
Modifier and TypeMethodDescriptioncreateChamber
(int iSector, int iRegion, int iChamber) Creates the chamber volumecreateSector
(int isector, int iregion, int Nchambers) Creates and positions the region volume in the given sector, and populates it with the three chamber volumesgetCenterCoordinate
(int isector, int iregion) Calculates sector baricenter coordinate in CLAS12 framedouble[]
getChamber_daughter_Dimensions
(int ichamber) Calculates the chamber daughter dimensionsdouble[]
getChamber_Dimensions
(int ichamber) double
Calculates the total detector thickness from the sum of the individual layers thicknessesgetChamberVolume
(int sector, int chamber, int layer, boolean isProto) Returns the chamber volume for the chosen sector and chamberdouble[]
Calculates the sector dimensionsgetSectorVolume
(int region, int sector) Returns the sector volume for the given sector numbervoid
init
(org.jlab.detector.calib.utils.DatabaseConstantProvider cp, boolean prototype, int regions) static void
Methods inherited from class org.jlab.detector.geant4.v2.Geant4Factory
getAllVolumes, getComponents, getIntersections, getProperty, toString
-
Constructor Details
-
Method Details
-
init
public void init(org.jlab.detector.calib.utils.DatabaseConstantProvider cp, boolean prototype, int regions) -
getChamberThickness
public double getChamberThickness()Calculates the total detector thickness from the sum of the individual layers thicknesses- Returns:
- thickness in cm
-
getSectorDimensions
public double[] getSectorDimensions()Calculates the sector dimensions -
getCenterCoordinate
Calculates sector baricenter coordinate in CLAS12 frame- Parameters:
isector
-iregion
-false
- : all detector, true: is ProtoisProto
-- Returns:
- Vector3d (X,Y,Z)
-
createSector
Creates and positions the region volume in the given sector, and populates it with the three chamber volumes- Parameters:
isector
- (0-5)iregion
- (0)Nchambers
- : number of chambers in each sectorisProto
-- Returns:
- the region volume
-
createChamber
Creates the chamber volume- Parameters:
iSector
- (0-5)iRegion
- (0)iChamber
- (0, 1, 2)isProto
- (true, false)- Returns:
- the chamber volume
-
getChamber_Dimensions
public double[] getChamber_Dimensions(int ichamber) -
getChamber_daughter_Dimensions
public double[] getChamber_daughter_Dimensions(int ichamber) Calculates the chamber daughter dimensions- Parameters:
ichamber
- (0, 1, 2)- Returns:
- an array of doubles containing trapezoid dimensions: half small base , half large base, half height
-
getChamberVolume
Returns the chamber volume for the chosen sector and chamber- Parameters:
sector
- (1-6)chamber
- (1, 2, 3)- Returns:
- the chamber volume
-
getSectorVolume
Returns the sector volume for the given sector number- Parameters:
sector
- (1-6)- Returns:
- the sector volume
-
main
-