Class Hit

java.lang.Object
org.jlab.rec.dc.hit.Hit
All Implemented Interfaces:
Comparable<Hit>
Direct Known Subclasses:
FittedHit

public class Hit extends Object implements Comparable<Hit>
A DC hit characterized by superlayer, layer, sector, wire number, and time. The TDC to time conversion has been done.
Author:
ziegler
  • Field Details Link icon

    • NNTrkId Link icon

      public int NNTrkId
    • NNClusId Link icon

      public int NNClusId
    • NNTrkP Link icon

      public double NNTrkP
    • NNTrkTheta Link icon

      public double NNTrkTheta
    • NNTrkPhi Link icon

      public double NNTrkPhi
  • Constructor Details Link icon

    • Hit Link icon

      public Hit(int sector, int superlayer, int layer, int wire, int TDC, int jitter, int Id)
      Parameters:
      sector - (1...6)
      superlayer - (1...6)
      layer - (1...6)
      wire - (1...112)
      TDC - TDC
      Id -
  • Method Details Link icon

    • get_IndexTDC Link icon

      public int get_IndexTDC()
      Returns:
      index in DC::TDC bank
    • set_IndexTDC Link icon

      public void set_IndexTDC(int index)
      Parameters:
      index - in DC::TDC bank
    • get_Sector Link icon

      public int get_Sector()
      Returns:
      the sector (1...6)
    • set_Sector Link icon

      public void set_Sector(int _Sector)
      Sets the sector
      Parameters:
      _Sector -
    • get_Superlayer Link icon

      public int get_Superlayer()
      Returns:
      the superlayer (1...6)
    • set_Superlayer Link icon

      public void set_Superlayer(int _Superlayer)
      Sets the superlayer
      Parameters:
      _Superlayer -
    • get_Layer Link icon

      public int get_Layer()
      Returns:
      the layer (1...6)
    • set_Layer Link icon

      public void set_Layer(int _Layer)
      Sets the layer
      Parameters:
      _Layer -
    • get_Wire Link icon

      public int get_Wire()
      Returns:
      the wire number (1...112)
    • set_Wire Link icon

      public void set_Wire(int _Wire)
      Sets the wire number
      Parameters:
      _Wire -
    • get_TDC Link icon

      public int get_TDC()
      Returns:
      the ID
    • set_TDC Link icon

      public void set_TDC(int TDC)
      Sets the hit ID. The ID corresponds to the hit index in the EvIO column.
      Parameters:
      TDC -
    • getJitter Link icon

      public int getJitter()
    • get_Id Link icon

      public int get_Id()
      Returns:
      the ID
    • set_Id Link icon

      public void set_Id(int _Id)
      Sets the hit ID. The ID corresponds to the hit index in the EvIO column.
      Parameters:
      _Id -
    • get_Region Link icon

      public int get_Region()
      Returns:
      region (1...3)
    • get_RegionSlayer Link icon

      public int get_RegionSlayer()
      Returns:
      superlayer 1 or 2 in region (1...3)
    • compareTo Link icon

      public int compareTo(Hit arg)
      Specified by:
      compareTo in interface Comparable<Hit>
      Parameters:
      arg -
      Returns:
      an int used to sort a collection of hits by wire number. Sorting by wire is used in clustering.
    • calcLocY Link icon

      public double calcLocY(int layer, int wire)
      Parameters:
      layer - layer number from 1 to 6
      wire - wire number from 1 to 112 calculates the center of the cell as a function of wire number in the local superlayer coordinate system.
      Returns:
      y
    • get_CellSize Link icon

      public double get_CellSize()
      Returns:
      the cell size in a given superlayer
    • set_CellSize Link icon

      public void set_CellSize(double cellSize)
    • calc_CellSize Link icon

      public void calc_CellSize(DCGeant4Factory DcDetector)
    • get_DocaErr Link icon

      public double get_DocaErr()
      Returns:
      error on the time in ns (4ns time window used by default in reconstructing simulated data)
    • set_DocaErr Link icon

      public void set_DocaErr(double _docaErr)
      Sets the doca uncertainty
      Parameters:
      _docaErr -
    • printInfo Link icon

      public String printInfo()
      Returns:
      print statement with hit information