#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 |
Linear Fit Rp and t0 to pixel times for given chi0
Regarding the formula for pixel times
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.
|
inline |
Definition at line 21 of file G/ChiZeroRegression.h.
References PrepParams().
|
inline |
Definition at line 40 of file G/ChiZeroRegression.h.
References chii.
Referenced by FdProfileConstrainedGeometryFitPG::PCGFitter::CombinedChi2().
|
protected |
Definition at line 318 of file G/ChiZeroRegression.cc.
References fUseLightFlux, std::pow(), and sqrt().
Referenced by operator()().
|
protected |
Definition at line 279 of file G/ChiZeroRegression.cc.
References ERROR, MinuitFitFunc(), and UnivRecNS::npar.
Referenced by operator()().
|
staticprotected |
Definition at line 175 of file G/ChiZeroRegression.cc.
References utl::abs(), Angle(), chii, utl::cm2, fwk::LocalCoordinateSystemConstructor< Policy >::Create(), utl::Cross(), utl::deg, atm::Atmosphere::EvaluatePressureVsHeight(), atm::Atmosphere::EvaluateSlantDepthVsDistance(), atm::Atmosphere::EvaluateTemperatureVsHeight(), fEmissionPointCorrection, fEyeId, fsdpPhi, fsdpTheta, fTelId, fXmax, utl::g, fdet::Pixel::GetDirection(), utl::Vector::GetMag(), fdet::Telescope::GetPixel(), fdet::Telescope::GetPosition(), utl::BasicVector< HepVector >::GetTheta(), utl::BasicVector< HepVector >::GetZ(), atm::Atmosphere::InitSlantProfileModel(), utl::InverseGoraCDF(), utl::kPi, utl::kPiOnTwo, utl::kSpeedOfLight, utl::m, utl::MoliereRadius(), utl::Normalized(), pixids, utl::ReferenceEllipsoid::PointToLatitudeLongitudeHeight(), std::pow(), utl::ShowerAge(), tels, timeErrs, times, and atm::ProfileResult::Y().
Referenced by MinuitFitErrors().
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.
|
protected |
Definition at line 60 of file G/ChiZeroRegression.cc.
References chii, fwk::LocalCoordinateSystemConstructor< Policy >::Create(), fEyeId, fsdpPhi, fsdpTheta, fTelId, fevt::PixelRecData::GetChi_i(), fdet::FDetector::GetEye(), utl::TimeInterval::GetInterval(), utl::TimeInterval::GetNanoSecond(), utl::BasicVector< HepVector >::GetPhi(), fevt::Eye::GetRecData(), fevt::Telescope::GetRecData(), fevt::TelescopeRecData::GetSDP(), fevt::PixelRecData::GetT_i(), fevt::PixelRecData::GetT_iError(), fevt::Eye::GetTelescope(), utl::BasicVector< HepVector >::GetTheta(), fevt::Telescope::HasRecData(), fevt::Eye::HasTelescope(), pixids, tels, timeErrs, and times.
Referenced by ChiZeroRegression().
void FdProfileConstrainedGeometryFitPG::ChiZeroRegression::SetRealAtm | ( | bool | realAtm, |
bool | deex, | ||
bool | emissionPointCorrection | ||
) |
Definition at line 51 of file G/ChiZeroRegression.cc.
References fdet::FTimeFitModel::eRealisticAtm, fdet::FTimeFitModel::eRealisticAtmNoDeex, fdet::FTimeFitModel::eVacuumAtm, fDeex, fEmissionPointCorrection, and fRealAtm.
Referenced by FdProfileConstrainedGeometryFitPG::PCGFitter::Run().
|
inline |
Definition at line 41 of file G/ChiZeroRegression.h.
References fUseLightFlux.
Referenced by FdProfileConstrainedGeometryFitPG::PCGFitter::Run().
|
staticprotected |
Definition at line 67 of file G/ChiZeroRegression.h.
Referenced by GetNDof(), MinuitFitFunc(), operator()(), and PrepParams().
|
protected |
Definition at line 77 of file G/ChiZeroRegression.h.
Referenced by SetRealAtm().
|
staticprotected |
Definition at line 78 of file G/ChiZeroRegression.h.
Referenced by MinuitFitFunc(), and SetRealAtm().
|
staticprotected |
Definition at line 72 of file G/ChiZeroRegression.h.
Referenced by MinuitFitFunc(), and PrepParams().
|
protected |
Definition at line 76 of file G/ChiZeroRegression.h.
Referenced by SetRealAtm().
|
staticprotected |
Definition at line 71 of file G/ChiZeroRegression.h.
Referenced by MinuitFitFunc(), and PrepParams().
|
staticprotected |
Definition at line 70 of file G/ChiZeroRegression.h.
Referenced by MinuitFitFunc(), and PrepParams().
|
staticprotected |
Definition at line 73 of file G/ChiZeroRegression.h.
Referenced by MinuitFitFunc(), operator()(), and PrepParams().
|
protected |
Definition at line 75 of file G/ChiZeroRegression.h.
Referenced by LinearFitErrors(), operator()(), and SetUseLightFlux().
|
staticprotected |
Definition at line 74 of file G/ChiZeroRegression.h.
Referenced by MinuitFitFunc(), and operator()().
|
staticprotected |
Definition at line 69 of file G/ChiZeroRegression.h.
Referenced by MinuitFitFunc(), and PrepParams().
|
staticprotected |
Definition at line 68 of file G/ChiZeroRegression.h.
Referenced by MinuitFitFunc(), operator()(), and PrepParams().
|
staticprotected |
Definition at line 66 of file G/ChiZeroRegression.h.
Referenced by MinuitFitFunc(), operator()(), and PrepParams().
|
staticprotected |
Definition at line 65 of file G/ChiZeroRegression.h.
Referenced by MinuitFitFunc(), operator()(), and PrepParams().