public abstract class HPSTracker2014ConverterBase
extends org.lcsim.detector.converter.compact.AbstractSubdetectorConverter
Modifier and Type | Field and Description |
---|---|
protected boolean |
_debug |
protected static HPSTrackerJavaBuilder |
builder |
protected org.lcsim.detector.material.IMaterial |
trackingMaterial |
Constructor and Description |
---|
HPSTracker2014ConverterBase()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
convert(org.lcsim.geometry.compact.Subdetector subdet,
org.lcsim.geometry.compact.Detector detector) |
private void |
createActiveSensorDetectorElement(JavaSurveyVolume surveyVolume)
Create the
HpsSiSensor detector element. |
(package private) void |
createBaseDetectorElement(JavaSurveyVolume surveyVolume)
Create the tracker base
DetectorElement |
protected org.lcsim.detector.IDetectorElement |
createLayerDetectorElement(JavaSurveyVolume surveyVolume)
Create the layer
DetectorElement |
private void |
createSensorDetectorElement(JavaSurveyVolume surveyVolume)
Set the sensor
PhysicalVolume to be sensitive. |
(package private) abstract HpsSiSensor |
createSiSensor(int sensorid,
String name,
org.lcsim.detector.IDetectorElement parent,
String support,
org.lcsim.detector.identifier.IIdentifier id)
Abstract method to create the correct type of
HpsSiSensor . |
protected void |
createTrackerModuleDetectorElement(JavaSurveyVolume surveyVolume,
org.lcsim.detector.IDetectorElement layerDe)
Create the
SiTrackerModule . |
private org.lcsim.detector.IDetectorElement |
getLayerDetectorElement(JavaSurveyVolume surveyVolume)
Find the layer
DetectorElement . |
private org.lcsim.detector.IDetectorElement |
getModuleDetectorElement(org.lcsim.detector.IDetectorElement layerDe,
int moduleNumber)
Find the module
DetectorElement in a layer DetectorElement using the module number id. |
protected abstract int |
getModuleNumber(String surveyVolume)
Abstract method to find the module number.
|
protected abstract HPSTrackerJavaBuilder |
initializeBuilder(org.jdom.Element node)
Initialize builder for this converter.
|
org.lcsim.detector.identifier.IIdentifierHelper |
makeIdentifierHelper(org.lcsim.geometry.compact.Subdetector subdetector,
org.lcsim.detector.DetectorIdentifierHelper.SystemMap systemMap) |
org.lcsim.detector.IDetectorElement |
makeSubdetectorDetectorElement(org.lcsim.geometry.compact.Detector detector,
org.lcsim.geometry.compact.Subdetector subdetector) |
private void |
printDEs() |
private void |
setupPhysicalVolumes()
Setup physical volumes based on the top level
JavaSurveyVolume . |
private void |
setupPhysicalVolumes(JavaSurveyVolume surveyVolume)
Setup the physical volumes recursively
|
protected boolean _debug
protected org.lcsim.detector.material.IMaterial trackingMaterial
protected static HPSTrackerJavaBuilder builder
public HPSTracker2014ConverterBase()
protected abstract HPSTrackerJavaBuilder initializeBuilder(org.jdom.Element node)
node
- abstract HpsSiSensor createSiSensor(int sensorid, String name, org.lcsim.detector.IDetectorElement parent, String support, org.lcsim.detector.identifier.IIdentifier id)
HpsSiSensor
.sensorid
- name
- parent
- support
- id
- public org.lcsim.detector.identifier.IIdentifierHelper makeIdentifierHelper(org.lcsim.geometry.compact.Subdetector subdetector, org.lcsim.detector.DetectorIdentifierHelper.SystemMap systemMap)
makeIdentifierHelper
in interface org.lcsim.detector.converter.compact.ISubdetectorConverter
makeIdentifierHelper
in class org.lcsim.detector.converter.compact.AbstractSubdetectorConverter
public void convert(org.lcsim.geometry.compact.Subdetector subdet, org.lcsim.geometry.compact.Detector detector)
convert
in interface org.lcsim.detector.converter.compact.ISubdetectorConverter
convert
in class org.lcsim.detector.converter.compact.AbstractSubdetectorConverter
private void setupPhysicalVolumes()
JavaSurveyVolume
.private void setupPhysicalVolumes(JavaSurveyVolume surveyVolume)
surveyVolume
- - volume to process.private org.lcsim.detector.IDetectorElement getModuleDetectorElement(org.lcsim.detector.IDetectorElement layerDe, int moduleNumber)
DetectorElement
in a layer DetectorElement
using the module number id.layerDe
- moduleNumber
- DetectorElement
or null
if not found.protected abstract int getModuleNumber(String surveyVolume)
surveyVolume
- private org.lcsim.detector.IDetectorElement getLayerDetectorElement(JavaSurveyVolume surveyVolume)
DetectorElement
.surveyVolume
- DetectorElement
.private void createActiveSensorDetectorElement(JavaSurveyVolume surveyVolume)
HpsSiSensor
detector element.surveyVolume
- private void createSensorDetectorElement(JavaSurveyVolume surveyVolume)
PhysicalVolume
to be sensitive.surveyVolume
- protected void createTrackerModuleDetectorElement(JavaSurveyVolume surveyVolume, org.lcsim.detector.IDetectorElement layerDe)
SiTrackerModule
.surveyVolume
- layerDe
- - mother DetectorElement
protected org.lcsim.detector.IDetectorElement createLayerDetectorElement(JavaSurveyVolume surveyVolume)
DetectorElement
surveyVolume
- void createBaseDetectorElement(JavaSurveyVolume surveyVolume)
DetectorElement
surveyVolume
- public org.lcsim.detector.IDetectorElement makeSubdetectorDetectorElement(org.lcsim.geometry.compact.Detector detector, org.lcsim.geometry.compact.Subdetector subdetector)
makeSubdetectorDetectorElement
in interface org.lcsim.detector.converter.compact.ISubdetectorConverter
makeSubdetectorDetectorElement
in class org.lcsim.detector.converter.compact.AbstractSubdetectorConverter
private void printDEs()
Copyright © 2019. All rights reserved.