public class AddFitter extends Object
Two methods are provided: one updates an ETrack and its chi-square and the other updates an HTrack.
This base class will always return an error. Subclasses will typically implement the ETrack method which is then invoked by the HTrack method defined here.
Modifier and Type | Field and Description |
---|---|
private double |
_chsq |
Constructor and Description |
---|
AddFitter()
Construct a default instance.
|
Modifier and Type | Method and Description |
---|---|
int |
addHit(HTrack trh,
Hit hit)
Add a hit and fit with the new hit.
|
int |
addHitFit(ETrack tre,
double chisq,
Hit phit)
Refit a track and update its chi-square by adding the specified hit.
|
double |
chisquared()
Return the chi-squared for the fit.
|
String |
genericType()
Return the generic type.
|
void |
setChisquared(double chsq)
Set the chi-squared for the fit.
|
static String |
staticType()
Return String representation of this class' type name.
|
String |
toString()
output stream
|
static String |
typeName()
Return String representation of this class' type name.
|
public static String typeName()
public static String staticType()
public String genericType()
public int addHit(HTrack trh, Hit hit)
trh
- The HTrack to which the hit will be added.hit
- The Hit to add.public void setChisquared(double chsq)
chsq
- The value of chi-square to set for this fit.public double chisquared()
public int addHitFit(ETrack tre, double chisq, Hit phit)
tre
- The ETrack to which the hit will be added.chisq
- The value of chi-square to set for this fit.phit
- The Hit to add.Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.