PAASS
Software suite to Acquire and Analyze Data from Pixie16
GslFitter Class Reference

#include <GslFitter.hpp>

Inheritance diagram for GslFitter:
Collaboration diagram for GslFitter:

Data Structures

struct  FitData
 Structure necessary for the GSL fitting routines. More...
 

Public Member Functions

 GslFitter ()
 Default Constructor. More...
 
 ~GslFitter ()
 Default Destructor. More...
 
double GetAmplitude (void)
 
double GetChiSq (void)
 
double GetChiSqPerDof (void)
 
double CalculatePhase (const std::vector< double > &data, const std::pair< double, double > &pars, const std::pair< unsigned int, double > &max, const std::pair< double, double > baseline)
 
void SetIsFastSiPm (const bool &a)
 
- Public Member Functions inherited from TimingDriver
 TimingDriver ()
 Default Constructor. More...
 
virtual ~TimingDriver ()
 Default destructor. More...
 
virtual std::vector< double > GetResults (void)
 
virtual double CalculatePhase (const std::vector< unsigned int > &data, const std::pair< double, double > &pars, const std::pair< unsigned int, double > &max, const std::pair< double, double > baseline)
 
void SetQdc (const double &a)
 

Private Attributes

bool isFastSiPm_
 
double amp_
 
double chi_
 
double dof_
 

Additional Inherited Members

- Protected Attributes inherited from TimingDriver
std::vector< double > results_
 Vector containing results. More...
 
double qdc_
 qdc of the waveform being fitted More...
 

Detailed Description

Definition at line 18 of file GslFitter.hpp.

Constructor & Destructor Documentation

§ GslFitter()

GslFitter::GslFitter ( )
inline

Default Constructor.

Definition at line 21 of file GslFitter.hpp.

§ ~GslFitter()

GslFitter::~GslFitter ( )
inline

Default Destructor.

Definition at line 24 of file GslFitter.hpp.

Member Function Documentation

§ CalculatePhase()

double GslFitter::CalculatePhase ( const std::vector< double > &  data,
const std::pair< double, double > &  pars,
const std::pair< unsigned int, double > &  max,
const std::pair< double, double >  baseline 
)
virtual

The ever important phase calculation

Parameters
[in]dataThe baseline subtracted data for the fitting
[in]parsThe parameters for the fit
[in]max: Information about the maximum position and value
[in]baseline: The average and standard deviation of the baseline

Reimplemented from TimingDriver.

Definition at line 50 of file Gsl1Fitter.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

§ GetAmplitude()

double GslFitter::GetAmplitude ( void  )
inline
Returns
the amplitude from the GSL fit

Definition at line 27 of file GslFitter.hpp.

§ GetChiSq()

double GslFitter::GetChiSq ( void  )
inline
Returns
the chi^2 from the GSL fit

Definition at line 30 of file GslFitter.hpp.

Here is the caller graph for this function:

§ GetChiSqPerDof()

double GslFitter::GetChiSqPerDof ( void  )
inline
Returns
the chi^2dof from the GSL fit

Definition at line 33 of file GslFitter.hpp.

Here is the call graph for this function:

§ SetIsFastSiPm()

void GslFitter::SetIsFastSiPm ( const bool &  a)
inline

Sets the isFastSiPm_ flag

Parameters
[in]a: The value that we are going to set

Definition at line 47 of file GslFitter.hpp.

Field Documentation

§ amp_

double GslFitter::amp_
private

Definition at line 61 of file GslFitter.hpp.

§ chi_

double GslFitter::chi_
private

Definition at line 62 of file GslFitter.hpp.

§ dof_

double GslFitter::dof_
private

Definition at line 63 of file GslFitter.hpp.

§ isFastSiPm_

bool GslFitter::isFastSiPm_
private

Definition at line 59 of file GslFitter.hpp.


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