Package org.jlab.rec.ft.trk
Class FTTRKHit
java.lang.Object
org.jlab.rec.ft.trk.FTTRKHit
- All Implemented Interfaces:
Comparable<FTTRKHit>
- Author:
- devita, filippi
-
Constructor Summary
ConstructorsConstructorDescriptionFTTRKHit
(int sector, int layer, int strip, double Edep, double time, int id) -
Method Summary
Modifier and TypeMethodDescriptionint
compareLayerTo
(FTTRKHit arg0) int
int
int
int
double
get_Edep()
int
get_HalfLayer
(int _Layer) int
get_Id()
int
int
int
int
int
get_StripNumberFromGlobal
(double xGlobal, double yGlobal, int layer) int
get_StripNumberFromLocalY
(double xGlobal, double yLocal, int layer) double
get_Time()
boolean
void
set_ClusterIndex
(int _ClusterIndex) void
set_CrossIndex
(int _CrossIndex) void
set_DGTZIndex
(int _DGTZIndex) void
set_Edep
(double _Edep) Sets the Edepvoid
set_Id
(int _Id) Sets the hit ID.void
set_Layer
(int _Layer) Sets the layervoid
set_Sector
(int _Sector) Sets the sectorvoid
set_Strip
(int _Strip) Sets the wire numbervoid
set_StripSegment
(Line3D _StripSegment) void
set_Time
(double _Time)
-
Constructor Details
-
FTTRKHit
public FTTRKHit(int sector, int layer, int strip, double Edep, double time, int id) - Parameters:
sector
-layer
-strip
-Edep
- (for gemc output without digitization)
-
-
Method Details
-
get_Sector
public int get_Sector()- Returns:
- the sector (1)
-
set_Sector
public void set_Sector(int _Sector) Sets the sector- Parameters:
_Sector
-
-
get_Layer
public int get_Layer()- Returns:
- the layer (1-4)
-
set_Layer
public void set_Layer(int _Layer) Sets the layer- Parameters:
_Layer
-
-
get_HalfLayer
public int get_HalfLayer(int _Layer) - Returns:
- the superlayer: 0 for bottom modules 1+3, 1 for top modules 2+4
-
get_Strip
public int get_Strip()- Returns:
- the wire number (1...768)
-
set_Strip
public void set_Strip(int _Strip) Sets the wire number- Parameters:
_Wire
-
-
get_Edep
public double get_Edep()- Returns:
- the Edep in MeV
-
set_Edep
public void set_Edep(double _Edep) Sets the Edep- Parameters:
_Edep
-
-
get_Time
public double get_Time() -
set_Time
public void set_Time(double _Time) -
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-2)
-
get_StripSegment
-
set_StripSegment
-
get_DGTZIndex
public int get_DGTZIndex() -
set_DGTZIndex
public void set_DGTZIndex(int _DGTZIndex) -
get_ClusterIndex
public int get_ClusterIndex() -
set_ClusterIndex
public void set_ClusterIndex(int _ClusterIndex) -
get_CrossIndex
public int get_CrossIndex() -
set_CrossIndex
public void set_CrossIndex(int _CrossIndex) -
get_StripNumberFromLocalY
public int get_StripNumberFromLocalY(double xGlobal, double yLocal, int layer) -
get_StripNumberFromGlobal
public int get_StripNumberFromGlobal(double xGlobal, double yGlobal, int layer) -
compareLayerTo
-
isSameAs
- Parameters:
otherHit
-- Returns:
- a boolean comparing 2 hits based on basic descriptors; returns true if the hits are the same
-
compareTo
- Specified by:
compareTo
in interfaceComparable<FTTRKHit>
- Parameters:
arg0
- the other hit- Returns:
- an int used to sort a collection of hits by wire number. Sorting by wire is used in clustering.
-
printInfo
- Returns:
- print statement with hit information
-