![]() |
Project
|
#include <CaloRawFitter.h>
Inherited by o2::phos::CaloRawFitterGS.
Public Types | |
| enum | FitStatus { kOK , kNotEvaluated , kEmptyBunch , kOverflow , kSpike , kNoTime , kFitFailed , kBadPedestal , kManyBunches } |
Public Member Functions | |
| CaloRawFitter () | |
| Constructor. | |
| virtual | ~CaloRawFitter ()=default |
| Destructor. | |
| virtual FitStatus | evaluate (gsl::span< short unsigned int > signal) |
| Evaluation Amplitude and TOF return status -1: not evaluated/empty bunch; 0: OK; 1: overflow; 4: single spikes 3: too large RMS;. | |
| void | setLowGain (bool isLow=false) |
| Set HighGain/LowGain channel to performe or not fit of saturated samples. | |
| void | setPedSubtract (bool toSubtruct=false) |
| estimate and subtract pedestals from pre-samples | |
| float | getAmp () const |
| amplitude in last fitted sample | |
| float | getChi2 () const |
| Chi2/NDF of last performed fit. | |
| float | getTime () const |
| time in last fitted sample | |
| bool | isOverflow () const |
| is last fitted sample has overflow | |
| void | forseFitting (bool toRunFit=true) |
| Forse perform fitting Make fit for any sample, not only saturated LowGain samples as by default. | |
| void | setPedestal () |
| Set analysis of pedestal run Analyze pedestal run, i.e. calculate mean and RMS of pedestals instead of Amp and Time. | |
Protected Member Functions | |
| FitStatus | evalKLevel (gsl::span< short unsigned int > signal) |
| ClassDef (CaloRawFitter, 1) | |
Protected Attributes | |
| bool | makeFit = false |
| run (slow) fit with Gamma2 or use fast evaluation with k-level | |
| bool | mLowGain = false |
| is current bunch from LowGain channel | |
| bool | mPedSubtract = false |
| should one evaluate and subtract pedestals | |
| bool | mPedestalRun = false |
| analyze as pedestal run | |
| bool | mOverflow |
| is last sample saturated | |
| FitStatus | mStatus = kNotEvaluated |
| status of last evaluated sample: -1: not yet evaluated; 0: OK; 1: overflow; 2: too large RMS; 3: single spikes | |
| short | mMaxSample = 0 |
| maximal sample | |
| float | mAmp |
| amplitude of last processed sample | |
| float | mTime = 0 |
| time of last processed sample | |
| float | mChi2 = 1e10 |
| chi2 calculated in last fit | |
| short | mSpikeThreshold |
| short | mBaseLine |
| short | mPreSamples |
Definition at line 33 of file CaloRawFitter.h.
| Enumerator | |
|---|---|
| kOK | |
| kNotEvaluated | |
| kEmptyBunch | |
| kOverflow | |
| kSpike | |
| kNoTime | |
| kFitFailed | |
| kBadPedestal | |
| kManyBunches | |
Definition at line 37 of file CaloRawFitter.h.
| CaloRawFitter::CaloRawFitter | ( | ) |
Constructor.
Definition at line 23 of file CaloRawFitter.cxx.
|
virtualdefault |
Destructor.
|
protected |
|
protected |
Definition at line 61 of file CaloRawFitter.cxx.
|
virtual |
Evaluation Amplitude and TOF return status -1: not evaluated/empty bunch; 0: OK; 1: overflow; 4: single spikes 3: too large RMS;.
Reimplemented in o2::phos::CaloRawFitterGS.
Definition at line 31 of file CaloRawFitter.cxx.
Forse perform fitting Make fit for any sample, not only saturated LowGain samples as by default.
Definition at line 82 of file CaloRawFitter.h.
|
inline |
amplitude in last fitted sample
Definition at line 69 of file CaloRawFitter.h.
|
inline |
Chi2/NDF of last performed fit.
Definition at line 72 of file CaloRawFitter.h.
|
inline |
time in last fitted sample
Definition at line 75 of file CaloRawFitter.h.
|
inline |
is last fitted sample has overflow
Definition at line 78 of file CaloRawFitter.h.
Set HighGain/LowGain channel to performe or not fit of saturated samples.
Definition at line 63 of file CaloRawFitter.h.
|
inline |
Set analysis of pedestal run Analyze pedestal run, i.e. calculate mean and RMS of pedestals instead of Amp and Time.
Definition at line 86 of file CaloRawFitter.h.
estimate and subtract pedestals from pre-samples
Definition at line 66 of file CaloRawFitter.h.
run (slow) fit with Gamma2 or use fast evaluation with k-level
Definition at line 92 of file CaloRawFitter.h.
|
protected |
amplitude of last processed sample
Definition at line 99 of file CaloRawFitter.h.
|
protected |
Definition at line 103 of file CaloRawFitter.h.
|
protected |
chi2 calculated in last fit
Definition at line 101 of file CaloRawFitter.h.
is current bunch from LowGain channel
Definition at line 93 of file CaloRawFitter.h.
|
protected |
maximal sample
Definition at line 98 of file CaloRawFitter.h.
|
protected |
is last sample saturated
Definition at line 96 of file CaloRawFitter.h.
analyze as pedestal run
Definition at line 95 of file CaloRawFitter.h.
should one evaluate and subtract pedestals
Definition at line 94 of file CaloRawFitter.h.
|
protected |
Definition at line 104 of file CaloRawFitter.h.
|
protected |
Definition at line 102 of file CaloRawFitter.h.
|
protected |
status of last evaluated sample: -1: not yet evaluated; 0: OK; 1: overflow; 2: too large RMS; 3: single spikes
Definition at line 97 of file CaloRawFitter.h.
|
protected |
time of last processed sample
Definition at line 100 of file CaloRawFitter.h.