public class Polycone extends AbstractSolid
Modifier and Type | Class and Description |
---|---|
static class |
Polycone.ZPlane |
Modifier and Type | Field and Description |
---|---|
private static boolean |
INNER |
private static boolean |
OUTER |
private double |
zHalfLength |
private double |
zMax |
private double |
zMin |
(package private) List<Polycone.ZPlane> |
zplanes |
name
Constructor and Description |
---|
Polycone(String name,
List<Polycone.ZPlane> zplanes) |
Modifier and Type | Method and Description |
---|---|
private double |
f(double z,
boolean whichR,
Polycone.ZPlane p1,
Polycone.ZPlane p2) |
double |
getCubicVolume() |
double |
getInnerRadiusAtZ(double z)
Returns the inner radius of the polycone at the given z.
|
int |
getNumberOfZPlanes() |
double |
getOuterRadiusAtZ(double z)
Returns the outer radius of the polycone at the given z.
|
private double |
getRadiusAtZ(double z,
boolean whichR) |
static double |
getSegmentVolume(Polycone.ZPlane p1,
Polycone.ZPlane p2)
Returns the volume of a polycone segment defined by the zplanes p1 and p2
|
double |
getVolumeOfSegmentAtZ(double z)
Returns the volume of the segment at the given value of z.
|
double |
getZHalfLength() |
Polycone.ZPlane |
getZPlane(int idx) |
List<Polycone.ZPlane> |
getZPlanes() |
Inside |
inside(Hep3Vector position) |
getName
List<Polycone.ZPlane> zplanes
private double zHalfLength
private double zMax
private double zMin
private static final boolean INNER
private static final boolean OUTER
public Polycone(String name, List<Polycone.ZPlane> zplanes)
public List<Polycone.ZPlane> getZPlanes()
public int getNumberOfZPlanes()
public Polycone.ZPlane getZPlane(int idx)
public double getZHalfLength()
public double getCubicVolume()
public Inside inside(Hep3Vector position)
public double getInnerRadiusAtZ(double z)
z
- a z-coordinate in mmpublic double getOuterRadiusAtZ(double z)
z
- a z-coordinate in mmpublic double getVolumeOfSegmentAtZ(double z)
z
- a z-coordinate in mmpublic static double getSegmentVolume(Polycone.ZPlane p1, Polycone.ZPlane p2)
p1
- A bounding ZPlanep2
- The other bounding ZPlaneprivate double f(double z, boolean whichR, Polycone.ZPlane p1, Polycone.ZPlane p2)
private double getRadiusAtZ(double z, boolean whichR)
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.