Interface Sector<SuperlayerType extends Superlayer>
- Type Parameters:
- SuperlayerType- the specific type of- Superlayercontained by the- Sector
- All Superinterfaces:
- Showable
- All Known Implementing Classes:
- AbstractSector,- AlertDCSector,- AlertTOFSector,- BSTSector,- CNDSector,- DCSector,- ECSector,- FMTSector,- FTCALSector,- FTOFSector,- FTOFSectorMesh
 The primary purpose of a Sector object is to provide convenient
 methods for accessing to the Superlayer objects it contains. If
 grouping components by sector is inconvenient a Sector object may
 contain more than one sector.
 
 Factory: Factory
 Hierarchy: 
 
 
 Detector → 
 Sector → 
 Superlayer → 
 Layer → 
 Component
 
 To learn how to create a Sector and find much more information see
 Factory.
- Author:
- jnhankins
- 
Method SummaryModifier and TypeMethodDescriptionReturns an unmodifiable list of all superlayers contained in this sector.getCrossSections(Transformation3D transformation) Returns a list of lists of lines such that each of the inner lists contains the cross section lines for a single component.Returns the id of the detector that this sector is contained in.Returns a list of DetecorHits which store information about intersections with components in this sector.getLayerHits(Path3D path) Returns a list of DetecorHits which store information about intersections with layer surface boundaries in this sector.intReturns the number of superlayers contained in this sector.intReturns the id of this sector.getSuperlayer(int superlayerId) Returns the superlayer associated with the given superlayer id.getType()Returns a string that identifies the specific subtype of this sector.voidshow()InvokesSystem.out.println(this).
- 
Method Details- 
getDetectorIdDetectorId getDetectorId()Returns the id of the detector that this sector is contained in.- Returns:
- the id of this sector's detector
 
- 
getSectorIdint getSectorId()Returns the id of this sector.- Returns:
- the id of this sector
 
- 
getNumSuperlayersint getNumSuperlayers()Returns the number of superlayers contained in this sector.- Returns:
- the number of superlayers
 
- 
getSuperlayerReturns the superlayer associated with the given superlayer id.- Parameters:
- superlayerId- the superlayer id
- Returns:
- the superlayer with the specified id
 
- 
getAllSuperlayersList<SuperlayerType> getAllSuperlayers()Returns an unmodifiable list of all superlayers contained in this sector.- Returns:
- an unmodifiable list of superlayers
 
- 
getCrossSectionsReturns a list of lists of lines such that each of the inner lists contains the cross section lines for a single component.This method takes a Transformation3D object as an argument, then constructs a Plane3Dobject in the xy-plane and applies the transformation to the plane. The intersection of the sector's component's shapes with the transformed plane is then calculated and stored in a list of lists of lines of lines. The inverse of the transformation is then applied to each line ensuring that each returned line is in the xy-plane- Parameters:
- transformation- the transformation
- Returns:
- a list of list of lines representing the cross section
- See Also:
 
- 
getLayerHitsReturns a list of DetecorHits which store information about intersections with layer surface boundaries in this sector. The component ids stored in the detector hits will all be set to -1 to indicate that detector hit does not specify a specific component.- Parameters:
- path- the path
- Returns:
- a list of detector hits
 
- 
getHitsReturns a list of DetecorHits which store information about intersections with components in this sector.- Parameters:
- path- the path
- Returns:
- a list of detector hits
 
- 
getTypeString getType()Returns a string that identifies the specific subtype of this sector.- Returns:
- a string naming this sector's type
 
- 
showvoid show()InvokesSystem.out.println(this).
 
-