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 TypeFieldDescriptionintdoubleintdouble -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd_Clusters(List<Cluster> clusters) voidadd_Crosses(List<Cross> crosses) booleanbetterThan(Seed o) Compare this track quality with the given track based on NDF and Chi2intbooleanfit(int fitIter, double xb, double yb, double bfield) static voidflagMCSeeds(List<Seed> seeds, int totTruthHits) doublegetChi2()doubledoublegetDoca()getHelix()intgetId()getKey()doubleintgetNDF()getOverlapRemovedSeeds(List<Seed> seeds) getOverlapRemovedSeeds1Pass(List<Seed> seeds) doublegetPhi()doublegetRho()intbooleanisGood()Check if track passes basic quality cutsbooleanbooleanCheck track overlaps with the given track an overlaps is detected if the tracks share at least two crossesstatic voidremoveOverlappingSeeds(List<Seed> seeds) voidsetChi2(double _chi2) voidsetCircleFitChi2PerNDF(double _circleFitChi2PerNDF) final voidsetCrosses(List<Cross> crosses) final voidsetDoca(double doca) final voidvoidsetId(int id) voidvoidsetLineFitChi2PerNDF(double _lineFitChi2PerNDF) voidsetNDF(int ndf) voidsetOverlappingSeed(List<Seed> _overlappingSeed) static voidsetOverlaps(List<Seed> seeds) final voidsetPhi(double phi) final voidsetRho(double rho) voidsetStatus(int trkStatus) toString()voidupdate_Crosses(double xb, double yb) Updates the crosses positions based on trajectories or helixvoidupdate_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:
compareToin 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
-