public class Hexagon extends Object implements SensorType
Modifier and Type | Field and Description |
---|---|
protected double |
_halfThick |
protected double |
_halfWidth |
protected int |
_nDivU |
protected double |
_pitch |
protected double |
_side |
protected double |
COSPI6 |
protected double |
TANPI6 |
Constructor and Description |
---|
Hexagon(double sideLength,
double thickness,
int nU)
Create Hexagon instance.
|
Modifier and Type | Method and Description |
---|---|
Hep3Vector |
getChannelDimensions(int channelID)
Returns dimensions of the given channel along U, V, W.
|
int |
getChannelID(Hep3Vector point)
Converts a point in local sensor coordinates to channel ID.
|
Hep3Vector |
getChannelPosition(int channelID)
Returns position of the center of the given channel, in local sensor coordinates.
|
int |
getHitDimension()
Returns the dimension of a measurement by this type of sensor
(1 for strips, 2 for pixels, etc).
|
int |
getMaxChannelID()
Returns maximum possible channel ID on this sensor.
|
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.
|
boolean |
isValidChannelID(int channelID)
Returns true if channel with this ID exists on this sensor.
|
protected double _side
protected double _halfWidth
protected double _halfThick
protected double _pitch
protected int _nDivU
protected final double COSPI6
protected final double TANPI6
public Hexagon(double sideLength, double thickness, int nU)
sideLength
- Length of the hexagon side.thickness
- Thickness of the sensor.nU
- Number of divisions along U (measurement direction, perpendicular to strips).public int getChannelID(Hep3Vector point)
getChannelID
in interface SensorType
public Hep3Vector getChannelPosition(int channelID)
getChannelPosition
in interface SensorType
public int getMaxChannelID()
getMaxChannelID
in interface SensorType
public boolean isValidChannelID(int channelID)
isValidChannelID
in interface SensorType
public Hep3Vector getChannelDimensions(int channelID)
getChannelDimensions
in interface SensorType
public int getHitDimension()
getHitDimension
in interface SensorType
public int getNeighbor(int channelID, int shiftU, int shiftV)
getNeighbor
in interface SensorType
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)
getNeighbors
in interface SensorType
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.