Class DetectorDescriptor

java.lang.Object
org.jlab.detector.base.DetectorDescriptor
All Implemented Interfaces:
Comparable<DetectorDescriptor>

public class DetectorDescriptor extends Object implements Comparable<DetectorDescriptor>
Author:
gavalian
  • Constructor Details

    • DetectorDescriptor

      public DetectorDescriptor()
    • DetectorDescriptor

      public DetectorDescriptor(DetectorType type)
    • DetectorDescriptor

      public DetectorDescriptor(String name)
  • Method Details

    • getCopy

      public DetectorDescriptor getCopy()
    • getCrate

      public int getCrate()
    • getChannel

      public int getChannel()
    • getComponent

      public int getComponent()
    • getLayer

      public int getLayer()
    • getSlot

      public int getSlot()
    • getSector

      public int getSector()
    • getOrder

      public int getOrder()
    • setSector

      public void setSector(int sector)
    • setOrder

      public void setOrder(int order)
    • getCSC

      public int[] getCSC()
    • getSLCO

      public int[] getSLCO()
    • getType

      public DetectorType getType()
    • setType

      public final void setType(DetectorType type)
    • setLayer

      public final void setLayer(int layer)
    • setCrateSlotChannel

      public final void setCrateSlotChannel(int crate, int slot, int channel)
    • setSectorLayerComponent

      public final void setSectorLayerComponent(int sector, int layer, int comp)
    • generateHashCode

      public static int generateHashCode(int s, int l, int c)
    • getHashCode

      public int getHashCode()
    • copy

      public void copy(DetectorDescriptor desc)
    • compare

      public boolean compare(DetectorDescriptor desc)
    • getName

      public static String getName(String base, int... ids)
    • getTitle

      public static String getTitle(String base, int... ids)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(DetectorDescriptor o)
      Specified by:
      compareTo in interface Comparable<DetectorDescriptor>