Project
Loading...
Searching...
No Matches
o2::phos::CaloRawFitterGS Class Reference

#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.
 
- Public Member Functions inherited from o2::phos::CaloRawFitter
 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)
 
- Protected Member Functions inherited from o2::phos::CaloRawFitter
FitStatus evalKLevel (gsl::span< short unsigned int > signal)
 
 ClassDef (CaloRawFitter, 1)
 

Additional Inherited Members

- Public Types inherited from o2::phos::CaloRawFitter
enum  FitStatus {
  kOK , kNotEvaluated , kEmptyBunch , kOverflow ,
  kSpike , kNoTime , kFitFailed , kBadPedestal ,
  kManyBunches
}
 
- Protected Attributes inherited from o2::phos::CaloRawFitter
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
 

Detailed Description

Definition at line 33 of file CaloRawFitterGS.h.

Constructor & Destructor Documentation

◆ CaloRawFitterGS()

CaloRawFitterGS::CaloRawFitterGS ( )

Constructor.

Definition at line 21 of file CaloRawFitterGS.cxx.

◆ ~CaloRawFitterGS()

o2::phos::CaloRawFitterGS::~CaloRawFitterGS ( )
finaldefault

Destructor.

Member Function Documentation

◆ evalFit()

CaloRawFitterGS::FitStatus CaloRawFitterGS::evalFit ( gsl::span< short unsigned int signal)
protected

Definition at line 80 of file CaloRawFitterGS.cxx.

◆ evaluate()

CaloRawFitterGS::FitStatus CaloRawFitterGS::evaluate ( gsl::span< short unsigned int signal)
finalvirtual

Evaluation Amplitude and TOF.

Reimplemented from o2::phos::CaloRawFitter.

Definition at line 50 of file CaloRawFitterGS.cxx.

◆ init()

void CaloRawFitterGS::init ( )
protected

Definition at line 28 of file CaloRawFitterGS.cxx.

Member Data Documentation

◆ NMAXSAMPLES

constexpr int o2::phos::CaloRawFitterGS::NMAXSAMPLES = 40
staticconstexpr

maximal expected number of samples per bunch

Definition at line 37 of file CaloRawFitterGS.h.


The documentation for this class was generated from the following files: