public final class LCDDFactory extends Object
Constructor and Description |
---|
LCDDFactory() |
Modifier and Type | Method and Description |
---|---|
static Author |
createAuthor(String name,
String email)
Create the author element for the header.
|
static Box |
createBox(String name,
double x,
double y,
double z)
Create a box solid.
|
static Calorimeter |
createCalorimeter(String name,
Segmentation seg)
Create a calorimeter-type sensitive detector.
|
static Constant |
createConstant(String name,
double value)
Create a named double constant.
|
static Constant |
createConstant(String name,
String value)
Create a named string constant.
|
static Detector |
createDetector(String title,
String version,
String url)
Create the detector element for the header.
|
static Dipole |
createDipole(String name,
double zmin,
double zmax,
double rmax,
double[] coeffs)
Create a Dipole magnetic field.
|
static Generator |
createGenerator(String title,
String version,
String file,
long checksum)
Create the generator element for the header.
|
static GridXYZ |
createGridXYZ(double x,
double y,
double z)
Create a Cartesian grid segmentation.
|
static Header |
createHeader(String comment)
Create the header element.
|
static IDField |
createIDField(String label,
int start,
int length,
boolean signed)
Create an ID field.
|
static IDSpec |
createIDSpec(String name,
int length,
List<IDField> fields)
Create an IDSpec.
|
static LCDD |
createLCDD()
Create the top-level LCDD container element.
|
static Limit |
createLimit(String name,
String particles,
double value,
String unit)
Create a single physics limit.
|
static LimitSet |
createLimitSet(String name,
List<Limit> limits)
Create a set of physics limits.
|
static Material |
createMaterial(String name)
Create a material.
|
static NonprojectiveCylinder |
createNonprojectiveCylinder(double gridSizeZ,
double gridSizePhi)
Create a nonprojective cylinder segmentation.
|
static PhysVol |
createPhysVol(Volume volume,
Position position,
Rotation rotation)
Create a physical volume (placement).
|
static PhysVol |
createPhysVol(Volume volume,
Position position,
Rotation rotation,
List<PhysVolID> ids)
Create a physical volume (placement) with a list of physical volume ids.
|
static PhysVolID |
createPhysVolID(String name,
int value)
Create a physical volume identifier.
|
static Polycone |
createPolycone(String name,
double startPhi,
double deltaPhi,
List<ZPlane> zplanes)
Create a polycone solid.
|
static PolyhedraRegular |
createPolyhedraRegular(String name,
int nsides,
double rmin,
double rmax,
double zlength)
Create a regular polyhedra solid.
|
static Position |
createPosition(String name,
double x,
double y,
double z)
Create an XYZ position.
|
static ProjectiveCylinder |
createProjectiveCylinder(int ntheta,
int nphi)
Create a projective cylinder segmentation.
|
static ProjectiveZPlane |
createProjectiveZPlane(int ntheta,
int nphi)
Create a projective zplane segmentation.
|
static Region |
createRegion(String name,
boolean storeSecondaries,
double energyCut,
double rangeCut,
String eunit,
String lunit)
Create a region.
|
static Rotation |
createRotation(String name,
double x,
double y,
double z)
Create a rotation with XYZ parameters.
|
static RZFieldMap |
createRZFieldMap(String name,
int numBinsR,
int numBinsZ,
double gridSizeR,
double gridSizeZ,
String lunit,
String funit,
List<RZBData> data)
Create an RZB field map.
|
static Solenoid |
createSolenoid(String name,
double BInner,
double BOuter,
double rInner,
double zMax)
Create a solenoid field.
|
static SubtractionSolid |
createSubtractionSolid(String name,
Solid first,
Solid second,
Position pos,
Rotation rot)
Create a boolean solid using subtraction.
|
static Tracker |
createTracker(String name)
Create a tracker-type sensitive detector.
|
static Trapezoid |
createTrapezoid(String name,
double x1,
double x2,
double y1,
double y2,
double z)
Create a trapezoid solid.
|
static Tube |
createTube(String name,
double rmin,
double rmax,
double z,
double deltaphi)
Create a tube solid.
|
static VisAttributes |
createVisAttributes(String name,
float r,
float g,
float b,
float a)
Create a VisAttributes with color settings.
|
static Volume |
createVolume(Material material,
Solid solid,
SensitiveDetector sd,
Region region,
LimitSet limits,
List<PhysVol> pvs)
Create a Volume with all parameters, but copy the name from the Solid.
|
static Volume |
createVolume(String name,
Material material,
Solid solid)
Create a basic Volume.
|
static Volume |
createVolume(String name,
Material material,
Solid solid,
SensitiveDetector sd,
Region region,
LimitSet limits,
List<PhysVol> pvs)
Create a Volume with all parameters.
|
static ZPlane |
createZPlane(double rmin,
double rmax,
double z)
Create a zplane for use by Polycone.
|
public static LCDD createLCDD()
public static Detector createDetector(String title, String version, String url)
public static Author createAuthor(String name, String email)
public static Generator createGenerator(String title, String version, String file, long checksum)
public static Box createBox(String name, double x, double y, double z)
public static Tube createTube(String name, double rmin, double rmax, double z, double deltaphi)
public static Trapezoid createTrapezoid(String name, double x1, double x2, double y1, double y2, double z)
public static SubtractionSolid createSubtractionSolid(String name, Solid first, Solid second, Position pos, Rotation rot)
public static Polycone createPolycone(String name, double startPhi, double deltaPhi, List<ZPlane> zplanes)
public static PolyhedraRegular createPolyhedraRegular(String name, int nsides, double rmin, double rmax, double zlength)
public static ZPlane createZPlane(double rmin, double rmax, double z)
public static Volume createVolume(String name, Material material, Solid solid)
public static Volume createVolume(String name, Material material, Solid solid, SensitiveDetector sd, Region region, LimitSet limits, List<PhysVol> pvs)
public static Volume createVolume(Material material, Solid solid, SensitiveDetector sd, Region region, LimitSet limits, List<PhysVol> pvs)
public static Constant createConstant(String name, double value)
public static Constant createConstant(String name, String value)
public static IDField createIDField(String label, int start, int length, boolean signed)
public static IDSpec createIDSpec(String name, int length, List<IDField> fields)
public static Limit createLimit(String name, String particles, double value, String unit)
public static LimitSet createLimitSet(String name, List<Limit> limits)
public static PhysVol createPhysVol(Volume volume, Position position, Rotation rotation)
public static PhysVol createPhysVol(Volume volume, Position position, Rotation rotation, List<PhysVolID> ids)
public static PhysVolID createPhysVolID(String name, int value)
public static Position createPosition(String name, double x, double y, double z)
public static Calorimeter createCalorimeter(String name, Segmentation seg)
public static Tracker createTracker(String name)
public static ProjectiveCylinder createProjectiveCylinder(int ntheta, int nphi)
public static ProjectiveZPlane createProjectiveZPlane(int ntheta, int nphi)
public static GridXYZ createGridXYZ(double x, double y, double z)
public static NonprojectiveCylinder createNonprojectiveCylinder(double gridSizeZ, double gridSizePhi)
public static Region createRegion(String name, boolean storeSecondaries, double energyCut, double rangeCut, String eunit, String lunit)
public static Rotation createRotation(String name, double x, double y, double z)
public static Solenoid createSolenoid(String name, double BInner, double BOuter, double rInner, double zMax)
public static RZFieldMap createRZFieldMap(String name, int numBinsR, int numBinsZ, double gridSizeR, double gridSizeZ, String lunit, String funit, List<RZBData> data)
public static Dipole createDipole(String name, double zmin, double zmax, double rmax, double[] coeffs)
public static VisAttributes createVisAttributes(String name, float r, float g, float b, float a)
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.