public class ConfirmerExtender extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ConfirmerExtender.Task |
Modifier and Type | Field and Description |
---|---|
private boolean |
_applySectorBinning |
private ISeedTrackerDiagnostics |
_diag |
private HelixFitter |
_fitter |
private HitManager |
_hmanager |
private int |
_maxfit |
private MergeSeedLists |
_merger |
private int |
_nfit |
private List<SeedCandidate> |
_result |
Constructor and Description |
---|
ConfirmerExtender(HitManager hitmanager,
HelixFitter helixfitter)
Constructor for the ConfirmerExtender class.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Confirm(SeedCandidate seed,
SeedStrategy strategy,
double bfield)
Try to confirm a seed using a specified strategy.
|
private void |
doTask(SeedCandidate inputseed,
ConfirmerExtender.Task task,
SeedStrategy strategy,
double bfield)
Perform the confirm or extend step.
|
void |
Extend(SeedCandidate seed,
SeedStrategy strategy,
double bfield,
List<SeedCandidate> foundseeds)
Try to extend a seed using a specified strategy.
|
private SeedCandidate |
findBestCandidate(SeedCandidate trial,
SeedCandidate oldbest,
SeedStrategy strategy)
Check two track candidates and return the best one subject to the merging criteria.
|
int |
getNFit()
Get the number of fit trials for the last confirm/extend.
|
List<SeedCandidate> |
getResult()
Retrieves the result of the confirmation or extension.
|
void |
setApplySectorBinning(boolean applySectorBinning)
Set to enable the sectoring to use the sector bins in checking for consistent hits.
|
void |
setDiagnostics(ISeedTrackerDiagnostics d)
Set the diagnostic class to be used (null for no diagnostics).
|
void |
setMaxFit(int maxfit)
Set the maximum number of fit trials for a given seed to be confirmed/extended.
|
private int _nfit
private int _maxfit
private HitManager _hmanager
private HelixFitter _fitter
private MergeSeedLists _merger
private List<SeedCandidate> _result
private ISeedTrackerDiagnostics _diag
private boolean _applySectorBinning
public ConfirmerExtender(HitManager hitmanager, HelixFitter helixfitter)
hitmanager
- hit manager that provides access to hits sorted by layer / sectorhelixfitter
- helix fitterpublic List<SeedCandidate> getResult()
public void setMaxFit(int maxfit)
maxfit
- maximum number of trialspublic int getNFit()
public void setDiagnostics(ISeedTrackerDiagnostics d)
d
- diagnostic classpublic boolean Confirm(SeedCandidate seed, SeedStrategy strategy, double bfield)
seed
- seed to be confirmedstrategy
- strategy to use for confirming this seedbfield
- magnetic fieldpublic void Extend(SeedCandidate seed, SeedStrategy strategy, double bfield, List<SeedCandidate> foundseeds)
seed
- seed to be extendedstrategy
- strategy to usebfield
- magnetic fieldfoundseeds
- list of track candidates found so farprivate void doTask(SeedCandidate inputseed, ConfirmerExtender.Task task, SeedStrategy strategy, double bfield)
inputseed
- seed to be confirmed/extendedtask
- confirm or extend (enum)strategy
- strategy to usebfield
- magnetic fieldprivate SeedCandidate findBestCandidate(SeedCandidate trial, SeedCandidate oldbest, SeedStrategy strategy)
trial
- new candidate to tryoldbest
- previous best candidate (or null if no best candidate has been found)strategy
- strategy in usepublic void setApplySectorBinning(boolean applySectorBinning)
applySectorBinning
- apply sector binning switchCopyright © 2016 Linear Collider Detector (LCD). All rights reserved.