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/.
Definition at line 30 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 28 of file TOPTemplateFitter.cc.
static void InitializeTemplateFit()
Intializes the template fit using default values.
const TOPRawWaveform m_wf
raw sampled waveforms
static bool s_templateReInitialize
flag showing that the template samples have to be recomputed
const double m_averageRMS
average RMS of waveform samples, no database for this
double m_chisq
chi square value from template fit
const TOPSampleTimes m_sampleTimes
provides timing correction
◆ 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 108 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 165 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 121 of file TOPTemplateFitter.h.
◆ getTemplateParameters()
Returns the template parameters.
- Returns
- template parameters
Definition at line 127 of file TOPTemplateFitter.h.
◆ getTemplateResolution()
| static int getTemplateResolution |
( |
| ) |
|
|
inlinestatic |
Returns the template resolution.
- Returns
- template resolution
Definition at line 139 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 133 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 78 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 122 of file TOPTemplateFitter.cc.
◆ setTemplateParameters()
Sets the template parameters.
- Parameters
-
| params | template Parameters |
Definition at line 39 of file TOPTemplateFitter.cc.
◆ setTemplateResolution()
| void setTemplateResolution |
( |
int |
resolution | ) |
|
|
static |
Set the template resolution.
- Parameters
-
| resolution | template resolution |
Definition at line 52 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 45 of file TOPTemplateFitter.cc.
◆ setUseParabola()
| static void setUseParabola |
( |
bool |
use | ) |
|
|
inlinestatic |
The documentation for this class was generated from the following files: