Class AlertDCWireIdentifier
java.lang.Object
org.jlab.geom.detector.alert.AHDC.AlertDCWireIdentifier
-
Constructor Summary
ConstructorsConstructorDescriptionAlertDCWireIdentifier(int _num) Ahdc wire id defined with a num ranging from 0 to 575AlertDCWireIdentifier(int _sector, int _layer, int _component) Ahdc wire id defined with sector, layer, component identifiers -
Method Summary
Modifier and TypeMethodDescriptionintGet component id.intGet layer id.intGet unique number id.intGet sector id.static intlayer2number(int digit) Convert the layer digits (11,21,...,51) to layer number between 0 and 7static doublelayer2Radius(int _layer) static doublelayerNum2Radius(int _layer_num) static intnumber2layer(int num) Convert layer number (from 0 to 7) to the superlayer-layer id (11,21,...,51)static intslc2wire(int sector, int layer, int component) Convert (sector, layer, component) to a unique wire id (number betwwen 0 and 575)static int[]wire2slc(int wire) Convert wire number (number from 0 to 575) to (sector,layer,component) ids This is the invert operation ofslc2wire(int, int, int)
-
Constructor Details
-
AlertDCWireIdentifier
public AlertDCWireIdentifier(int _num) Ahdc wire id defined with a num ranging from 0 to 575- Parameters:
_num-
-
AlertDCWireIdentifier
public AlertDCWireIdentifier(int _sector, int _layer, int _component) Ahdc wire id defined with sector, layer, component identifiers- Parameters:
_sector-_layer- can be 11, 21, 22, 31, 32, 41, 51_component-
-
-
Method Details
-
getNumber
public int getNumber()Get unique number id. Number between 0 and 575 -
getSectorId
public int getSectorId()Get sector id. Numbering start at 1 -
getLayerId
public int getLayerId()Get layer id. Numbering start at 1 -
getComponentId
public int getComponentId()Get component id. Numbering start at 1 -
wire2slc
public static int[] wire2slc(int wire) Convert wire number (number from 0 to 575) to (sector,layer,component) ids This is the invert operation ofslc2wire(int, int, int)- Parameters:
wire- wire number between 0 and 575- Returns:
- a triplet (sector, layer, component) in int[]
-
slc2wire
public static int slc2wire(int sector, int layer, int component) Convert (sector, layer, component) to a unique wire id (number betwwen 0 and 575)- Parameters:
sector- (not used)layer-component-- Returns:
- unique wire id
-
layer2number
public static int layer2number(int digit) Convert the layer digits (11,21,...,51) to layer number between 0 and 7- Parameters:
digit-- Returns:
- layer number
-
number2layer
public static int number2layer(int num) Convert layer number (from 0 to 7) to the superlayer-layer id (11,21,...,51)- Parameters:
num- between 0 and 7- Returns:
- layer number between (11,21,...,51)
-
layer2Radius
public static double layer2Radius(int _layer) - Parameters:
_layer- (number 11, 21, 22, ..., 51)- Returns:
- the radius of the _layer
-
layerNum2Radius
public static double layerNum2Radius(int _layer_num) - Parameters:
_layer_num- between 0 and 7- Returns:
- the radius of the _layer. See
layer2Radius(int)
-