Class Hit

java.lang.Object
org.jlab.rec.ahdc.Hit.Hit
All Implemented Interfaces:
Comparable<Hit>, KFHit

public class Hit extends Object implements Comparable<Hit>, KFHit
  • Constructor Details

    • Hit

      public Hit(int _Id, int _Super_layer, int _Layer, int _Wire, double _Doca, double _ADC, double _Time)
      Parameters:
      _Id - is AHDC::adc row id + 1
      _Super_layer - super layer id
      _Layer - layer id
      _Wire - wire id
      _Doca - distance from the timing information using the time2distance, matches time
      _ADC - raw ADC
      _Time - calibrated time
  • Method Details

    • setWirePosition

      public void setWirePosition(AlertDCDetector factory)
    • toString

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

      public int compareTo(Hit arg0)
      Specified by:
      compareTo in interface Comparable<Hit>
    • getId

      public int getId()
    • getSuperLayerId

      public int getSuperLayerId()
    • getLayerId

      public int getLayerId()
    • getWireId

      public int getWireId()
    • getDoca

      public double getDoca()
    • getLine

      public Line3D getLine()
    • getRadius

      public double getRadius()
      Specified by:
      getRadius in interface KFHit
    • getNbOfWires

      public int getNbOfWires()
    • is_NoUsed

      public boolean is_NoUsed()
    • setUse

      public void setUse(boolean use)
    • getX

      public double getX()
    • getY

      public double getY()
    • getPhi

      public double getPhi()
    • getADC

      public double getADC()
      Get calibrated ADC
    • getResidual

      public double getResidual()
    • setResidual

      public void setResidual(double resid)
    • getResidual_LR

      public double getResidual_LR()
    • setResidual_LR

      public void setResidual_LR(double resid)
    • setToT

      public void setToT(double _tot)
      Set calibrated ToT
    • getToT

      public double getToT()
      Get calibrated ToT
    • setADC

      public void setADC(double _adc)
      Set calibrated ADC
    • getRawADC

      public double getRawADC()
      Get raw ADC
    • getTime

      public double getTime()
    • getTrackId

      public int getTrackId()
    • setTrackId

      public void setTrackId(int _trackId)
    • getMeasurementVector

      public org.apache.commons.math3.linear.RealVector getMeasurementVector()
      Description copied from interface: KFHit
      Return the measurement encoded in this KFHit
      Specified by:
      getMeasurementVector in interface KFHit
    • getMeasurementNoiseMatrix

      public org.apache.commons.math3.linear.RealMatrix getMeasurementNoiseMatrix()
      Description copied from interface: KFHit
      Return the measurement noise matrix for this this KFHit
      Specified by:
      getMeasurementNoiseMatrix in interface KFHit
    • getProjectionVector

      public org.apache.commons.math3.linear.RealVector getProjectionVector(org.apache.commons.math3.linear.RealVector x)
      Description copied from interface: KFHit
      Compute the measurement for a given state vector
      Specified by:
      getProjectionVector in interface KFHit
    • getInnovationVector

      public org.apache.commons.math3.linear.RealVector getInnovationVector(org.apache.commons.math3.linear.RealVector x)
      Description copied from interface: KFHit
      Specified by:
      getInnovationVector in interface KFHit
      Parameters:
      x - current state estimation
      Returns:
      return the innovation vector
    • getProjectionMatrix

      public org.apache.commons.math3.linear.RealMatrix getProjectionMatrix(org.apache.commons.math3.linear.RealVector x)
      Description copied from interface: KFHit
      Compute the Jacobian matrix of the KFHit.getProjectionVector(RealVector) with respect of the components of the state vector
      Specified by:
      getProjectionMatrix in interface KFHit
    • distance

      public double distance(Point3D point3D)
      Specified by:
      distance in interface KFHit
    • main

      public static void main(String[] args)