Class to perform template fit on TOP waveform data Minimzation method is described here http://wwwa1.kph.uni-mainz.de/Vorlesungen/SS11/Statistik/.
More...
#include <TOPTemplateFitter.h>
Class to perform template fit on TOP waveform data Minimzation method is described here http://wwwa1.kph.uni-mainz.de/Vorlesungen/SS11/Statistik/.
- Author
- Tobias Weber
Definition at line 41 of file TOPTemplateFitter.h.
◆ TOPTemplateFitter()
full constructor
- Parameters
-
wf | TOP raw waveform samples |
sampleTimes | database object holding time correction |
averageRMS | average sample RMS |
Definition at line 30 of file TOPTemplateFitter.cc.
◆ CalculateParabolaVertex()
void CalculateParabolaVertex |
( |
const Point & |
p1, |
|
|
const Point & |
p2, |
|
|
const Point & |
p3, |
|
|
Point & |
vertex |
|
) |
| |
|
private |
Calculate vertex coordinates of parabola given three data points.
- Parameters
-
p1 | data point 1 |
p2 | data point 2 |
p3 | data point 3 |
vertex | vertex position |
Definition at line 110 of file TOPTemplateFitter.cc.
◆ ComputeMinimizedParametersAndChisq()
Compute the minimized parameters and chi square value.
- Parameters
-
sums | minimization sums for chisq calculation |
result | minimized parameters |
- Returns
- chi square
Definition at line 167 of file TOPTemplateFitter.cc.
◆ getChisq()
double getChisq |
( |
| ) |
const |
|
inline |
◆ getChisqVector()
const std::vector<double>& getChisqVector |
( |
| ) |
const |
|
inline |
◆ getFitResult()
Returns fitted values with errors.
- Returns
- fitted values with errors
Definition at line 132 of file TOPTemplateFitter.h.
◆ getTemplateParameters()
Returns the template parameters.
- Returns
- template parameters
Definition at line 138 of file TOPTemplateFitter.h.
◆ getTemplateResolution()
static int getTemplateResolution |
( |
| ) |
|
|
inlinestatic |
Returns the template resolution.
- Returns
- template resolution
Definition at line 150 of file TOPTemplateFitter.h.
◆ getTemplateSamples()
static int getTemplateSamples |
( |
| ) |
|
|
inlinestatic |
Returns the total number of template samples.
- Returns
- total number of template samples
Definition at line 144 of file TOPTemplateFitter.h.
◆ getUseParabola()
static bool getUseParabola |
( |
| ) |
|
|
inlinestatic |
◆ performTemplateFit()
void performTemplateFit |
( |
const double |
risingEdgeStart, |
|
|
const double |
fitRange |
|
) |
| |
Prepares data and performs the template fit in sample space.
- Parameters
-
risingEdgeStart | initial guess for rising edge position from CFD |
fitRange | range of template fit |
Definition at line 80 of file TOPTemplateFitter.cc.
◆ PerformTemplateFitMinimize()
void PerformTemplateFitMinimize |
( |
const std::vector< short > & |
samples, |
|
|
const std::vector< short > & |
pedestals, |
|
|
const std::vector< float > & |
timingCorrection, |
|
|
const double |
risingEdgeCFD, |
|
|
const double |
fitRange |
|
) |
| |
|
private |
performs the template fit
- Parameters
-
samples | sample vector |
pedestals | pedestal vector |
timingCorrection | timing correction for samples |
risingEdgeCFD | rising edge from constant fraction discrimination |
fitRange | fit range |
Definition at line 124 of file TOPTemplateFitter.cc.
◆ setTemplateParameters()
Sets the template parameters.
- Parameters
-
params | template Parameters |
Definition at line 41 of file TOPTemplateFitter.cc.
◆ setTemplateResolution()
void setTemplateResolution |
( |
int |
resolution | ) |
|
|
static |
Set the template resolution.
- Parameters
-
resolution | template resolution |
Definition at line 54 of file TOPTemplateFitter.cc.
◆ setTemplateSamples()
void setTemplateSamples |
( |
int |
nSamples | ) |
|
|
static |
Set the total number of template samples.
- Parameters
-
nSamples | total number of template samples |
Definition at line 47 of file TOPTemplateFitter.cc.
◆ setUseParabola()
static void setUseParabola |
( |
bool |
use | ) |
|
|
inlinestatic |
The documentation for this class was generated from the following files: