Contents
- Description
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- createDetectorCLAS(ConstantProvider)
- createDetectorSector(ConstantProvider)
- createDetectorTilted(ConstantProvider)
- createDetectorLocal(ConstantProvider)
- createSector(ConstantProvider, int)
- createSuperlayer(ConstantProvider, int, int)
- createLayer(ConstantProvider, int, int, int)
- getType()
- show()
- toString()
- getTransformation(ConstantProvider, int, int, int)
- getDetectorTransform(ConstantProvider)
Class FMTFactory
java.lang.Object
org.jlab.geom.detector.fmt.FMTFactory
- All Implemented Interfaces:
Factory<FMTDetector, FMTSector, FMTSuperlayer, FMTLayer>
,Showable
public class FMTFactory
extends Object
implements Factory<FMTDetector, FMTSector, FMTSuperlayer, FMTLayer>
A Forward Micromegas Tracker (FMT)
Factory
.
Factory: FMTFactory
Hierarchy:
FMTDetector
→
FMTSector
→
FMTSuperlayer
→
FMTLayer
→
ScintillatorPaddle
Due to the way the FMT is organized, there is only one FMTSector
and FMTSuperlayer
per FMTDetector. There are three FMTLayer
s
and each layer contains 48 ScintillatorPaddles
grouped pairwise into
24 sectors. The equation for the sector id given a component id for the FMT
is as follows
sector = ceil((component%47)/2)
This means that components 47 and 0 are both in sector 0, components 1 and 2
are in sector 1, components 3 and 4 are in sector 2, etc.
- Author:
- devita
-
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 "FMT 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<FMTDetector, FMTSector, FMTSuperlayer, FMTLayer>
- 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<FMTDetector, FMTSector, FMTSuperlayer, FMTLayer>
- 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<FMTDetector, FMTSector, FMTSuperlayer, FMTLayer>
- 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<FMTDetector, FMTSector, FMTSuperlayer, FMTLayer>
- 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<FMTDetector, FMTSector, FMTSuperlayer, FMTLayer>
- 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<FMTDetector, FMTSector, FMTSuperlayer, FMTLayer>
- 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<FMTDetector, FMTSector, FMTSuperlayer, FMTLayer>
- 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 "FMT Factory".- Specified by:
getType
in interfaceFactory<FMTDetector, FMTSector, FMTSuperlayer, FMTLayer>
- Returns:
- "FMT Factory"
-
show
public void show()Description copied from interface:Factory
InvokesSystem.out.println(this)
.- Specified by:
show
in interfaceFactory<FMTDetector, FMTSector, FMTSuperlayer, FMTLayer>
- Specified by:
show
in interfaceShowable
-
toString
-
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<FMTDetector, FMTSector, FMTSuperlayer, FMTLayer>
- Parameters:
cp
-sector
-superlayer
-layer
-- Returns:
-
getDetectorTransform
- Specified by:
getDetectorTransform
in interfaceFactory<FMTDetector, FMTSector, FMTSuperlayer, FMTLayer>
-