public class Rectangle extends Object implements SensorType
Modifier and Type | Field and Description |
---|---|
protected int |
_hitDim |
protected double |
_length |
protected int |
_nDivU |
protected int |
_nDivV |
protected double |
_pitch |
protected double |
_thick |
protected double |
_uLow |
protected double |
_vLow |
protected double |
_wCenter |
Constructor and Description |
---|
Rectangle()
Default constructor for use by subclusses.
|
Rectangle(double width,
double length,
double thickness,
double stripPitch,
double stripLength)
Create Rectangle instance.
|
Rectangle(double width,
double length,
double thickness,
double stripPitch,
double stripLength,
Hep3Vector center)
Create Rectangle instance.
|
Rectangle(double width,
double length,
double thickness,
double stripPitch,
int nLength)
Create Rectangle instance.
|
Rectangle(double width,
double length,
double thickness,
double stripPitch,
int nLength,
Hep3Vector center)
Create Rectangle instance.
|
Rectangle(double width,
double length,
double thickness,
int nWidth,
double stripLength)
Create Rectangle instance.
|
Rectangle(double width,
double length,
double thickness,
int nWidth,
double stripLength,
Hep3Vector center)
Create Rectangle instance.
|
Rectangle(double width,
double length,
double thickness,
int nWidth,
int nLength)
Create Rectangle instance.
|
Rectangle(double width,
double length,
double thickness,
int nWidth,
int nLength,
Hep3Vector center)
Create an instance of Rectangle.
|
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.
|
void |
setHitDimension(int dim)
Set the dimension of a measurement by this type of sensor (1 for strips, 2 for pixels, etc).
|
protected double _uLow
protected double _vLow
protected double _wCenter
protected double _pitch
protected double _length
protected double _thick
protected int _hitDim
protected int _nDivU
protected int _nDivV
public Rectangle()
public Rectangle(double width, double length, double thickness, int nWidth, int nLength, Hep3Vector center)
width
- Width of the sensor.length
- Length of the sensor (along strip direction).thickness
- Thickness of the sensor.nWidth
- Number of divisions across the sensor width.nLength
- Number of divisions along the sensor length.center
- Position of the cuboid center in the local reference framepublic Rectangle(double width, double length, double thickness, int nWidth, int nLength)
width
- Width of the sensor.length
- Length of the sensor (along strip direction).thickness
- Thickness of the sensor.nWidth
- Number of divisions across the sensor width.nLength
- Number of divisions along the sensor length.public Rectangle(double width, double length, double thickness, double stripPitch, int nLength, Hep3Vector center)
width
- Width of the sensor.length
- Length of the sensor (along strip direction).thickness
- Thickness of the sensor.stripPitch
- Strip width.nLength
- Number of divisions along the sensor length.center
- Position of the cuboid center in the local reference framepublic Rectangle(double width, double length, double thickness, double stripPitch, int nLength)
width
- Width of the sensor.length
- Length of the sensor (along strip direction).thickness
- Thickness of the sensor.stripPitch
- Strip width.nLength
- Number of divisions along the sensor length.public Rectangle(double width, double length, double thickness, int nWidth, double stripLength, Hep3Vector center)
width
- Width of the sensor.length
- Length of the sensor (along strip direction).thickness
- Thickness of the sensor.nWidth
- Number of divisions across the sensor width.stripLength
- Strip length.center
- Position of the cuboid center in the local reference framepublic Rectangle(double width, double length, double thickness, int nWidth, double stripLength)
width
- Width of the sensor.length
- Length of the sensor (along strip direction).thickness
- Thickness of the sensor.nWidth
- Number of divisions across the sensor width.stripLength
- Strip length.public Rectangle(double width, double length, double thickness, double stripPitch, double stripLength, Hep3Vector center)
width
- Width of the sensor.length
- Length of the sensor (along strip direction).thickness
- Thickness of the sensor.stripPitch
- Strip width.stripLength
- Strip length.center
- Position of the cuboid center in the local reference framepublic Rectangle(double width, double length, double thickness, double stripPitch, double stripLength)
width
- Width of the sensor.length
- Length of the sensor (along strip direction).thickness
- Thickness of the sensor.stripPitch
- Strip width.stripLength
- Strip length.public void setHitDimension(int dim)
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()
setHitDimension(int)
.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.