public abstract class AbstractSubdetectorConverter extends Object implements ISubdetectorConverter
ISubdetectorConverter
that provides some utilities
and default method implementations for Subdetector conversion.Constructor and Description |
---|
AbstractSubdetectorConverter() |
Modifier and Type | Method and Description |
---|---|
abstract void |
convert(Subdetector subdet,
Detector detector)
Sub-classes must implement this.
|
abstract Class<? extends Subdetector> |
getSubdetectorType()
Sub-classes must implement this.
|
(package private) static IIdentifierDictionary |
makeIdentifierDictionary(Subdetector subdet)
|
IIdentifierHelper |
makeIdentifierHelper(Subdetector subdetector,
DetectorIdentifierHelper.SystemMap systemMap)
Creates a concrete
IIdentifierHelper for this Subdetector. |
void |
makeIdentifiers(Subdetector subdet)
Creates the hierarchy of Identifiers in this Subdetector.
|
IDetectorElement |
makeSubdetectorDetectorElement(Detector detector,
Subdetector subdetector)
Create the top-level
IDetectorElement for this
Subdetector. |
public IDetectorElement makeSubdetectorDetectorElement(Detector detector, Subdetector subdetector)
ISubdetectorConverter
IDetectorElement
for this
Subdetector. This node will be assigned the
IIdentifierHelper
created by
#makeIdentifierHelper(Subdetector, SystemMap)
.makeSubdetectorDetectorElement
in interface ISubdetectorConverter
public abstract void convert(Subdetector subdet, Detector detector)
convert
in interface ISubdetectorConverter
public abstract Class<? extends Subdetector> getSubdetectorType()
getSubdetectorType
in interface ISubdetectorConverter
public IIdentifierHelper makeIdentifierHelper(Subdetector subdetector, DetectorIdentifierHelper.SystemMap systemMap)
IIdentifierHelper
for this Subdetector.
Concrete converter types should override this if they want to use a different type of helper.makeIdentifierHelper
in interface ISubdetectorConverter
static IIdentifierDictionary makeIdentifierDictionary(Subdetector subdet)
subdet
- The Subdetector.public void makeIdentifiers(Subdetector subdet)
ISubdetectorConverter
makeIdentifiers
in interface ISubdetectorConverter
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.