public class Cylinder extends Rectangle
Modifier and Type | Field and Description |
---|---|
(package private) static double |
TWOPI |
Constructor and Description |
---|
Cylinder(double radius,
double length,
double thickness,
double stripPitch,
double stripLength)
Create Cylinder instance.
|
Cylinder(double radius,
double length,
double thickness,
double stripPitch,
double stripLength,
Hep3Vector center)
Create Cylinder instance.
|
Cylinder(double radius,
double length,
double thickness,
int nPhi,
int nLength)
Create Cylinder instance.
|
Cylinder(double radius,
double length,
double thickness,
int nPhi,
int nLength,
Hep3Vector center)
Create Cylinder instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getChannelID(Hep3Vector point)
Converts a point in local sensor coordinates to channel ID.
|
int |
getNeighbor(int channelID,
int shiftU,
int shiftV)
Returns channel ID of a neighbor channel.
|
List<Integer> |
getNeighbors(int channelID)
Returns array of IDs of all immediate neighbor channels.
|
getChannelDimensions, getChannelPosition, getHitDimension, getMaxChannelID, isValidChannelID, setHitDimension
static final double TWOPI
public Cylinder(double radius, double length, double thickness, int nPhi, int nLength, Hep3Vector center)
length
- Length of the cylinder (along strip direction).radius
- Radius of the cylinder.thickness
- Thickness of the sensor.nLength
- Number of divisions along the cylinder length.nPhi
- Number of divisions in phi.center
- Controls definition of the local reference framepublic Cylinder(double radius, double length, double thickness, int nPhi, int nLength)
length
- Length of the cylinder (along strip direction).radius
- Radius of the cylinder.thickness
- Thickness of the sensor.nLength
- Number of divisions along the cylinder length.nPhi
- Number of divisions in phi.public Cylinder(double radius, double length, double thickness, double stripPitch, double stripLength, Hep3Vector center)
length
- Length of the cylinder (along strip direction).radius
- Radius of the cylinder.thickness
- Thickness of the sensor.stripPitch
- Strip width.stripLength
- Strip length.center
- Controls definition of the local reference framepublic Cylinder(double radius, double length, double thickness, double stripPitch, double stripLength)
length
- Length of the cylinder (along strip direction).radius
- Radius of the cylinder.thickness
- Thickness of the sensor.stripPitch
- Strip width.stripLength
- Strip length.public int getChannelID(Hep3Vector point)
getChannelID
in interface SensorType
getChannelID
in class Rectangle
public int getNeighbor(int channelID, int shiftU, int shiftV)
getNeighbor
in interface SensorType
getNeighbor
in class Rectangle
channelID
- ID of the original channelshiftV
- move in V direction by shiftV channelsshiftU
- move in U direction by shiftU channelspublic List<Integer> getNeighbors(int channelID)
Rectangle.getHitDimension()
returns 1), this method looks for neighbors
in U direction only. Therefore, each strip has 1 or 2 neighbors. For pixels
(Rectangle.getHitDimension()
returns 2), up to 8 neighbors can be found.getNeighbors
in interface SensorType
getNeighbors
in class Rectangle
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.