Class AlertDCWireIdentifier

java.lang.Object
org.jlab.geom.detector.alert.AHDC.AlertDCWireIdentifier

public class AlertDCWireIdentifier extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    Ahdc wire id defined with a num ranging from 0 to 575
    AlertDCWireIdentifier(int _sector, int _layer, int _component)
    Ahdc wire id defined with sector, layer, component identifiers
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Get component id.
    int
    Get layer id.
    int
    Get unique number id.
    int
    Get sector id.
    static int
    layer2number(int digit)
    Convert the layer digits (11,21,...,51) to layer number between 0 and 7
    static double
    layer2Radius(int _layer)
     
    static double
    layerNum2Radius(int _layer_num)
     
    static int
    number2layer(int num)
    Convert layer number (from 0 to 7) to the superlayer-layer id (11,21,...,51)
    static int
    slc2wire(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 of slc2wire(int, int, int)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 of slc2wire(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)