![]() |
Project
|
#include <CaloRawFitterGS.h>
Inherits o2::phos::CaloRawFitter.
Public Member Functions | |
CaloRawFitterGS () | |
Constructor. | |
~CaloRawFitterGS () final=default | |
Destructor. | |
FitStatus | evaluate (gsl::span< short unsigned int > signal) final |
Evaluation Amplitude and TOF. | |
![]() | |
CaloRawFitter () | |
Constructor. | |
virtual | ~CaloRawFitter ()=default |
Destructor. | |
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. | |
Static Public Attributes | |
static constexpr int | NMAXSAMPLES = 40 |
Protected Member Functions | |
void | init () |
FitStatus | evalFit (gsl::span< short unsigned int > signal) |
![]() | |
FitStatus | evalKLevel (gsl::span< short unsigned int > signal) |
ClassDef (CaloRawFitter, 1) | |
Additional Inherited Members | |
![]() | |
enum | FitStatus { kOK , kNotEvaluated , kEmptyBunch , kOverflow , kSpike , kNoTime , kFitFailed , kBadPedestal , kManyBunches } |
![]() | |
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 CaloRawFitterGS.h.
CaloRawFitterGS::CaloRawFitterGS | ( | ) |
Constructor.
Definition at line 21 of file CaloRawFitterGS.cxx.
|
finaldefault |
Destructor.
|
protected |
Definition at line 80 of file CaloRawFitterGS.cxx.
|
finalvirtual |
Evaluation Amplitude and TOF.
Reimplemented from o2::phos::CaloRawFitter.
Definition at line 50 of file CaloRawFitterGS.cxx.
|
protected |
Definition at line 28 of file CaloRawFitterGS.cxx.
|
staticconstexpr |
maximal expected number of samples per bunch
Definition at line 37 of file CaloRawFitterGS.h.