#include <PCGFitter.h>
Public Types | |
enum | EApLightMethod { eExternal, eInternal, eCallForEach } |
Public Member Functions | |
std::vector< double > & | GetCurrentParameters () |
const std::vector< double > & | GetCurrentParameters () const |
double | GetErrorDefinition () const |
std::string | GetName (const int i) const |
unsigned int | GetNParameters () const |
std::vector< ParameterDef > & | GetParameterDefs () |
const std::vector< ParameterDef > & | GetParameterDefs () const |
double | operator() (const std::vector< double > &pars) |
PCGFitter () | |
r | push_back (p.fValue) |
r | push_back (p.fFixed) |
r | push_back (GetName(i)) |
r | reserve (GetNParameters()) |
r | reserve (GetNParameters()) |
r | reserve (n) |
bool | Run (fevt::Eye &eye) |
void | SetCurrentParameters (const std::vector< double > &p) |
void | SetErrorDefinition (const double up) |
void | SetParameterDefFixed (const std::vector< int > &fixed) |
void | SetParameterDefs (const std::vector< ParameterDef > &defs) |
void | SetParameterDefValues (const std::vector< double > &vals) |
Public Attributes | |
unsigned int | const |
std::vector< double > | const |
std::vector< int > | const |
std::vector< std::string > | const |
n | |
return | n |
return | r |
std::vector< std::string > | r |
Protected Member Functions | |
bool | AdjustGeometry (fevt::Eye &eyeCopy) const |
double | CombinedChi2 (const double chi0, double &rp, double &t0, const fevt::PCGFData::EPCGFStatus status, const bool verbose=false) |
fevt::Eye & | CopyEye (const fevt::Eye &eye, evt::Event &eventCopy) const |
void | FillParams (fevt::Eye &eyeCopy, const double chi0, const double chi0Err, const double rp, const double rpErr, const double t0, const double t0Err) const |
void | FillParams (fevt::Eye &eyeCopy, const double chi0, const double rp, const double t0) const |
bool | Prescan (const double step, double &from, double &to) |
bool | ScanChi0 (fevt::Eye &eye, double step=1 *utl::degree, double from=10 *utl::degree, double to=170 *utl::degree) |
bool | Underground (const double chi0, const fevt::Eye &eye) |
Protected Attributes | |
FdApertureLightFinderKG::FdApertureLightFinder | fApertureLightFinder |
ApertureLight | fApLight |
EApLightMethod | fApLightMethod |
bool | fCheckUnderground = false |
ChiZeroRegression * | fChi0Regression = nullptr |
bool | fDeex = false |
bool | fDelZeroFlux = false |
fevt::Eye * | fEye = nullptr |
bool | fPrescan = false |
ProfileChi2 | fProfileFit |
bool | fRealAtm = false |
bool | fScanOnly = false |
double | fScanStart = 0 |
double | fScanStep = 0 |
double | fScanStop = 0 |
bool | fUseLightFlux = false |
Private Attributes | |
std::vector< fevt::PCGFData > | fPCGFData |
Minimize profile Chi2
Workhorse of the PCGF module, performs the actual fit. Only one object is needed in a run, as internal state is updated by ScanChi0() and FitChi0().
Definition at line 27 of file PCGFitter.h.
Enumerator | |
---|---|
eExternal | |
eInternal | |
eCallForEach |
Definition at line 44 of file PCGFitter.h.
|
inline |
Definition at line 29 of file PCGFitter.h.
|
protected |
Definition at line 629 of file PCGFitter.cc.
References utl::Cross(), ERROR, fevt::EyeRecData::GetChiZero(), fdet::Eye::GetEyeCoordinateSystem(), fevt::EyeRecData::GetFRecShower(), fevt::Eye::GetHeader(), utl::AugerException::GetMessage(), utl::BasicVector< HepVector >::GetPhi(), fdet::Eye::GetPosition(), fevt::Eye::GetRecData(), fevt::EyeRecData::GetRp(), fevt::EyeRecData::GetSDP(), utl::BasicVector< HepVector >::GetTheta(), fevt::EyeHeader::GetTimeStamp(), fevt::EyeRecData::GetTZero(), utl::Normalized(), ns, evt::ShowerFRecData::SetAxis(), evt::ShowerFRecData::SetCorePosition(), and evt::ShowerFRecData::SetCoreTime().
|
protected |
Definition at line 131 of file PCGFitter.cc.
References utl::TabulatedFunctionErrors::Clear(), degree, fevt::FdConstants::eBackground, fevt::ComponentSelector::eInDAQ, fwk::VModule::eSuccess, fevt::FdConstants::eTotal, fevt::TelescopeRecData::GetLightFlux(), fevt::EyeRecData::GetLightFlux(), FdProfileConstrainedGeometryFit::ChiZeroRegression::GetNDof(), utl::TabulatedFunction::GetNPoints(), fevt::Eye::GetRecData(), utl::TabulatedFunction::GetX(), utl::TabulatedFunctionErrors::GetXErr(), utl::TabulatedFunction::GetY(), utl::TabulatedFunctionErrors::GetYErr(), fevt::TelescopeRecData::HasLightFlux(), fevt::EyeRecData::HasLightFlux(), utl::m, ns, utl::TabulatedFunctionErrors::PushBack(), fevt::Eye::TelescopesBegin(), and fevt::Eye::TelescopesEnd().
|
protected |
Definition at line 580 of file PCGFitter.cc.
References fevt::FEvent::GetEye(), evt::Event::GetFEvent(), fevt::Eye::GetId(), fevt::FEvent::MakeEye(), and evt::Event::MakeFEvent().
|
protected |
Definition at line 591 of file PCGFitter.cc.
References fevt::Eye::GetRecData(), fevt::TelescopeRecData::SetChiZero(), fevt::EyeRecData::SetChiZero(), fevt::TelescopeRecData::SetRp(), fevt::EyeRecData::SetRp(), fevt::TelescopeRecData::SetTimeFitChiSquare(), fevt::TelescopeRecData::SetTimeFitCorrelations(), fevt::TelescopeRecData::SetTZero(), fevt::EyeRecData::SetTZero(), fevt::Eye::TelescopesBegin(), and fevt::Eye::TelescopesEnd().
|
protected |
Definition at line 618 of file PCGFitter.cc.
References degree, km, and utl::microsecond.
|
inlineinherited |
Definition at line 144 of file Minou.h.
References utl::Minou::Base::fCurrentParameters.
Referenced by utl::Minou::Minimizer< F >::WriteBack().
|
inlineinherited |
Definition at line 145 of file Minou.h.
References utl::Minou::Base::fCurrentParameters.
|
inlineinherited |
Definition at line 157 of file Minou.h.
References utl::Minou::Base::fErrorDefinition.
|
inlineinherited |
Definition at line 159 of file Minou.h.
References utl::Minou::Base::fParameterDefs.
|
inlineinherited |
Definition at line 83 of file Minou.h.
References utl::Minou::Base::fParameterDefs.
Referenced by utl::Minou::Base::SetCurrentParameters(), utl::Minou::Base::SetParameterDefFixed(), and utl::Minou::Base::SetParameterDefValues().
|
inlineinherited |
Definition at line 97 of file Minou.h.
References utl::Minou::Base::fParameterDefs.
Referenced by RdStationAssociator::ExpoTail::ExpoTail(), un2::SimpleReco(), RdSphericalFit::SphericalFitFunction::SphericalFitFunction(), and TestMinou::TestHenonHeiles().
|
inlineinherited |
Definition at line 98 of file Minou.h.
References utl::Minou::Base::fParameterDefs.
double FdProfileConstrainedGeometryFit::PCGFitter::operator() | ( | const std::vector< double > & | pars | ) |
The function to minimize by minuit: combined timing and profile chi2
For given par[0]=chi0 angle, fill other geometry from timing fit, reconstruct and fit profile accordingly. Returns the sum of the chi^2 of the both fits.
Definition at line 119 of file PCGFitter.cc.
References LDFFinderKG::eFit.
|
protected |
Definition at line 405 of file PCGFitter.cc.
References PCGF_DEBUGLOG.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
bool FdProfileConstrainedGeometryFit::PCGFitter::Run | ( | fevt::Eye & | eye | ) |
Minimize chi2 wrt chi0 angle with Minuit
Definition at line 250 of file PCGFitter.cc.
References degree, ERROR, utl::Minou::ParameterDef::fStep, utl::Minou::ParameterDef::fValue, fevt::EyeRecData::GetChiZero(), fevt::EyeRecData::GetChiZeroError(), fevt::Eye::GetRecData(), fevt::EyeRecData::GetRp(), fevt::EyeRecData::GetTimeFitChiSquare(), fevt::EyeRecData::GetTimeFitNDof(), fevt::EyeRecData::GetTZero(), fevt::EyeRecData::HasLightFlux(), INFO, km, utl::microsecond, utl::Minou::Minimizer< F >::Migrad(), result, fevt::EyeRecData::SetPCGF(), FdProfileConstrainedGeometryFit::ChiZeroRegression::SetRealAtm(), and FdProfileConstrainedGeometryFit::ChiZeroRegression::SetUseLightFlux().
|
protected |
Search minimal chi2 by stepping through the chi0 angle.
Definition at line 447 of file PCGFitter.cc.
References RdGeoCeLDFFitter::a, utl::abs(), RdGeoCeLDFFitter::b, fwk::LocalCoordinateSystemConstructor< Policy >::Create(), degree, evt::ShowerFRecData::GetAxis(), evt::ShowerFRecData::GetCorePosition(), fevt::EyeRecData::GetFRecShower(), utl::BasicVector< HepVector >::GetPhi(), fevt::Eye::GetRecData(), utl::BasicVector< HepVector >::GetTheta(), utl::kilometer, otoa::LinearFit(), max, galactic::meter, utl::microsecond, PCGF_DEBUGLOG, and sqrt().
|
inlineinherited |
Definition at line 148 of file Minou.h.
References utl::Minou::Base::fCurrentParameters, utl::Minou::Base::GetNParameters(), and G4StationSimulatorOG::p.
|
inlineinherited |
Definition at line 155 of file Minou.h.
References utl::Minou::Base::fErrorDefinition.
|
inlineinherited |
Definition at line 134 of file Minou.h.
References utl::Minou::Base::fParameterDefs, utl::Minou::Base::GetNParameters(), and utl::Minou::Base::n.
Referenced by RdHASLDFFitter::RdHASLDFFitter::Run().
|
inlineinherited |
Definition at line 99 of file Minou.h.
References utl::Minou::Base::fParameterDefs.
Referenced by un2::SimpleReco().
|
inlineinherited |
Definition at line 113 of file Minou.h.
References utl::Minou::Base::fParameterDefs, utl::Minou::Base::GetNParameters(), and utl::Minou::Base::n.
Referenced by RdHASLDFFitter::RdHASLDFFitter::Run().
|
inlineprotected |
Definition at line 97 of file PCGFitter.cc.
References fevt::PixelRecData::GetChi_i(), fevt::Eye::GetRecData(), PCGF_DEBUGLOG, fevt::EyeRecData::TimeFitPixelsBegin(), and fevt::EyeRecData::TimeFitPixelsEnd().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
protected |
Definition at line 55 of file PCGFitter.h.
|
protected |
Definition at line 56 of file PCGFitter.h.
|
protected |
Definition at line 57 of file PCGFitter.h.
|
protected |
Definition at line 58 of file PCGFitter.h.
|
protected |
Definition at line 52 of file PCGFitter.h.
|
protected |
Definition at line 67 of file PCGFitter.h.
|
protected |
Definition at line 65 of file PCGFitter.h.
|
protected |
Definition at line 51 of file PCGFitter.h.
|
private |
Definition at line 95 of file PCGFitter.h.
|
protected |
Definition at line 59 of file PCGFitter.h.
|
protected |
Definition at line 53 of file PCGFitter.h.
|
protected |
Definition at line 66 of file PCGFitter.h.
|
protected |
Definition at line 60 of file PCGFitter.h.
|
protected |
Definition at line 62 of file PCGFitter.h.
|
protected |
Definition at line 61 of file PCGFitter.h.
|
protected |
Definition at line 63 of file PCGFitter.h.
|
protected |
Definition at line 64 of file PCGFitter.h.
|
inherited |
Definition at line 92 of file Minou.h.
Referenced by utl::Minou::Base::SetParameterDefFixed(), and utl::Minou::Base::SetParameterDefValues().