List of all members | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes
FdProfileConstrainedGeometryFit::ChiZeroRegression Class Reference

#include <ChiZeroRegression.h>

Public Member Functions

 ChiZeroRegression (const fevt::EyeRecData &eyeRec)
 
unsigned int GetNDof () const
 
void operator() (const double chi0, double &chi2, double &rp, double &t0) const
 
void operator() (const double chi0, double &chi2, double &rp, double &rpErr, double &t0, double &t0Err) const
 
void SetRealAtm (bool realAtm, bool deex)
 
void SetUseLightFlux (bool use=true)
 

Protected Member Functions

void LinearFitErrors (const std::vector< double > &x, const std::vector< double > &y, const std::vector< double > &ey, double &a0, double &a0err, double &a1, double &a1err, double &chi2) const
 
void MinuitFitErrors (const double Chi0, double &T0, double &T0err, double &Rp, double &Rperr, double &chi2) const
 
void PrepParams (const fevt::EyeRecData &eyeRec)
 

Static Protected Member Functions

static void MinuitFitFunc (int &npar, double *gin, double &f, double *par, int iflag)
 

Protected Attributes

bool fDeex
 
bool fRealAtm
 
bool fUseLightFlux
 

Static Protected Attributes

static std::vector< double > chii
 
static int fEyeId = 0
 
static double fsdpTheta = 0
 
static int fTelId = 0
 
static std::vector< double > timeErrs
 
static std::vector< double > times
 

Detailed Description

Linear Fit Rp and t0 to pixel times for given chi0

Regarding the formula for pixel times

\[ t_i = t_0 + R_p / c * \tan ((\chi_i - \chi_0) / 2) \]

as a linear expression f(tan_i) determine $R_p$ and $t_0$ by linear regression.

For every set of t_i (every eye in an event) a new object is needed.

Definition at line 18 of file ChiZeroRegression.h.

Constructor & Destructor Documentation

FdProfileConstrainedGeometryFit::ChiZeroRegression::ChiZeroRegression ( const fevt::EyeRecData eyeRec)
inline

Definition at line 20 of file ChiZeroRegression.h.

References PrepParams().

Member Function Documentation

unsigned int FdProfileConstrainedGeometryFit::ChiZeroRegression::GetNDof ( ) const
inline

Definition at line 37 of file ChiZeroRegression.h.

References chii.

Referenced by FdProfileConstrainedGeometryFit::PCGFitter::CombinedChi2().

void FdProfileConstrainedGeometryFit::ChiZeroRegression::LinearFitErrors ( const std::vector< double > &  x,
const std::vector< double > &  y,
const std::vector< double > &  ey,
double &  a0,
double &  a0err,
double &  a1,
double &  a1err,
double &  chi2 
) const
protected

Definition at line 158 of file ChiZeroRegression.cc.

References fUseLightFlux, std::pow(), and sqrt().

Referenced by operator()().

void FdProfileConstrainedGeometryFit::ChiZeroRegression::MinuitFitErrors ( const double  Chi0,
double &  T0,
double &  T0err,
double &  Rp,
double &  Rperr,
double &  chi2 
) const
protected

Definition at line 119 of file ChiZeroRegression.cc.

References ERROR, MinuitFitFunc(), and UnivRecNS::npar.

Referenced by operator()().

void FdProfileConstrainedGeometryFit::ChiZeroRegression::MinuitFitFunc ( int &  npar,
double *  gin,
double &  f,
double *  par,
int  iflag 
)
staticprotected
void FdProfileConstrainedGeometryFit::ChiZeroRegression::operator() ( const double  chi0,
double &  chi2,
double &  rp,
double &  t0 
) const

Determine Rp and t0 for given chi0 via unweighted regression

Definition at line 57 of file ChiZeroRegression.cc.

References chii, fRealAtm, fUseLightFlux, utl::kSpeedOfLight, otoa::LinearFit(), LinearFitErrors(), MinuitFitErrors(), timeErrs, and times.

void FdProfileConstrainedGeometryFit::ChiZeroRegression::operator() ( const double  chi0,
double &  chi2,
double &  rp,
double &  rpErr,
double &  t0,
double &  t0Err 
) const

Determine Rp, t0 and errors for given chi0 via weighted regression

Definition at line 83 of file ChiZeroRegression.cc.

References chii, fRealAtm, utl::kSpeedOfLight, LinearFitErrors(), MinuitFitErrors(), timeErrs, and times.

void FdProfileConstrainedGeometryFit::ChiZeroRegression::PrepParams ( const fevt::EyeRecData eyeRec)
protected
void FdProfileConstrainedGeometryFit::ChiZeroRegression::SetRealAtm ( bool  realAtm,
bool  deex 
)
void FdProfileConstrainedGeometryFit::ChiZeroRegression::SetUseLightFlux ( bool  use = true)
inline

Definition at line 38 of file ChiZeroRegression.h.

References fUseLightFlux.

Referenced by FdProfileConstrainedGeometryFit::PCGFitter::Run().

Member Data Documentation

std::vector< double > FdProfileConstrainedGeometryFit::ChiZeroRegression::chii
staticprotected

Definition at line 64 of file ChiZeroRegression.h.

Referenced by GetNDof(), MinuitFitFunc(), operator()(), and PrepParams().

bool FdProfileConstrainedGeometryFit::ChiZeroRegression::fDeex
protected

Definition at line 70 of file ChiZeroRegression.h.

Referenced by SetRealAtm().

int FdProfileConstrainedGeometryFit::ChiZeroRegression::fEyeId = 0
staticprotected

Definition at line 66 of file ChiZeroRegression.h.

Referenced by MinuitFitFunc(), and PrepParams().

bool FdProfileConstrainedGeometryFit::ChiZeroRegression::fRealAtm
protected

Definition at line 69 of file ChiZeroRegression.h.

Referenced by operator()(), and SetRealAtm().

double FdProfileConstrainedGeometryFit::ChiZeroRegression::fsdpTheta = 0
staticprotected

Definition at line 65 of file ChiZeroRegression.h.

Referenced by MinuitFitFunc(), and PrepParams().

int FdProfileConstrainedGeometryFit::ChiZeroRegression::fTelId = 0
staticprotected

Definition at line 67 of file ChiZeroRegression.h.

Referenced by MinuitFitFunc(), and PrepParams().

bool FdProfileConstrainedGeometryFit::ChiZeroRegression::fUseLightFlux
protected

Definition at line 68 of file ChiZeroRegression.h.

Referenced by LinearFitErrors(), operator()(), and SetUseLightFlux().

std::vector< double > FdProfileConstrainedGeometryFit::ChiZeroRegression::timeErrs
staticprotected

Definition at line 63 of file ChiZeroRegression.h.

Referenced by MinuitFitFunc(), operator()(), and PrepParams().

std::vector< double > FdProfileConstrainedGeometryFit::ChiZeroRegression::times
staticprotected

Definition at line 62 of file ChiZeroRegression.h.

Referenced by MinuitFitFunc(), operator()(), and PrepParams().


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

, generated on Tue Sep 26 2023.