Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- init(DatabaseConstantProvider, int)
- getChamberThickness()
- getSectorDimensions(int)
- getCenterCoordinate(int, int)
- createSector(int, int, int)
- createChamber(int, int, int)
- getChamber_Dimensions(int, int)
- getChamber_daughter_Dimensions(int, int)
- getChamberVolume(int, int, int, int)
- getSectorVolume(int, int)
- main(String[])
Class RecoilGeant4Factory
java.lang.Object
org.jlab.detector.geant4.v2.Geant4Factory
org.jlab.detector.geant4.v2.recoil.RecoilGeant4Factory
Generate GEANT4 volume for the RECOIL detector
- Author:
- bondi, niccolai
-
Field Summary
Fields inherited from class org.jlab.detector.geant4.v2.Geant4Factory
motherVolume, properties
-
Constructor Summary
ConstructorsConstructorDescriptionRecoilGeant4Factory
(org.jlab.detector.calib.utils.DatabaseConstantProvider cp, 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 iregion, int ichamber) Calculates the chamber daughter dimensionsdouble[]
getChamber_Dimensions
(int iregion, int ichamber) double
Calculates the total detector thickness from the sum of the individual layers thicknessesgetChamberVolume
(int sector, int region, int chamber, int layer) Returns the chamber volume for the chosen sector and chamberdouble[]
getSectorDimensions
(int iregion) 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, 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, 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(int iregion) Calculates the sector dimensions -
getCenterCoordinate
Calculates sector baricenter coordinate in CLAS12 frame- Parameters:
isector
-iregion
-- 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 sector- Returns:
- the region volume
-
createChamber
Creates the chamber volume- Parameters:
iSector
- (0-5)iRegion
- (0)iChamber
- (0, 1, 2)- Returns:
- the chamber volume
-
getChamber_Dimensions
public double[] getChamber_Dimensions(int iregion, int ichamber) -
getChamber_daughter_Dimensions
public double[] getChamber_daughter_Dimensions(int iregion, 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
-