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

#include <ChiZeroRegression.h>

Public Member Functions

 ChiZeroRegression (const fevt::Eye &eye, unsigned int &telId)
 
unsigned int GetNDof () const
 
void operator() (const double chi0, double &chi2, double &rp, double &t0, double Xmax=600 *utl::g/utl::cm2) const
 
void operator() (const double chi0, double &chi2, double &rp, double &rpErr, double &t0, double &t0Err, double Xmax=600 *utl::g/utl::cm2) const
 
void SetRealAtm (bool realAtm, bool deex, bool emissionPointCorrection)
 
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
 
unsigned int PrepParams (const fevt::Eye &eye)
 

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 bool fEmissionPointCorrection = false
 
static int fEyeId = 0
 
static double fsdpPhi = 0
 
static double fsdpTheta = 0
 
static int fTelId = 0
 
static double fXmax = 0
 
static std::vector< int > pixids
 
static std::vector< int > tels
 
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 19 of file G/ChiZeroRegression.h.

Constructor & Destructor Documentation

FdProfileConstrainedGeometryFitPG::ChiZeroRegression::ChiZeroRegression ( const fevt::Eye eye,
unsigned int &  telId 
)
inline

Definition at line 21 of file G/ChiZeroRegression.h.

References PrepParams().

Member Function Documentation

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

Definition at line 40 of file G/ChiZeroRegression.h.

References chii.

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

void FdProfileConstrainedGeometryFitPG::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 318 of file G/ChiZeroRegression.cc.

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

Referenced by operator()().

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

Definition at line 279 of file G/ChiZeroRegression.cc.

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

Referenced by operator()().

void FdProfileConstrainedGeometryFitPG::ChiZeroRegression::MinuitFitFunc ( int &  npar,
double *  gin,
double &  f,
double *  par,
int  iflag 
)
staticprotected
void FdProfileConstrainedGeometryFitPG::ChiZeroRegression::operator() ( const double  chi0,
double &  chi2,
double &  rp,
double &  t0,
double  Xmax = 600*utl::g/utl::cm2 
) const

Determine Rp and t0 for given chi0 via unweighted regression

Definition at line 110 of file G/ChiZeroRegression.cc.

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

void FdProfileConstrainedGeometryFitPG::ChiZeroRegression::operator() ( const double  chi0,
double &  chi2,
double &  rp,
double &  rpErr,
double &  t0,
double &  t0Err,
double  Xmax = 600*utl::g/utl::cm2 
) const

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

Definition at line 146 of file G/ChiZeroRegression.cc.

References chii, fTelId, fXmax, utl::kSpeedOfLight, LinearFitErrors(), MinuitFitErrors(), tels, timeErrs, and times.

unsigned int FdProfileConstrainedGeometryFitPG::ChiZeroRegression::PrepParams ( const fevt::Eye eye)
protected
void FdProfileConstrainedGeometryFitPG::ChiZeroRegression::SetRealAtm ( bool  realAtm,
bool  deex,
bool  emissionPointCorrection 
)
void FdProfileConstrainedGeometryFitPG::ChiZeroRegression::SetUseLightFlux ( bool  use = true)
inline

Definition at line 41 of file G/ChiZeroRegression.h.

References fUseLightFlux.

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

Member Data Documentation

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

Definition at line 67 of file G/ChiZeroRegression.h.

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

bool FdProfileConstrainedGeometryFitPG::ChiZeroRegression::fDeex
protected

Definition at line 77 of file G/ChiZeroRegression.h.

Referenced by SetRealAtm().

bool FdProfileConstrainedGeometryFitPG::ChiZeroRegression::fEmissionPointCorrection = false
staticprotected

Definition at line 78 of file G/ChiZeroRegression.h.

Referenced by MinuitFitFunc(), and SetRealAtm().

int FdProfileConstrainedGeometryFitPG::ChiZeroRegression::fEyeId = 0
staticprotected

Definition at line 72 of file G/ChiZeroRegression.h.

Referenced by MinuitFitFunc(), and PrepParams().

bool FdProfileConstrainedGeometryFitPG::ChiZeroRegression::fRealAtm
protected

Definition at line 76 of file G/ChiZeroRegression.h.

Referenced by SetRealAtm().

double FdProfileConstrainedGeometryFitPG::ChiZeroRegression::fsdpPhi = 0
staticprotected

Definition at line 71 of file G/ChiZeroRegression.h.

Referenced by MinuitFitFunc(), and PrepParams().

double FdProfileConstrainedGeometryFitPG::ChiZeroRegression::fsdpTheta = 0
staticprotected

Definition at line 70 of file G/ChiZeroRegression.h.

Referenced by MinuitFitFunc(), and PrepParams().

int FdProfileConstrainedGeometryFitPG::ChiZeroRegression::fTelId = 0
staticprotected

Definition at line 73 of file G/ChiZeroRegression.h.

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

bool FdProfileConstrainedGeometryFitPG::ChiZeroRegression::fUseLightFlux
protected

Definition at line 75 of file G/ChiZeroRegression.h.

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

double FdProfileConstrainedGeometryFitPG::ChiZeroRegression::fXmax = 0
staticprotected

Definition at line 74 of file G/ChiZeroRegression.h.

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

std::vector< int > FdProfileConstrainedGeometryFitPG::ChiZeroRegression::pixids
staticprotected

Definition at line 69 of file G/ChiZeroRegression.h.

Referenced by MinuitFitFunc(), and PrepParams().

std::vector< int > FdProfileConstrainedGeometryFitPG::ChiZeroRegression::tels
staticprotected

Definition at line 68 of file G/ChiZeroRegression.h.

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

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

Definition at line 66 of file G/ChiZeroRegression.h.

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

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

Definition at line 65 of file G/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.