Class URWellStripFactory
java.lang.Object
org.jlab.detector.geant4.v2.URWELL.URWellStripFactory
Creates and handles the URWELL detector strips as 3D lines
- Author:
- bondi
- 
Constructor SummaryConstructorsConstructorDescriptionCreate the strip factory based on constants from CCDB.URWellStripFactory(DatabaseConstantProvider cp, boolean prototype, int regions) Create the strip factory based on constants from CCDB.
- 
Method SummaryModifier and TypeMethodDescriptionintgetChamberIndex(int strip) Provides the index of the chamber containing the strip with the given IDintgetNStripChamber(int ichamber) Calculates the number of strips in the given chamberintCalculates the total number of strips in a sectorgetPlane(int sector, int layer, int strip) getStrip(int sector, int layer, int strip) Provides the 3D line for the given strip in the CLAS12 framegetTiltedStrip(int sector, int layer, int strip) Provides the 3D line for the given strip in the tilted framevoidInitialize the factory by the strip mapsvoidinit(DatabaseConstantProvider cp, boolean prototype, int regions) Initialize the factory by the strip mapsstatic voidTransform the given strip line to the tilted frame
- 
Constructor Details- 
URWellStripFactorypublic URWellStripFactory()
- 
URWellStripFactoryCreate 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
 
- 
URWellStripFactoryCreate 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
- prototype-
- regions-
 
 
- 
- 
Method Details- 
initInitialize the factory by the strip maps- Parameters:
- cp-
 
- 
initInitialize the factory by the strip maps- Parameters:
- cp-
- prototype-
- regions-
 
- 
getNStripSectorpublic int getNStripSector()Calculates the total number of strips in a sector- Returns:
- the strip number
 
- 
getNStripChamberpublic int getNStripChamber(int ichamber) Calculates the number of strips in the given chamber- Parameters:
- ichamber- (0, 1, 2)
- Returns:
- the strip number (1-N)
 
- 
getChamberIndexpublic 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)
 
- 
toLocalTransform 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
- 
getStripProvides 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
 
- 
getTiltedStripProvides 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
 
-