public class ShaperLinearFitAlgorithm extends Object implements ShaperFitAlgorithm, org.freehep.math.minuit.FCNBase
Modifier and Type | Field and Description |
---|---|
(package private) double[] |
amplitudeErrors |
(package private) double[] |
amplitudes |
private int |
channel |
private boolean |
debug |
private int |
firstFittedPulse |
private int |
firstUsedSample |
private boolean |
fitPedestal |
private static Logger |
minuitLoggger |
private int |
nFittedPulses |
private int |
nPulses |
private int |
nUsedSamples |
private double |
pedestal |
private HpsSiSensor |
sensor |
private PulseShape |
shape |
private double[] |
sigma |
private double[] |
y |
Constructor and Description |
---|
ShaperLinearFitAlgorithm(int nPulses) |
Modifier and Type | Method and Description |
---|---|
private double |
doLinFit(double[] times) |
private org.freehep.math.minuit.FunctionMinimum |
doRecursiveFit(double[] samples) |
private double |
evaluateMinimum(org.freehep.math.minuit.FunctionMinimum min) |
Collection<ShapeFitParameters> |
fitShape(org.lcsim.event.RawTrackerHit rth,
PulseShape shape) |
Collection<ShapeFitParameters> |
fitShape(short[] samples) |
boolean |
fitsPedestal() |
double |
getPedestal() |
private org.freehep.math.minuit.FunctionMinimum |
minuitFit(double[] guess_t) |
void |
setDebug(boolean debug) |
void |
setFitPedestal(boolean fitPedestal) |
double |
valueOf(double[] times) |
private final int nPulses
final double[] amplitudes
final double[] amplitudeErrors
private double pedestal
private HpsSiSensor sensor
private int channel
private PulseShape shape
private final double[] sigma
private final double[] y
private int firstUsedSample
private int nUsedSamples
private int firstFittedPulse
private int nFittedPulses
private boolean fitPedestal
private boolean debug
private static final Logger minuitLoggger
public void setDebug(boolean debug)
setDebug
in interface ShaperFitAlgorithm
public void setFitPedestal(boolean fitPedestal)
public boolean fitsPedestal()
public double getPedestal()
public Collection<ShapeFitParameters> fitShape(org.lcsim.event.RawTrackerHit rth, PulseShape shape)
fitShape
in interface ShaperFitAlgorithm
public Collection<ShapeFitParameters> fitShape(short[] samples)
private org.freehep.math.minuit.FunctionMinimum doRecursiveFit(double[] samples)
private double evaluateMinimum(org.freehep.math.minuit.FunctionMinimum min)
private org.freehep.math.minuit.FunctionMinimum minuitFit(double[] guess_t)
private double doLinFit(double[] times)
public double valueOf(double[] times)
valueOf
in interface org.freehep.math.minuit.FCNBase
Copyright © 2019. All rights reserved.