public class WedgeSideParallel extends Object implements SensorType
Modifier and Type | Field and Description |
---|---|
private double |
_cotan2 |
private boolean |
_left |
private int |
_maxID |
private double |
_offset |
private double |
_pitch |
private double |
_side |
private double |
_tan |
private double |
_thickness |
private double |
_uCorner |
private double |
_vConst |
Constructor and Description |
---|
WedgeSideParallel(boolean left,
double shortBase,
double longBase,
double angle,
double pitch,
double thickness) |
WedgeSideParallel(double rMin,
double side,
double angle,
double pitch,
boolean left,
double thickness) |
Modifier and Type | Method and Description |
---|---|
Hep3Vector |
getChannelDimensions(int channelID)
Returns dimensions of a 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 a given channel, in local sensor coordinates.
|
double[][] |
getCorners()
Returns an array of (U,V) coordinates of corners of the sensor.
|
int |
getHitDimension()
Returns the dimension of a measurement by this type of sensor (1 since
WedgeSideParallel is always tiled with strips).
|
int |
getMaxChannelID()
Returns maximum channel ID on this sensor.
|
int |
getNeighbor(int channelID,
int shiftU,
int shiftV)
Returns ID of a channel obtained by shifting the given channel by the given
number of channels in the given direction along the local reference frame axis.
|
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.
|
private boolean _left
private int _maxID
private double _thickness
private double _offset
private double _pitch
private double _side
private double _tan
private double _cotan2
private double _uCorner
private double _vConst
public WedgeSideParallel(boolean left, double shortBase, double longBase, double angle, double pitch, double thickness)
public WedgeSideParallel(double rMin, double side, double angle, double pitch, boolean left, double thickness)
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
public double[][] getCorners()
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.