List of all members | Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Attributes
FdProfileConstrainedGeometryFitPG::PCGFitter Class Reference

#include <PCGFitter.h>

Inheritance diagram for FdProfileConstrainedGeometryFitPG::PCGFitter:
Inheritance graph
[legend]

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::EyeCopyEye (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
 
ChiZeroRegressionfChi0Regression
 
bool fDeex
 
bool fDelZeroFlux
 
bool fEmissionPointCorrection
 
fevt::EyefEye
 
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::PCGFDatafPCGFData
 

Detailed Description

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.

Member Enumeration Documentation

Enumerator
eExternal 
eInternal 
eCallForEach 

Definition at line 45 of file G/PCGFitter.h.

Constructor & Destructor Documentation

FdProfileConstrainedGeometryFitPG::PCGFitter::PCGFitter ( )
inline

Definition at line 29 of file G/PCGFitter.h.

Member Function Documentation

bool FdProfileConstrainedGeometryFitPG::PCGFitter::AdjustGeometry ( fevt::Eye eyeCopy) const
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().

double FdProfileConstrainedGeometryFitPG::PCGFitter::CombinedChi2 ( const double  chi0,
double &  rp,
double &  rpErr,
double &  t0,
double &  t0Err,
const fevt::PCGFData::EPCGFStatus  status,
const bool  verbose = false 
)
protected
Eye & FdProfileConstrainedGeometryFitPG::PCGFitter::CopyEye ( const fevt::Eye eye,
evt::Event eventCopy 
) const
protected
void FdProfileConstrainedGeometryFitPG::PCGFitter::FillParams ( fevt::Eye eyeCopy,
const double  chi0,
const double  chi0Err,
const double  rp,
const double  rpErr,
const double  t0,
const double  t0Err 
) const
protected
void FdProfileConstrainedGeometryFitPG::PCGFitter::FillParams ( fevt::Eye eyeCopy,
const double  chi0,
const double  rp,
const double  t0 
) const
protected

Definition at line 700 of file G/PCGFitter.cc.

References degree, km, and utl::microsecond.

std::vector<double>& utl::Minou::Base::GetCurrentParameters ( )
inlineinherited

Definition at line 144 of file Minou.h.

References utl::Minou::Base::fCurrentParameters.

Referenced by utl::Minou::Minimizer< F >::WriteBack().

const std::vector<double>& utl::Minou::Base::GetCurrentParameters ( ) const
inlineinherited

Definition at line 145 of file Minou.h.

References utl::Minou::Base::fCurrentParameters.

double utl::Minou::Base::GetErrorDefinition ( ) const
inlineinherited

Definition at line 157 of file Minou.h.

References utl::Minou::Base::fErrorDefinition.

std::string utl::Minou::Base::GetName ( const int  i) const
inlineinherited

Definition at line 159 of file Minou.h.

References utl::Minou::Base::fParameterDefs.

unsigned int utl::Minou::Base::GetNParameters ( ) const
inlineinherited
std::vector<ParameterDef>& utl::Minou::Base::GetParameterDefs ( )
inlineinherited
const std::vector<ParameterDef>& utl::Minou::Base::GetParameterDefs ( ) const
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.

bool FdProfileConstrainedGeometryFitPG::PCGFitter::Prescan ( const double  step,
double &  from,
double &  to 
)
protected

Definition at line 482 of file G/PCGFitter.cc.

References PCGF_DEBUGLOG.

r utl::Minou::Base::push_back ( p.  fValue)
inherited
r utl::Minou::Base::push_back ( p.  fFixed)
inherited
r utl::Minou::Base::push_back ( GetName(i)  )
inherited
r utl::Minou::Base::reserve ( GetNParameters()  )
inherited
r utl::Minou::Base::reserve ( GetNParameters()  )
inherited
r utl::Minou::Base::reserve ( n  )
inherited
bool FdProfileConstrainedGeometryFitPG::PCGFitter::Run ( fevt::Eye eye)
bool FdProfileConstrainedGeometryFitPG::PCGFitter::ScanChi0 ( fevt::Eye eye,
double  step = 1*utl::degree,
double  from = 10*utl::degree,
double  to = 170*utl::degree,
int  level = 0 
)
protected
void utl::Minou::Base::SetCurrentParameters ( const std::vector< double > &  p)
inlineinherited
void utl::Minou::Base::SetErrorDefinition ( const double  up)
inlineinherited

Definition at line 155 of file Minou.h.

References utl::Minou::Base::fErrorDefinition.

void utl::Minou::Base::SetParameterDefFixed ( const std::vector< int > &  fixed)
inlineinherited
void utl::Minou::Base::SetParameterDefs ( const std::vector< ParameterDef > &  defs)
inlineinherited

Definition at line 99 of file Minou.h.

References utl::Minou::Base::fParameterDefs.

Referenced by un2::SimpleReco().

void utl::Minou::Base::SetParameterDefValues ( const std::vector< double > &  vals)
inlineinherited
bool FdProfileConstrainedGeometryFitPG::PCGFitter::Underground ( const double  chi0,
const double  rp,
const fevt::Eye eye 
)
inlineprotected

Member Data Documentation

unsigned int Base::const
inherited
Initial value:
{
unsigned int n = 0

Definition at line 88 of file Minou.h.

std::vector<double> utl::Minou::Base::const
inherited
Initial value:
{
std::vector<double> r

Definition at line 104 of file Minou.h.

std::vector<int> utl::Minou::Base::const
inherited
Initial value:
{
std::vector<int> r

Definition at line 125 of file Minou.h.

std::vector<std::string> utl::Minou::Base::const
inherited
Initial value:
{
const int n = GetNParameters()

Definition at line 165 of file Minou.h.

FdApertureLightFinderKG::FdApertureLightFinder FdProfileConstrainedGeometryFitPG::PCGFitter::fApertureLightFinder
protected

Definition at line 56 of file G/PCGFitter.h.

ApertureLight FdProfileConstrainedGeometryFitPG::PCGFitter::fApLight
protected

Definition at line 57 of file G/PCGFitter.h.

EApLightMethod FdProfileConstrainedGeometryFitPG::PCGFitter::fApLightMethod
protected

Definition at line 58 of file G/PCGFitter.h.

bool FdProfileConstrainedGeometryFitPG::PCGFitter::fCheckUnderground
protected

Definition at line 59 of file G/PCGFitter.h.

ChiZeroRegression* FdProfileConstrainedGeometryFitPG::PCGFitter::fChi0Regression
protected

Definition at line 53 of file G/PCGFitter.h.

bool FdProfileConstrainedGeometryFitPG::PCGFitter::fDeex
protected

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

bool FdProfileConstrainedGeometryFitPG::PCGFitter::fDelZeroFlux
protected

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

bool FdProfileConstrainedGeometryFitPG::PCGFitter::fEmissionPointCorrection
protected

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

fevt::Eye* FdProfileConstrainedGeometryFitPG::PCGFitter::fEye
protected

Definition at line 52 of file G/PCGFitter.h.

std::vector<fevt::PCGFData> FdProfileConstrainedGeometryFitPG::PCGFitter::fPCGFData
private

Definition at line 101 of file G/PCGFitter.h.

bool FdProfileConstrainedGeometryFitPG::PCGFitter::fPrecise
protected

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

bool FdProfileConstrainedGeometryFitPG::PCGFitter::fPrescan
protected

Definition at line 60 of file G/PCGFitter.h.

ProfileChi2 FdProfileConstrainedGeometryFitPG::PCGFitter::fProfileFit
protected

Definition at line 54 of file G/PCGFitter.h.

bool FdProfileConstrainedGeometryFitPG::PCGFitter::fRealAtm
protected

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

bool FdProfileConstrainedGeometryFitPG::PCGFitter::fScanOnly
protected

Definition at line 61 of file G/PCGFitter.h.

double FdProfileConstrainedGeometryFitPG::PCGFitter::fScanStart
protected

Definition at line 63 of file G/PCGFitter.h.

double FdProfileConstrainedGeometryFitPG::PCGFitter::fScanStep
protected

Definition at line 62 of file G/PCGFitter.h.

double FdProfileConstrainedGeometryFitPG::PCGFitter::fScanStop
protected

Definition at line 64 of file G/PCGFitter.h.

bool FdProfileConstrainedGeometryFitPG::PCGFitter::fSkipNegativeT0
protected

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

unsigned int FdProfileConstrainedGeometryFitPG::PCGFitter::fTelId
protected

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

bool FdProfileConstrainedGeometryFitPG::PCGFitter::fUseLightFlux
protected

Definition at line 65 of file G/PCGFitter.h.

utl::Minou::Base::n
inherited
return utl::Minou::Base::n
inherited

Definition at line 93 of file Minou.h.

return Base::r
inherited

Definition at line 109 of file Minou.h.

std::vector<std::string> utl::Minou::Base::r
inherited

Definition at line 167 of file Minou.h.


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

, generated on Tue Sep 26 2023.