Class DetectorResponse

java.lang.Object
org.jlab.clas.detector.DetectorResponse
Direct Known Subclasses:
CalorimeterResponse, CherenkovResponse, RingCherenkovResponse, ScintillatorResponse, TaggerResponse

public class DetectorResponse extends Object
Author:
gavalian, baltzell
  • Constructor Details Link icon

    • DetectorResponse Link icon

      public DetectorResponse()
    • DetectorResponse Link icon

      public DetectorResponse(int sector, int layer, int component)
    • DetectorResponse Link icon

      public DetectorResponse(DetectorResponse r)
  • Method Details Link icon

    • copy Link icon

      public void copy(DetectorResponse r)
    • setTime Link icon

      public void setTime(double time)
    • setPosition Link icon

      public void setPosition(double x, double y, double z)
    • setMatchPosition Link icon

      public void setMatchPosition(double x, double y, double z)
    • setPath Link icon

      public void setPath(double path)
    • setEnergy Link icon

      public void setEnergy(double energy)
    • setStatus Link icon

      public void setStatus(int status)
    • getTime Link icon

      public double getTime()
    • getEnergy Link icon

      public double getEnergy()
    • getPath Link icon

      public double getPath()
    • getSector Link icon

      public int getSector()
    • getStatus Link icon

      public int getStatus()
    • getPosition Link icon

      public org.jlab.geom.prim.Vector3D getPosition()
    • getMatchedPosition Link icon

      public org.jlab.geom.prim.Vector3D getMatchedPosition()
    • getMatchedDistance Link icon

      public double getMatchedDistance()
    • getDescriptor Link icon

      public org.jlab.detector.base.DetectorDescriptor getDescriptor()
    • getHitIndex Link icon

      public int getHitIndex()
    • setHitIndex Link icon

      public void setHitIndex(int hitIndex)
    • addAssociation Link icon

      public void addAssociation(int asc)
    • getNAssociations Link icon

      public int getNAssociations()
    • getAssociation Link icon

      public int getAssociation(int index)
    • hasAssociation Link icon

      public boolean hasAssociation(int asc)
    • clearAssociations Link icon

      public void clearAssociations()
    • getPindexMask Link icon

      public int getPindexMask()
    • getAssociation Link icon

      public int getAssociation()
    • setAssociation Link icon

      public void setAssociation(int asc)
    • readHipoEvent Link icon

      public static List<DetectorResponse> readHipoEvent(org.jlab.io.base.DataEvent event, String bankName, org.jlab.detector.base.DetectorType type)
      reads DetectorResponse List from DataEvent class. it has to contain branches: sector and layer (type BYTE), x,y,z (type FLOAT) energy,time (type FLOAT)
      Parameters:
      event -
      bankName -
      type -
      Returns:
    • readHipoEvent Link icon

      public static List<DetectorResponse> readHipoEvent(org.jlab.io.base.DataEvent event, String bankName, org.jlab.detector.base.DetectorType type, double minEnergy)
      Reads a HIPO event, constructs list of detector responses then returns only entries with energy above given threshold.
      Parameters:
      event -
      bankName -
      type -
      minEnergy -
      Returns:
    • getListByEnergy Link icon

      public static List<DetectorResponse> getListByEnergy(List<DetectorResponse> responses, double minEnergy)
      Returns a list of detectorResponses where all entries have energy above given threshold.
      Parameters:
      responses - list of detector responses.
      minEnergy - minimum energy accepted
      Returns:
    • getListBySector Link icon

      public static List<DetectorResponse> getListBySector(List<DetectorResponse> list, org.jlab.detector.base.DetectorType type, int sector)
    • getListByLayer Link icon

      public static List<DetectorResponse> getListByLayer(List<DetectorResponse> list, org.jlab.detector.base.DetectorType type, int layer)
    • getListBySectorLayer Link icon

      public static List<DetectorResponse> getListBySectorLayer(List<DetectorResponse> list, org.jlab.detector.base.DetectorType type, int sector, int layer)
    • getSector Link icon

      public static int getSector(double phi)
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object