Package org.jlab.rec.ahdc.Hit
Class Hit
java.lang.Object
org.jlab.rec.ahdc.Hit.Hit
- All Implemented Interfaces:
Comparable<Hit>,KFHit
-
Constructor Summary
ConstructorsConstructorDescriptionHit(int _Id, int _Super_layer, int _Layer, int _Wire, double _Doca, double _ADC, double _Time) -
Method Summary
Modifier and TypeMethodDescriptionintdoubledoublegetADC()Get calibrated ADCdoublegetDoca()intgetId()org.apache.commons.math3.linear.RealVectorgetInnovationVector(org.apache.commons.math3.linear.RealVector x) Compute the innovation by subtractingKFHit.getMeasurementVector()andKFHit.getProjectionVector(RealVector)intgetLine()org.apache.commons.math3.linear.RealMatrixReturn the measurement noise matrix for this this KFHitorg.apache.commons.math3.linear.RealVectorReturn the measurement encoded in this KFHitintdoublegetPhi()org.apache.commons.math3.linear.RealMatrixgetProjectionMatrix(org.apache.commons.math3.linear.RealVector x) Compute the Jacobian matrix of theKFHit.getProjectionVector(RealVector)with respect of the components of the state vectororg.apache.commons.math3.linear.RealVectorgetProjectionVector(org.apache.commons.math3.linear.RealVector x) Compute the measurement for a given state vectordoubledoubleGet raw ADCdoubledoubleintdoublegetTime()doublegetToT()Get calibrated ToTintintdoublegetX()doublegetY()booleanstatic voidvoidsetADC(double _adc) Set calibrated ADCvoidsetResidual(double resid) voidsetResidual_LR(double resid) voidsetToT(double _tot) Set calibrated ToTvoidsetTrackId(int _trackId) voidsetUse(boolean use) voidsetWirePosition(AlertDCDetector factory) toString()
-
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, matchestime_ADC- raw ADC_Time- calibrated time
-
-
Method Details
-
setWirePosition
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<Hit>
-
getId
public int getId() -
getSuperLayerId
public int getSuperLayerId() -
getLayerId
public int getLayerId() -
getWireId
public int getWireId() -
getDoca
public double getDoca() -
getLine
-
getRadius
public double getRadius() -
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:KFHitReturn the measurement encoded in this KFHit- Specified by:
getMeasurementVectorin interfaceKFHit
-
getMeasurementNoiseMatrix
public org.apache.commons.math3.linear.RealMatrix getMeasurementNoiseMatrix()Description copied from interface:KFHitReturn the measurement noise matrix for this this KFHit- Specified by:
getMeasurementNoiseMatrixin interfaceKFHit
-
getProjectionVector
public org.apache.commons.math3.linear.RealVector getProjectionVector(org.apache.commons.math3.linear.RealVector x) Description copied from interface:KFHitCompute the measurement for a given state vector- Specified by:
getProjectionVectorin interfaceKFHit
-
getInnovationVector
public org.apache.commons.math3.linear.RealVector getInnovationVector(org.apache.commons.math3.linear.RealVector x) Description copied from interface:KFHitCompute the innovation by subtractingKFHit.getMeasurementVector()andKFHit.getProjectionVector(RealVector)- Specified by:
getInnovationVectorin interfaceKFHit- 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:KFHitCompute the Jacobian matrix of theKFHit.getProjectionVector(RealVector)with respect of the components of the state vector- Specified by:
getProjectionMatrixin interfaceKFHit
-
distance
-
main
-