public class Detector extends Object
Modifier and Type | Field and Description |
---|---|
private Map<String,Constant> |
constants |
private IDetectorElement |
de |
private Map<String,VisAttributes> |
display |
private Map<String,Field> |
fields |
private List<URL> |
gdmlReferences |
private Header |
header |
private SystemIDMap |
idmap |
private Map<String,LimitSet> |
limits |
private XMLMaterialManager |
materialMgr |
private Map<String,Matrix> |
matrices |
(package private) String |
name |
private IPhysicalVolumeNavigator |
navigator |
private Map<String,Readout> |
readouts |
private Map<String,Region> |
regions |
private Map<String,Subdetector> |
subdetectors |
private IPhysicalVolume |
trackingVolume |
private IPhysicalVolume |
worldVolume |
Modifier | Constructor and Description |
---|---|
protected |
Detector(org.jdom.Element element)
Called by the reader to create a new Detector
|
Modifier and Type | Method and Description |
---|---|
protected void |
addConstant(Constant c)
Called by the reader to add a constant to this detector.
|
protected void |
addField(Field field) |
void |
addGDMLReference(URL url) |
void |
addLimitSet(LimitSet limitset) |
void |
addMatrix(String name,
Matrix matrix)
Add a matrix associated with this Detector, e.g.
|
protected void |
addReadout(Readout r)
Called by the reader to add a new Readout to this detector.
|
void |
addRegion(Region region) |
protected void |
addSubdetector(Subdetector sub)
Called by the reader to add a sub-detector to this detector.
|
void |
addVisAttributes(VisAttributes vis) |
Calorimeter |
getCalorimeterByType(Calorimeter.CalorimeterType calType) |
Map<String,Constant> |
getConstants()
Get the constants associated with this detector.
|
IDetectorElement |
getDetectorElement() |
String |
getDetectorName()
Get the detector name from the header.
|
Map<String,Field> |
getFields() |
List<URL> |
getGDMLReferences() |
Header |
getHeader()
Get the header associated with this detector.
|
Map<String,LimitSet> |
getLimits() |
LimitSet |
getLimitSet(String name) |
MaterialManager |
getMaterialManager() |
Map<String,Matrix> |
getMatrices()
Get the map of named matrices.
|
Matrix |
getMatrix(String name)
Get a matrix associated with this Detector.
|
String |
getName() |
IPhysicalVolumeNavigator |
getNavigator() |
Readout |
getReadout(String rn)
Convenience method to get readout by name.
|
Map<String,Readout> |
getReadouts()
Get the readouts associated with this detector.
|
Region |
getRegion(String name) |
Map<String,Region> |
getRegions() |
Subdetector |
getSubdetector(int sysid)
Get a Subdetector by system ID.
|
Subdetector |
getSubdetector(String name)
Convenience method to retrieve subdetector by name.
|
List<Subdetector> |
getSubdetectorList() |
Set<String> |
getSubdetectorNames()
Convenience method to retrieve set of detector names.
|
Map<String,Subdetector> |
getSubdetectors()
Get the sub-detectors associated with this detector.
|
IPhysicalVolume |
getTrackingVolume() |
Map<String,VisAttributes> |
getVisAttributes() |
IPhysicalVolume |
getWorldVolume() |
XMLMaterialManager |
getXMLMaterialManager() |
void |
setDetectorElement(IDetectorElement de) |
protected void |
setHeader(Header header)
Called by the reader to associate a header with this detector
|
void |
setWorldVolume(IPhysicalVolume worldVolume) |
protected void |
setXMLMaterialManager(XMLMaterialManager xmat) |
private Header header
private Map<String,Subdetector> subdetectors
private Map<String,VisAttributes> display
private XMLMaterialManager materialMgr
private SystemIDMap idmap
private IPhysicalVolume worldVolume
private IPhysicalVolume trackingVolume
private IPhysicalVolumeNavigator navigator
private IDetectorElement de
String name
protected Detector(org.jdom.Element element)
element
- The JDOM element corresponding to the detector definition in the XML file.protected void setXMLMaterialManager(XMLMaterialManager xmat)
public String getName()
public IPhysicalVolume getWorldVolume()
public void setWorldVolume(IPhysicalVolume worldVolume)
public IPhysicalVolume getTrackingVolume()
public IPhysicalVolumeNavigator getNavigator()
protected void setHeader(Header header)
header
- The header.public Header getHeader()
public String getDetectorName()
protected void addConstant(Constant c)
c
- The constant to add.public Map<String,Constant> getConstants()
public void addMatrix(String name, Matrix matrix)
name
- The name of the matrix.matrix
- The matrix object.public Matrix getMatrix(String name)
name
- The name of the matrix.public Map<String,Matrix> getMatrices()
protected void addReadout(Readout r)
r
- The readout to add.public Map<String,Readout> getReadouts()
protected void addSubdetector(Subdetector sub)
sub
- The sub-detector to add.public Subdetector getSubdetector(int sysid)
sysid
- The system identifier.public Subdetector getSubdetector(String name)
subdetector
- with this name (null if doesn't exist)public Set<String> getSubdetectorNames()
public Map<String,Subdetector> getSubdetectors()
protected void addField(Field field)
public final XMLMaterialManager getXMLMaterialManager()
public MaterialManager getMaterialManager()
public void addLimitSet(LimitSet limitset)
public void addRegion(Region region)
public void addVisAttributes(VisAttributes vis)
public Map<String,VisAttributes> getVisAttributes()
public IDetectorElement getDetectorElement()
public void setDetectorElement(IDetectorElement de)
public void addGDMLReference(URL url)
public Calorimeter getCalorimeterByType(Calorimeter.CalorimeterType calType)
public List<Subdetector> getSubdetectorList()
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.