Package org.jlab.rec.cvt.track
Class Seed
java.lang.Object
org.jlab.rec.cvt.track.Seed
- All Implemented Interfaces:
Comparable<Seed>
- Author:
- ziegler
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionint
double
int
double
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add_Clusters
(List<Cluster> clusters) void
add_Crosses
(List<Cross> crosses) boolean
betterThan
(Seed o) Compare this track quality with the given track based on NDF and Chi2int
boolean
fit
(int fitIter, double xb, double yb, double bfield) static void
flagMCSeeds
(List<Seed> seeds, int totTruthHits) double
getChi2()
double
double
getDoca()
getHelix()
int
getId()
getKey()
double
int
getNDF()
getOverlapRemovedSeeds
(List<Seed> seeds) getOverlapRemovedSeeds1Pass
(List<Seed> seeds) double
getPhi()
double
getRho()
int
boolean
isGood()
Check if track passes basic quality cutsboolean
boolean
Check track overlaps with the given track an overlaps is detected if the tracks share at least two crossesstatic void
removeOverlappingSeeds
(List<Seed> seeds) void
setChi2
(double _chi2) void
setCircleFitChi2PerNDF
(double _circleFitChi2PerNDF) final void
setCrosses
(List<Cross> crosses) final void
setDoca
(double doca) final void
void
setId
(int id) void
void
setLineFitChi2PerNDF
(double _lineFitChi2PerNDF) void
setNDF
(int ndf) void
setOverlappingSeed
(List<Seed> _overlappingSeed) static void
setOverlaps
(List<Seed> seeds) final void
setPhi
(double phi) final void
setRho
(double rho) void
setStatus
(int trkStatus) toString()
void
update_Crosses
(double xb, double yb) Updates the crosses positions based on trajectories or helixvoid
update_Crosses
(List<Cross> crosses, double xb, double yb)
-
Field Details
-
percentTruthMatch
public double percentTruthMatch -
totpercentTruthMatch
public double totpercentTruthMatch -
FirstPassIdx
public int FirstPassIdx -
sortingMethod
public int sortingMethod
-
-
Constructor Details
-
Seed
public Seed() -
Seed
-
Seed
-
Seed
-
-
Method Details
-
getKey
- Returns:
- the _key
-
setKey
- Parameters:
_key
- the _key to set
-
getOverlappingSeeds
- Returns:
- the _overlappingSeed
-
setOverlappingSeed
- Parameters:
_overlappingSeed
- the _overlappingSeed to set
-
getHelix
-
setHelix
-
setId
public void setId(int id) -
setStatus
public void setStatus(int trkStatus) -
setDoca
public final void setDoca(double doca) -
setRho
public final void setRho(double rho) -
setPhi
public final void setPhi(double phi) -
getId
public int getId() -
getStatus
public int getStatus() -
getDoca
public double getDoca() -
getRho
public double getRho() -
getPhi
public double getPhi() -
getClusters
-
add_Clusters
-
add_Crosses
-
getCrosses
-
setCrosses
-
getCircleFitChi2PerNDF
public double getCircleFitChi2PerNDF() -
setCircleFitChi2PerNDF
public void setCircleFitChi2PerNDF(double _circleFitChi2PerNDF) -
getLineFitChi2PerNDF
public double getLineFitChi2PerNDF() -
setLineFitChi2PerNDF
public void setLineFitChi2PerNDF(double _lineFitChi2PerNDF) -
getNDF
public int getNDF() -
setNDF
public void setNDF(int ndf) -
getChi2
public double getChi2() -
setChi2
public void setChi2(double _chi2) -
getIntIdentifier
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Seed>
-
fit
public boolean fit(int fitIter, double xb, double yb, double bfield) -
update_Crosses
public void update_Crosses(double xb, double yb) Updates the crosses positions based on trajectories or helix -
update_Crosses
-
isGood
public boolean isGood()Check if track passes basic quality cuts- Returns:
-
betterThan
Compare this track quality with the given track based on NDF and Chi2- Parameters:
o
- the other track- Returns:
- true if this track quality is better than the given track
-
overlapWithUsingCrosses
Check track overlaps with the given track an overlaps is detected if the tracks share at least two crosses- Parameters:
o
- the other track- Returns:
- true if this track overlaps with the given track, false otherwise
-
overlapWithUsingClusters
-
flagMCSeeds
-
removeOverlappingSeeds
-
getOverlapRemovedSeeds
-
setOverlaps
-
getOverlapRemovedSeeds1Pass
-
toString
-