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

    • NNTrkId

      public int NNTrkId
    • NNClusId

      public int NNClusId
    • NNTrkP

      public double NNTrkP
    • NNTrkTheta

      public double NNTrkTheta
    • NNTrkPhi

      public double NNTrkPhi
  • Constructor Details

    • Hit

      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

    • get_IndexTDC

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

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

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

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

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

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

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

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

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

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

      public int get_TDC()
      Returns:
      the ID
    • set_TDC

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

      public int getJitter()
    • get_Id

      public int get_Id()
      Returns:
      the ID
    • set_Id

      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

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

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

      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

      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

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

      public void set_CellSize(double cellSize)
    • calc_CellSize

      public void calc_CellSize(DCGeant4Factory DcDetector)
    • get_DocaErr

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

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

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