public class Ring extends Rectangle
getChannelID(Hep3Vector)
method returns -1 if and only if the
center of the rectangle (strip) to which the point belongs is ouside the ring.Modifier and Type | Field and Description |
---|---|
protected double |
_rMax |
protected double |
_rMin |
Constructor and Description |
---|
Ring(double radiusMin,
double radiusMax,
double pitch,
double length,
double thickness)
Create Ring 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.
|
boolean |
isValidChannelID(int channelID)
Returns true if the center of the channel is inside the ring.
|
getChannelDimensions, getChannelPosition, getHitDimension, getMaxChannelID, setHitDimension
public Ring(double radiusMin, double radiusMax, double pitch, double length, double thickness)
radiusMin
- Inside radius of the ring.radiusMax
- Outside radius of the ring.pitch
- Width of a strip.length
- Length of a strip.thickness
- Thickness of the sensor.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)
getNeighbors
in interface SensorType
getNeighbors
in class Rectangle
public boolean isValidChannelID(int channelID)
isValidChannelID
in interface SensorType
isValidChannelID
in class Rectangle
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.