Class ECFactory
java.lang.Object
org.jlab.geom.detector.ec.ECFactory
- All Implemented Interfaces:
Factory<ECDetector, ECSector, ECSuperlayer, ECLayer>, Showable
public class ECFactory
extends Object
implements Factory<ECDetector, ECSector, ECSuperlayer, ECLayer>
An Electromagnetic Calorimeter (EC)
Factory.
Factory: ECFactory
Hierarchy:
ECDetector →
ECSector →
ECSuperlayer →
ECLayer →
ScintillatorPaddle
The outer surface of the scintillator paddles are coated with a reflective
layer of plastic which is less than 0.25 mm thick. This coating is neglected
by this factory and the coating is included in the
ScintillatorPaddles produced.
- Author:
- jnhankins
-
Constructor Summary
Constructors -
Method Summary
Modifier 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 "EC Factory".voidshow()InvokesSystem.out.println(this).toString()
-
Constructor Details
-
ECFactory
public ECFactory()
-
-
Method Details
-
createDetectorCLAS
Description copied from interface:FactoryConstructs a newDetectorin CLAS coordinates using the given constants.- Specified by:
createDetectorCLASin interfaceFactory<ECDetector, ECSector, ECSuperlayer, ECLayer>- Parameters:
cp- the constant provider- Returns:
- a detector in CLAS coordinates
-
createDetectorSector
Description copied from interface:FactoryConstructs a newDetectorin Sector coordinates using the given constants.- Specified by:
createDetectorSectorin interfaceFactory<ECDetector, ECSector, ECSuperlayer, ECLayer>- Parameters:
cp- the constant provider- Returns:
- a detector in Sector coordinates
-
createDetectorTilted
Description copied from interface:FactoryConstructs a newDetectorin Tilted coordinates using the given constants.- Specified by:
createDetectorTiltedin interfaceFactory<ECDetector, ECSector, ECSuperlayer, ECLayer>- Parameters:
cp- the constant provider- Returns:
- a detector in Tilted coordinates
-
createDetectorLocal
Description copied from interface:FactoryConstructs a newDetectorin Local coordinates using the given constants.- Specified by:
createDetectorLocalin interfaceFactory<ECDetector, ECSector, ECSuperlayer, ECLayer>- Parameters:
cp- the constant provider- Returns:
- a detector in Local coordinates
-
createSector
Description copied from interface:FactoryConstructs the specifiedSectorin Local coordinates using the given constants.- Specified by:
createSectorin interfaceFactory<ECDetector, ECSector, ECSuperlayer, ECLayer>- Parameters:
cp- the constant providersectorId- the sector id of the desired sector- Returns:
- a sector in Local coordinates
-
createSuperlayer
Description copied from interface:FactoryConstructs the specifiedSuperlayerin Local coordinates using the given constants.- Specified by:
createSuperlayerin interfaceFactory<ECDetector, ECSector, ECSuperlayer, ECLayer>- 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:FactoryConstructs the specifiedLayerin Local coordinates using the given constants.- Specified by:
createLayerin interfaceFactory<ECDetector, ECSector, ECSuperlayer, ECLayer>- 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
-
getType
Returns "EC Factory".- Specified by:
getTypein interfaceFactory<ECDetector, ECSector, ECSuperlayer, ECLayer>- Returns:
- "EC Factory"
-
show
public void show()Description copied from interface:FactoryInvokesSystem.out.println(this).- Specified by:
showin interfaceFactory<ECDetector, ECSector, ECSuperlayer, ECLayer>- Specified by:
showin interfaceShowable
-
toString
-
getTransformation
public 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 interfaceFactory<ECDetector, ECSector, ECSuperlayer, ECLayer>- Parameters:
cp-sector-superlayer-layer-- Returns:
-
getDetectorTransform
- Specified by:
getDetectorTransformin interfaceFactory<ECDetector, ECSector, ECSuperlayer, ECLayer>
-