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

#include <PCGFitter.h>

Inheritance diagram for FdProfileConstrainedGeometryFit::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 > &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::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)
 
bool Underground (const double chi0, const fevt::Eye &eye)
 

Protected Attributes

FdApertureLightFinderKG::FdApertureLightFinder fApertureLightFinder
 
ApertureLight fApLight
 
EApLightMethod fApLightMethod
 
bool fCheckUnderground = false
 
ChiZeroRegressionfChi0Regression = nullptr
 
bool fDeex = false
 
bool fDelZeroFlux = false
 
fevt::EyefEye = 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::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 PCGFitter.h.

Member Enumeration Documentation

Enumerator
eExternal 
eInternal 
eCallForEach 

Definition at line 44 of file PCGFitter.h.

Constructor & Destructor Documentation

FdProfileConstrainedGeometryFit::PCGFitter::PCGFitter ( )
inline

Definition at line 29 of file PCGFitter.h.

Member Function Documentation

bool FdProfileConstrainedGeometryFit::PCGFitter::AdjustGeometry ( fevt::Eye eyeCopy) const
protected
double FdProfileConstrainedGeometryFit::PCGFitter::CombinedChi2 ( const double  chi0,
double &  rp,
double &  t0,
const fevt::PCGFData::EPCGFStatus  status,
const bool  verbose = false 
)
protected
Eye & FdProfileConstrainedGeometryFit::PCGFitter::CopyEye ( const fevt::Eye eye,
evt::Event eventCopy 
) const
protected
void FdProfileConstrainedGeometryFit::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 FdProfileConstrainedGeometryFit::PCGFitter::FillParams ( fevt::Eye eyeCopy,
const double  chi0,
const double  rp,
const double  t0 
) const
protected

Definition at line 618 of file 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 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.

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

Definition at line 405 of file 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 FdProfileConstrainedGeometryFit::PCGFitter::Run ( fevt::Eye eye)
bool FdProfileConstrainedGeometryFit::PCGFitter::ScanChi0 ( fevt::Eye eye,
double  step = 1*utl::degree,
double  from = 10*utl::degree,
double  to = 170*utl::degree 
)
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 FdProfileConstrainedGeometryFit::PCGFitter::Underground ( const double  chi0,
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 FdProfileConstrainedGeometryFit::PCGFitter::fApertureLightFinder
protected

Definition at line 55 of file PCGFitter.h.

ApertureLight FdProfileConstrainedGeometryFit::PCGFitter::fApLight
protected

Definition at line 56 of file PCGFitter.h.

EApLightMethod FdProfileConstrainedGeometryFit::PCGFitter::fApLightMethod
protected

Definition at line 57 of file PCGFitter.h.

bool FdProfileConstrainedGeometryFit::PCGFitter::fCheckUnderground = false
protected

Definition at line 58 of file PCGFitter.h.

ChiZeroRegression* FdProfileConstrainedGeometryFit::PCGFitter::fChi0Regression = nullptr
protected

Definition at line 52 of file PCGFitter.h.

bool FdProfileConstrainedGeometryFit::PCGFitter::fDeex = false
protected

Definition at line 67 of file PCGFitter.h.

bool FdProfileConstrainedGeometryFit::PCGFitter::fDelZeroFlux = false
protected

Definition at line 65 of file PCGFitter.h.

fevt::Eye* FdProfileConstrainedGeometryFit::PCGFitter::fEye = nullptr
protected

Definition at line 51 of file PCGFitter.h.

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

Definition at line 95 of file PCGFitter.h.

bool FdProfileConstrainedGeometryFit::PCGFitter::fPrescan = false
protected

Definition at line 59 of file PCGFitter.h.

ProfileChi2 FdProfileConstrainedGeometryFit::PCGFitter::fProfileFit
protected

Definition at line 53 of file PCGFitter.h.

bool FdProfileConstrainedGeometryFit::PCGFitter::fRealAtm = false
protected

Definition at line 66 of file PCGFitter.h.

bool FdProfileConstrainedGeometryFit::PCGFitter::fScanOnly = false
protected

Definition at line 60 of file PCGFitter.h.

double FdProfileConstrainedGeometryFit::PCGFitter::fScanStart = 0
protected

Definition at line 62 of file PCGFitter.h.

double FdProfileConstrainedGeometryFit::PCGFitter::fScanStep = 0
protected

Definition at line 61 of file PCGFitter.h.

double FdProfileConstrainedGeometryFit::PCGFitter::fScanStop = 0
protected

Definition at line 63 of file PCGFitter.h.

bool FdProfileConstrainedGeometryFit::PCGFitter::fUseLightFlux = false
protected

Definition at line 64 of file 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.