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 TypeFieldDescriptiondouble
boolean
int
boolean
-
Constructor Summary
ConstructorsConstructorDescriptionHit
(DetectorType detector, BMTType type, int sector, int layer, Strip strip) -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
double
int
getId()
int
getLayer()
double
int
int
double
int
getStrip()
double
int
getType()
boolean
void
double
void
setAssociatedClusterID
(int _AssociatedClusterID) void
setAssociatedTrackID
(int associatedTrackID) void
setDetector
(DetectorType _detector) void
setdocaToTrk
(double _docaToTrk) void
setdocaToTrk
(Point3D traj) void
setId
(int _Id) Sets the hit ID.void
setLayer
(int _Layer) Sets the layervoid
setQualityFac
(double QF) void
setSector
(int _Sector) Sets the sectorvoid
void
setstripResolutionAtDoca
(double _stripResolutionAtDoca) void
setTrkgStatus
(int trkgStatus) void
toString()
-
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:
compareTo
in 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
-