Package org.jlab.rec.cvt.hit
Class Hit
java.lang.Object
org.jlab.rec.cvt.hit.Hit
- All Implemented Interfaces:
Comparable<Hit>
A hit characterized by layer, sector, wire number, and Edep. The ADC to time
conversion has been done.
- Author:
- ziegler
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoublebooleanintboolean -
Constructor Summary
ConstructorsConstructorDescriptionHit(DetectorType detector, BMTType type, int sector, int layer, Strip strip) -
Method Summary
Modifier and TypeMethodDescriptionintintintdoubleintgetId()intgetLayer()doubleintintdoubleintgetStrip()doubleintgetType()booleanvoiddoublevoidsetAssociatedClusterID(int _AssociatedClusterID) voidsetAssociatedTrackID(int associatedTrackID) voidsetDetector(DetectorType _detector) voidsetdocaToTrk(double _docaToTrk) voidsetdocaToTrk(Point3D traj) voidsetId(int _Id) Sets the hit ID.voidsetLayer(int _Layer) Sets the layervoidsetQualityFac(double QF) voidsetSector(int _Sector) Sets the sectorvoidvoidsetstripResolutionAtDoca(double _stripResolutionAtDoca) voidsetTrkgStatus(int trkgStatus) voidtoString()
-
Field Details
-
_QualityFac
public double _QualityFac -
newClustering
public boolean newClustering -
MCstatus
public int MCstatus -
isCorrupted
public boolean isCorrupted
-
-
Constructor Details
-
Hit
-
-
Method Details
-
getDetector
-
setDetector
-
getType
-
setType
-
getSector
public int getSector()- Returns:
- the sector (1...24)
-
setSector
public void setSector(int _Sector) Sets the sector- Parameters:
_Sector-
-
getLayer
public int getLayer()- Returns:
- the layer (1...8)
-
setLayer
public void setLayer(int _Layer) Sets the layer- Parameters:
_Layer-
-
getStrip
-
setStrip
-
getId
public int getId()- Returns:
- the ID
-
setId
public void setId(int _Id) Sets the hit ID. The ID corresponds to the hit index in the EvIO column.- Parameters:
_Id-
-
getRegion
public int getRegion()- Returns:
- region (1...4)
-
getRegionSlayer
public int getRegionSlayer()- Returns:
- superlayer 1 or 2 in region (1...4)
-
compareTo
- Specified by:
compareToin interfaceComparable<Hit>- Parameters:
arg-- Returns:
- an int used to sort a collection of hits by wire number. Sorting by wire is used in clustering.
-
printInfo
public void printInfo() -
isSameAs
- Parameters:
otherHit-- Returns:
- a boolean comparing 2 hits based on basic descriptors; returns true if the hits are the same
-
getdocaToTrk
public double getdocaToTrk() -
setdocaToTrk
public void setdocaToTrk(double _docaToTrk) -
setdocaToTrk
-
residual
-
getstripResolutionAtDoca
public double getstripResolutionAtDoca() -
setstripResolutionAtDoca
public void setstripResolutionAtDoca(double _stripResolutionAtDoca) -
getTrkgStatus
public int getTrkgStatus()- Returns:
- an integer representative of the stage of the pattern recognition and subsequent KF fit for that hit. -1: no fit; 0: global helical fit; 1: KF fit
-
setTrkgStatus
public void setTrkgStatus(int trkgStatus) - Parameters:
trkgStatus- is an integer representative of the stage of the pattern recognition and subsequent KF fit for that hit. -1: no fit; 0: global helical fit; 1: KF fit
-
getQualityFac
public double getQualityFac() -
setQualityFac
public void setQualityFac(double QF) -
getResidual
public double getResidual()- Returns:
- the hit residual = doca to track
-
getAssociatedClusterID
public int getAssociatedClusterID() -
setAssociatedClusterID
public void setAssociatedClusterID(int _AssociatedClusterID) -
getAssociatedTrackID
public int getAssociatedTrackID() -
setAssociatedTrackID
public void setAssociatedTrackID(int associatedTrackID) -
toString
-