public class DetectorElementToHepRepConverter extends Object
IDetectorElement
to an
in-memory HepRep description.IDetectorElement
,
hep.graphics.heprep
Modifier and Type | Field and Description |
---|---|
static String |
HITS_LAYER |
static String |
PARTICLES_LAYER |
Constructor and Description |
---|
DetectorElementToHepRepConverter() |
Modifier and Type | Method and Description |
---|---|
static void |
convert(IDetectorElement detelem,
HepRepFactory factory,
HepRep heprep,
boolean endcap,
Color color)
Convert from DetectorElements to HepRep using default depth parameters.
|
static void |
convert(IDetectorElement detelem,
HepRepFactory factory,
HepRep heprep,
HepRepType parentType,
int currentDepth,
int maxDepth,
boolean endcap,
Color color)
This is the primary conversion method.
|
static void |
convert(IDetectorElement detelem,
HepRepFactory factory,
HepRep heprep,
int maxDepth,
boolean endcap,
Color color)
Convert from DetectorElements to HepRep, specifying the max depth parameter.
|
static void |
writeHepRep(String filepath) |
public static final String HITS_LAYER
public static final String PARTICLES_LAYER
public static void convert(IDetectorElement detelem, HepRepFactory factory, HepRep heprep, HepRepType parentType, int currentDepth, int maxDepth, boolean endcap, Color color)
detelem
- The DetectorElement.factory
- The HepRepFactory object.heprep
- The HepRep object.parentType
- The parent HepRepType.currentDepth
- The current depth of the DetectorElement traversal.maxDepth
- The max depth of the DetectorElement traversal.endcap
- True if DetectorElement is an endcap; false if not.public static void convert(IDetectorElement detelem, HepRepFactory factory, HepRep heprep, boolean endcap, Color color)
detelem
- factory
- heprep
- endcap
- public static void convert(IDetectorElement detelem, HepRepFactory factory, HepRep heprep, int maxDepth, boolean endcap, Color color)
detelem
- factory
- heprep
- maxDepth
- endcap
- Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.