Class AlertDCFactory
java.lang.Object
org.jlab.geom.detector.alert.AHDC.AlertDCFactory
- All Implemented Interfaces:
- Factory<AlertDCDetector,,- AlertDCSector, - AlertDCSuperlayer, - AlertDCLayer> - Showable
public class AlertDCFactory
extends Object
implements Factory<AlertDCDetector,AlertDCSector,AlertDCSuperlayer,AlertDCLayer>   
A Low Energy Recoil Tracker (ALERT)
 This is to implement ALERT Drift Chamber detector (AHDC).
 There are 1 
MYSector_AHDC
 and 5 MYSuperlayer_AHDC per AHDC Detector.
 There are 2 MYLayer_AHDCs for Superlayers 1,2,3
 and 1 MYLayer_AHDC for Superlayers 0,4.
 Each layer contains N DriftChamberWires. Number of wires is different from one Superlayer to another.
 However, real AHDC cell shape is different from regular hexagon given by DriftChamberWire.
 Implemented following the DCDetector example- Author:
- sergeyeva
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionConstructs a newDetectorin CLAS coordinates using the given constants.Constructs a newDetectorin Local coordinates using the given constants.Constructs a newDetectorin Sector coordinates using the given constants.Constructs a newDetectorin Tilted coordinates using the given constants.createLayer(ConstantProvider cp, int sectorId, int superlayerId, int layerId) Constructs the specifiedLayerin Local coordinates using the given constants.createSector(ConstantProvider cp, int sectorId) Constructs the specifiedSectorin Local coordinates using the given constants.createSuperlayer(ConstantProvider cp, int sectorId, int superlayerId) Constructs the specifiedSuperlayerin Local coordinates using the given constants.getTransformation(ConstantProvider cp, int sector, int superlayer, int layer) Returns a transformation object for given sector, superlayer and layergetType()Returns "DC Factory".voidshow()InvokesSystem.out.println(this).toString()
- 
Constructor Details- 
AlertDCFactorypublic AlertDCFactory()
 
- 
- 
Method Details- 
createDetectorCLASDescription copied from interface:FactoryConstructs a newDetectorin CLAS coordinates using the given constants.- Specified by:
- createDetectorCLASin interface- Factory<AlertDCDetector,- AlertDCSector, - AlertDCSuperlayer, - AlertDCLayer> 
- Parameters:
- cp- the constant provider
- Returns:
- a detector in CLAS coordinates
 
- 
createDetectorSectorDescription copied from interface:FactoryConstructs a newDetectorin Sector coordinates using the given constants.- Specified by:
- createDetectorSectorin interface- Factory<AlertDCDetector,- AlertDCSector, - AlertDCSuperlayer, - AlertDCLayer> 
- Parameters:
- cp- the constant provider
- Returns:
- a detector in Sector coordinates
 
- 
createDetectorTiltedDescription copied from interface:FactoryConstructs a newDetectorin Tilted coordinates using the given constants.- Specified by:
- createDetectorTiltedin interface- Factory<AlertDCDetector,- AlertDCSector, - AlertDCSuperlayer, - AlertDCLayer> 
- Parameters:
- cp- the constant provider
- Returns:
- a detector in Tilted coordinates
 
- 
createDetectorLocalDescription copied from interface:FactoryConstructs a newDetectorin Local coordinates using the given constants.- Specified by:
- createDetectorLocalin interface- Factory<AlertDCDetector,- AlertDCSector, - AlertDCSuperlayer, - AlertDCLayer> 
- Parameters:
- cp- the constant provider
- Returns:
- a detector in Local coordinates
 
- 
createSectorDescription copied from interface:FactoryConstructs the specifiedSectorin Local coordinates using the given constants.- Specified by:
- createSectorin interface- Factory<AlertDCDetector,- AlertDCSector, - AlertDCSuperlayer, - AlertDCLayer> 
- Parameters:
- cp- the constant provider
- sectorId- the sector id of the desired sector
- Returns:
- a sector in Local coordinates
 
- 
createSuperlayerDescription copied from interface:FactoryConstructs the specifiedSuperlayerin Local coordinates using the given constants.- Specified by:
- createSuperlayerin interface- Factory<AlertDCDetector,- AlertDCSector, - AlertDCSuperlayer, - AlertDCLayer> 
- Parameters:
- cp- the constant provider
- sectorId- the sector id of the desired superlayer
- superlayerId- the superlayer id of the desired superlayer
- Returns:
- a superlayer in Local coordinates
 
- 
createLayerDescription copied from interface:FactoryConstructs the specifiedLayerin Local coordinates using the given constants.- Specified by:
- createLayerin interface- Factory<AlertDCDetector,- AlertDCSector, - AlertDCSuperlayer, - AlertDCLayer> 
- Parameters:
- cp- the constant provider
- sectorId- the sector id of the desired layer
- superlayerId- the superlayer id of the desired layer
- layerId- the layer id of the desired layer
- Returns:
- a layer in Local coordinates
 
- 
getTypeReturns "DC Factory".- Specified by:
- getTypein interface- Factory<AlertDCDetector,- AlertDCSector, - AlertDCSuperlayer, - AlertDCLayer> 
- Returns:
- "DC Factory"
 
- 
showpublic void show()Description copied from interface:FactoryInvokesSystem.out.println(this).- Specified by:
- showin interface- Factory<AlertDCDetector,- AlertDCSector, - AlertDCSuperlayer, - AlertDCLayer> 
- Specified by:
- showin interface- Showable
 
- 
toString
- 
getTransformationpublic Transformation3D getTransformation(ConstantProvider cp, int sector, int superlayer, int layer) Description copied from interface:FactoryReturns a transformation object for given sector, superlayer and layer- Specified by:
- getTransformationin interface- Factory<AlertDCDetector,- AlertDCSector, - AlertDCSuperlayer, - AlertDCLayer> 
- Returns:
 
- 
getDetectorTransform- Specified by:
- getDetectorTransformin interface- Factory<AlertDCDetector,- AlertDCSector, - AlertDCSuperlayer, - AlertDCLayer> 
 
 
-