#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 > &par) |
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 &rpErr, double &t0, double &t0Err, 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, int level=0) |
bool | Underground (const double chi0, const double rp, const fevt::Eye &eye) |
Protected Attributes | |
FdApertureLightFinderKG::FdApertureLightFinder | fApertureLightFinder |
ApertureLight | fApLight |
EApLightMethod | fApLightMethod |
bool | fCheckUnderground |
ChiZeroRegression * | fChi0Regression |
bool | fDeex |
bool | fDelZeroFlux |
bool | fEmissionPointCorrection |
fevt::Eye * | fEye |
bool | fPrecise |
bool | fPrescan |
ProfileChi2 | fProfileFit |
bool | fRealAtm |
bool | fScanOnly |
double | fScanStart |
double | fScanStep |
double | fScanStop |
bool | fSkipNegativeT0 |
unsigned int | fTelId |
bool | fUseLightFlux |
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 G/PCGFitter.h.
Enumerator | |
---|---|
eExternal | |
eInternal | |
eCallForEach |
Definition at line 45 of file G/PCGFitter.h.
|
inline |
Definition at line 29 of file G/PCGFitter.h.
|
protected |
Definition at line 711 of file G/PCGFitter.cc.
References Angle(), fwk::LocalCoordinateSystemConstructor< Policy >::Create(), utl::Cross(), ERROR, fevt::TelescopeRecData::GetChiZero(), fevt::TelescopeRecData::GetChiZeroError(), fdet::Pixel::GetDirection(), fdet::FDetector::GetEye(), fevt::EyeRecData::GetFRecShower(), fevt::Eye::GetHeader(), utl::Vector::GetMag(), utl::AugerException::GetMessage(), utl::BasicVector< HepVector >::GetPhi(), fdet::FDetector::GetPixel(), fdet::Telescope::GetPosition(), fdet::Eye::GetPosition(), fevt::Eye::GetRecData(), fevt::Telescope::GetRecData(), fevt::TelescopeRecData::GetRp(), fevt::TelescopeRecData::GetRpError(), fevt::TelescopeRecData::GetSDP(), fevt::Eye::GetTelescope(), fdet::Eye::GetTelescope(), utl::BasicVector< HepVector >::GetTheta(), fevt::EyeHeader::GetTimeStamp(), fevt::TelescopeRecData::GetTZero(), fevt::TelescopeRecData::GetTZeroError(), utl::BasicVector< HepVector >::GetZ(), fevt::Telescope::HasRecData(), fevt::Eye::HasTelescope(), utl::kPi, utl::kSpeedOfLight, fevt::Telescope::MakeRecData(), utl::Normalized(), ns, fevt::EyeRecData::PulsedPixelsBegin(), fevt::EyeRecData::PulsedPixelsEnd(), evt::ShowerFRecData::SetAxis(), fevt::TelescopeRecData::SetChiZero(), fevt::EyeRecData::SetChiZero(), evt::ShowerFRecData::SetCorePosition(), evt::ShowerFRecData::SetCoreTime(), fevt::TelescopeRecData::SetRp(), fevt::EyeRecData::SetRp(), fevt::TelescopeRecData::SetSDP(), fevt::EyeRecData::SetSDP(), fevt::TelescopeRecData::SetTimeFitChiSquare(), fevt::TelescopeRecData::SetTimeFitCorrelations(), fevt::TelescopeRecData::SetTZero(), fevt::EyeRecData::SetTZero(), fdet::Eye::TelescopesBegin(), and fdet::Eye::TelescopesEnd().
|
protected |
Definition at line 181 of file G/PCGFitter.cc.
References utl::TabulatedFunctionErrors::Clear(), utl::deg, degree, fevt::FdConstants::eBackground, fevt::ComponentSelector::eInDAQ, fwk::VModule::eSuccess, fevt::FdConstants::eTotal, fevt::EyeRecData::GetFRecShower(), evt::ShowerFRecData::GetGHParameters(), fevt::TelescopeRecData::GetLightFlux(), fevt::EyeRecData::GetLightFlux(), FdProfileConstrainedGeometryFitPG::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 668 of file G/PCGFitter.cc.
References fevt::FEvent::GetEye(), evt::Event::GetFEvent(), fevt::Eye::GetId(), fevt::FEvent::MakeEye(), and evt::Event::MakeFEvent().
|
protected |
Definition at line 679 of file G/PCGFitter.cc.
References fevt::Telescope::GetRecData(), fevt::Eye::GetTelescope(), fevt::Telescope::HasRecData(), fevt::Eye::HasTelescope(), fevt::Telescope::MakeRecData(), fevt::TelescopeRecData::SetChiZero(), fevt::TelescopeRecData::SetRp(), fevt::TelescopeRecData::SetTimeFitChiSquare(), fevt::TelescopeRecData::SetTimeFitCorrelations(), and fevt::TelescopeRecData::SetTZero().
|
protected |
Definition at line 700 of file G/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 FdProfileConstrainedGeometryFitPG::PCGFitter::operator() | ( | const std::vector< double > & | par | ) |
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 167 of file G/PCGFitter.cc.
References LDFFinderKG::eFit.
|
protected |
Definition at line 482 of file G/PCGFitter.cc.
References PCGF_DEBUGLOG.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
bool FdProfileConstrainedGeometryFitPG::PCGFitter::Run | ( | fevt::Eye & | eye | ) |
Minimize chi2 wrt chi0 angle with Minuit
Definition at line 322 of file G/PCGFitter.cc.
References degree, ERROR, utl::Minou::ParameterDef::fStep, utl::Minou::ParameterDef::fValue, fevt::TelescopeRecData::GetChiZero(), fevt::EyeRecData::GetChiZero(), fevt::TelescopeRecData::GetChiZeroError(), fevt::Eye::GetRecData(), fevt::Telescope::GetRecData(), fevt::EyeRecData::GetRp(), fevt::Eye::GetTelescope(), 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(), FdProfileConstrainedGeometryFitPG::ChiZeroRegression::SetRealAtm(), and FdProfileConstrainedGeometryFitPG::ChiZeroRegression::SetUseLightFlux().
|
protected |
Search minimal chi2 by stepping through the chi0 angle.
Definition at line 521 of file G/PCGFitter.cc.
References RdGeoCeLDFFitter::a, utl::abs(), RdGeoCeLDFFitter::b, fwk::LocalCoordinateSystemConstructor< Policy >::Create(), utl::deg, 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 104 of file G/PCGFitter.cc.
References Angle(), fwk::LocalCoordinateSystemConstructor< Policy >::Create(), utl::Cross(), fdet::FDetector::GetEye(), fevt::Eye::GetId(), fdet::Telescope::GetPixel(), fdet::Telescope::GetPosition(), fdet::Eye::GetPosition(), fevt::Eye::GetRecData(), fevt::Telescope::GetRecData(), fevt::TelescopeRecData::GetSDP(), fevt::Eye::GetTelescope(), utl::BasicVector< HepVector >::GetTheta(), utl::BasicVector< HepVector >::GetZ(), utl::kPi, utl::Normalized(), PCGF_DEBUGLOG, fevt::EyeRecData::TimeFitPixelsBegin(), and fevt::EyeRecData::TimeFitPixelsEnd().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
protected |
Definition at line 56 of file G/PCGFitter.h.
|
protected |
Definition at line 57 of file G/PCGFitter.h.
|
protected |
Definition at line 58 of file G/PCGFitter.h.
|
protected |
Definition at line 59 of file G/PCGFitter.h.
|
protected |
Definition at line 53 of file G/PCGFitter.h.
|
protected |
Definition at line 68 of file G/PCGFitter.h.
|
protected |
Definition at line 66 of file G/PCGFitter.h.
|
protected |
Definition at line 69 of file G/PCGFitter.h.
|
protected |
Definition at line 52 of file G/PCGFitter.h.
|
private |
Definition at line 101 of file G/PCGFitter.h.
|
protected |
Definition at line 71 of file G/PCGFitter.h.
|
protected |
Definition at line 60 of file G/PCGFitter.h.
|
protected |
Definition at line 54 of file G/PCGFitter.h.
|
protected |
Definition at line 67 of file G/PCGFitter.h.
|
protected |
Definition at line 61 of file G/PCGFitter.h.
|
protected |
Definition at line 63 of file G/PCGFitter.h.
|
protected |
Definition at line 62 of file G/PCGFitter.h.
|
protected |
Definition at line 64 of file G/PCGFitter.h.
|
protected |
Definition at line 72 of file G/PCGFitter.h.
|
protected |
Definition at line 70 of file G/PCGFitter.h.
|
protected |
Definition at line 65 of file G/PCGFitter.h.
|
inherited |
Definition at line 92 of file Minou.h.
Referenced by utl::Minou::Base::SetParameterDefFixed(), and utl::Minou::Base::SetParameterDefValues().