Package org.jlab.detector.geom.dc
Class DCGeantFactory
java.lang.Object
org.jlab.detector.geom.dc.DCGeantFactory
- All Implemented Interfaces:
Factory<DCDetector,
,DCSector, DCSuperlayer, DCLayer> Showable
public class DCGeantFactory
extends Object
implements Factory<DCDetector,DCSector,DCSuperlayer,DCLayer>
- Author:
- gavalian
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConstructs a newDetector
in CLAS coordinates using the given constants.Constructs a newDetector
in Local coordinates using the given constants.Constructs a newDetector
in Sector coordinates using the given constants.Constructs a newDetector
in Tilted coordinates using the given constants.createLayer
(ConstantProvider cp, int sectorId, int superlayerId, int layerId) Constructs the specifiedLayer
in Local coordinates using the given constants.createSector
(ConstantProvider cp, int sectorId) Constructs the specifiedSector
in Local coordinates using the given constants.createSuperlayer
(ConstantProvider cp, int sectorId, int superlayerId) Constructs the specifiedSuperlayer
in 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 a string that identifies the specific subtype of this factory.protected static double
midpointXOffset
(int layer, double w_layer) void
show()
InvokesSystem.out.println(this)
.
-
Constructor Details
-
DCGeantFactory
public DCGeantFactory()
-
-
Method Details
-
createDetectorCLAS
Description copied from interface:Factory
Constructs a newDetector
in CLAS coordinates using the given constants.- Specified by:
createDetectorCLAS
in interfaceFactory<DCDetector,
DCSector, DCSuperlayer, DCLayer> - Parameters:
cp
- the constant provider- Returns:
- a detector in CLAS coordinates
-
createDetectorSector
Description copied from interface:Factory
Constructs a newDetector
in Sector coordinates using the given constants.- Specified by:
createDetectorSector
in interfaceFactory<DCDetector,
DCSector, DCSuperlayer, DCLayer> - Parameters:
cp
- the constant provider- Returns:
- a detector in Sector coordinates
-
createDetectorTilted
Description copied from interface:Factory
Constructs a newDetector
in Tilted coordinates using the given constants.- Specified by:
createDetectorTilted
in interfaceFactory<DCDetector,
DCSector, DCSuperlayer, DCLayer> - Parameters:
cp
- the constant provider- Returns:
- a detector in Tilted coordinates
-
createDetectorLocal
Description copied from interface:Factory
Constructs a newDetector
in Local coordinates using the given constants.- Specified by:
createDetectorLocal
in interfaceFactory<DCDetector,
DCSector, DCSuperlayer, DCLayer> - Parameters:
cp
- the constant provider- Returns:
- a detector in Local coordinates
-
createSector
Description copied from interface:Factory
Constructs the specifiedSector
in Local coordinates using the given constants.- Specified by:
createSector
in interfaceFactory<DCDetector,
DCSector, DCSuperlayer, DCLayer> - Parameters:
cp
- the constant providersectorId
- the sector id of the desired sector- Returns:
- a sector in Local coordinates
-
createSuperlayer
Description copied from interface:Factory
Constructs the specifiedSuperlayer
in Local coordinates using the given constants.- Specified by:
createSuperlayer
in interfaceFactory<DCDetector,
DCSector, DCSuperlayer, DCLayer> - Parameters:
cp
- the constant providersectorId
- the sector id of the desired superlayersuperlayerId
- the superlayer id of the desired superlayer- Returns:
- a superlayer in Local coordinates
-
createLayer
Description copied from interface:Factory
Constructs the specifiedLayer
in Local coordinates using the given constants.- Specified by:
createLayer
in interfaceFactory<DCDetector,
DCSector, DCSuperlayer, DCLayer> - Parameters:
cp
- the constant providersectorId
- the sector id of the desired layersuperlayerId
- the superlayer id of the desired layerlayerId
- the layer id of the desired layer- Returns:
- a layer in Local coordinates
-
midpointXOffset
protected static double midpointXOffset(int layer, double w_layer) -
getType
Description copied from interface:Factory
Returns a string that identifies the specific subtype of this factory.- Specified by:
getType
in interfaceFactory<DCDetector,
DCSector, DCSuperlayer, DCLayer> - Returns:
- a string naming this factory's type
-
getTransformation
public Transformation3D getTransformation(ConstantProvider cp, int sector, int superlayer, int layer) Description copied from interface:Factory
Returns a transformation object for given sector, superlayer and layer- Specified by:
getTransformation
in interfaceFactory<DCDetector,
DCSector, DCSuperlayer, DCLayer> - Returns:
-
getDetectorTransform
- Specified by:
getDetectorTransform
in interfaceFactory<DCDetector,
DCSector, DCSuperlayer, DCLayer>
-
show
public void show()Description copied from interface:Factory
InvokesSystem.out.println(this)
.- Specified by:
show
in interfaceFactory<DCDetector,
DCSector, DCSuperlayer, DCLayer> - Specified by:
show
in interfaceShowable
-