- Description
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- createDetectorCLAS(ConstantProvider)
- createDetectorSector(ConstantProvider)
- createDetectorTilted(ConstantProvider)
- createDetectorLocal(ConstantProvider)
- createRing(ConstantProvider, int)
- createSector(ConstantProvider, int)
- createSuperlayer(ConstantProvider, int, int)
- createRingLayer(ConstantProvider, int, int, int)
- createLayer(ConstantProvider, int, int, int)
- getType()
- show()
- toString()
- getTransformation(ConstantProvider, int, int, int)
- getDetectorTransform(ConstantProvider)
Class BSTFactory
- All Implemented Interfaces:
Factory<BSTDetector, BSTSector, BSTSuperlayer, BSTLayer>
,Showable
Factory
.
Factory: BSTFactory
Hierarchy:
BSTDetector
→
BSTSector
→
BSTSuperlayer
→
BSTLayer
→
SiStrip
Due to the way the BST is organized, it would be most convenient to organize
the BST hierarchy such that superlayers contain layers which contain sectors.
However, this is not directly possible within the clasrec-geometry API. To
approximate the desired hierarchy within the framework of the API,
BSTSector
contains one ring of sensor modules at a constant radius
from the beam. Each BSTSector
contains two BSTSuperlayer
s,
one representing the u-layer and the other the v-layer. Each
BSTSuperlayer
has a number of BSTLayer
s equal to the number
of sectors in the superlayer. Then, each BSTLayer
contains a 256
SiStrips
.
Note: "/geometry/bst/region/radius" is assumed to measure the distance from the beam to the beam-side surtriangle of the u-sensor not the distance from the beam to the beam-side surtriangle of the backing structure.
- Author:
- jnhankins
-
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.createRing
(ConstantProvider cp, int ring) createRingLayer
(ConstantProvider cp, int ringId, int superlayerId, int layerIdtrue) 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 sectorId, int superlayerId, int layerId) Returns a transformation object for given sector, superlayer and layergetType()
Returns "BST Factory".void
show()
InvokesSystem.out.println(this)
.toString()
-
Constructor Details
-
Method Details
-
createDetectorCLAS
Description copied from interface:Factory
Constructs a newDetector
in CLAS coordinates using the given constants.- Specified by:
createDetectorCLAS
in interfaceFactory<BSTDetector, BSTSector, BSTSuperlayer, BSTLayer>
- 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<BSTDetector, BSTSector, BSTSuperlayer, BSTLayer>
- 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<BSTDetector, BSTSector, BSTSuperlayer, BSTLayer>
- 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<BSTDetector, BSTSector, BSTSuperlayer, BSTLayer>
- Parameters:
cp
- the constant provider- Returns:
- a detector in Local coordinates
-
createRing
-
createSector
Description copied from interface:Factory
Constructs the specifiedSector
in Local coordinates using the given constants.- Specified by:
createSector
in interfaceFactory<BSTDetector, BSTSector, BSTSuperlayer, BSTLayer>
- 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<BSTDetector, BSTSector, BSTSuperlayer, BSTLayer>
- 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
-
createRingLayer
-
createLayer
Description copied from interface:Factory
Constructs the specifiedLayer
in Local coordinates using the given constants.- Specified by:
createLayer
in interfaceFactory<BSTDetector, BSTSector, BSTSuperlayer, BSTLayer>
- 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 "BST Factory".- Specified by:
getType
in interfaceFactory<BSTDetector, BSTSector, BSTSuperlayer, BSTLayer>
- Returns:
- "BST Factory"
-
show
public void show()Description copied from interface:Factory
InvokesSystem.out.println(this)
.- Specified by:
show
in interfaceFactory<BSTDetector, BSTSector, BSTSuperlayer, BSTLayer>
- Specified by:
show
in interfaceShowable
-
toString
-
getTransformation
public Transformation3D getTransformation(ConstantProvider cp, int sectorId, int superlayerId, int layerId) Description copied from interface:Factory
Returns a transformation object for given sector, superlayer and layer- Specified by:
getTransformation
in interfaceFactory<BSTDetector, BSTSector, BSTSuperlayer, BSTLayer>
- Parameters:
cp
-sectorId
-superlayerId
-layerId
-- Returns:
-
getDetectorTransform
- Specified by:
getDetectorTransform
in interfaceFactory<BSTDetector, BSTSector, BSTSuperlayer, BSTLayer>
-