Package org.jlab.rec.ft.trk
Class FTTRKCross
java.lang.Object
org.jlab.rec.ft.trk.FTTRKCross
- All Implemented Interfaces:
Comparable<FTTRKCross>
The crosses are objects used to find tracks and are characterized by a 3-D point and a direction unit vector.
- Author:
- ziegler, devita
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(FTTRKCross arg) Sorts crosses by azimuth angle valuesvoid
get_Dir()
float
int
get_Id()
int
int
float
get_Time()
int
int
static long
void
void
set_Cluster1
(FTTRKCluster seg1) Set the first cluster (corresponding to the first layer in a region)void
set_Cluster2
(FTTRKCluster seg2) Set the second Cluster (corresponding to the second layer in a region)void
Sets the cross parameters: the position and direction unit vectorvoid
Sets the cross unit direction vectorvoid
set_DirErr
(Vector3D dirErr) Sets the cross unit direction vectorvoid
set_Energy
(float energy) void
set_Id
(int id) Sets the cross IDvoid
Sets the cross 3-D pointvoid
set_PointErr
(Point3D pointErr) Sets a 3-dimensional error on the 3-D pointvoid
set_Region
(int region) Sets the regionvoid
set_Sector
(int sector) Sets the sectorvoid
set_Time
(float time) void
set_trkId
(int trkid)
-
Constructor Details
-
FTTRKCross
public FTTRKCross(int sector, int region, int rid) - Parameters:
sector
- the sector (1)region
- the region (1-2)rid
- the cross ID (if there are only 2 crosses in the event, the ID corresponds to the region index)
-
-
Method Details
-
get_Sector
public int get_Sector()- Returns:
- the sector of the cross
-
set_Sector
public void set_Sector(int sector) Sets the sector- Parameters:
_Sector
- the sector of the cross
-
get_Region
public int get_Region()- Returns:
- the region of the cross
-
set_Region
public void set_Region(int region) Sets the region- Parameters:
_Region
- the region of the cross
-
get_Id
public int get_Id()- Returns:
- the id of the cross
-
set_Id
public void set_Id(int id) Sets the cross ID- Parameters:
_Id
- the id of the cross
-
get_trkId
public int get_trkId() -
set_trkId
public void set_trkId(int trkid) -
get_Point
- Returns:
- a 3-D point characterizing the position of the cross in the tilted coordinate system.
-
set_Point
Sets the cross 3-D point- Parameters:
_Point
- a 3-D point characterizing the position of the cross in the tilted coordinate system.
-
get_PointErr
- Returns:
- a 3-dimensional error on the 3-D point characterizing the position of the cross in the tilted coordinate system.
-
set_PointErr
Sets a 3-dimensional error on the 3-D point- Parameters:
_PointErr
- a 3-dimensional error on the 3-D point characterizing the position of the cross in the tilted coordinate system.
-
get_Dir
- Returns:
- the cross unit direction vector
-
set_Dir
Sets the cross unit direction vector- Parameters:
_Dir
- the cross unit direction vector
-
get_DirErr
- Returns:
- the cross unit direction vector
-
set_DirErr
Sets the cross unit direction vector- Parameters:
_DirErr
- the cross unit direction vector
-
getSerialversionuid
public static long getSerialversionuid()- Returns:
- serialVersionUID
-
set_Energy
public void set_Energy(float energy) -
set_Time
public void set_Time(float time) -
get_Energy
public float get_Energy() -
get_Time
public float get_Time() -
compareTo
Sorts crosses by azimuth angle values- Specified by:
compareTo
in interfaceComparable<FTTRKCross>
-
set_Cluster1
Set the first cluster (corresponding to the first layer in a region)- Parameters:
seg1
- the Cluster (in the first layer) which is used to make a cross
-
set_Cluster2
Set the second Cluster (corresponding to the second layer in a region)- Parameters:
seg2
- the Cluster (in the second layer) which is used to make a cross
-
get_Cluster1
- Returns:
- he Cluster (in the first layer) which is used to make a cross
-
get_Cluster2
- Returns:
- the Cluster (in the second layer) which is used to make a cross
-
getDetector
public int getDetector() -
set_CrossParams
public void set_CrossParams()Sets the cross parameters: the position and direction unit vector -
evaluate_EnergyAndTime
public void evaluate_EnergyAndTime() -
set_AssociatedElementsIDs
public void set_AssociatedElementsIDs() -
printInfo
- Returns:
- the track info.
-