CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Static Public Attributes | Static Private Member Functions | Static Private Attributes
Fit Class Reference

#include <Fit.h>

Public Member Functions

 Fit ()
 
 ~Fit ()
 

Static Public Member Functions

static void calculateSimulatedMeasurementsWithOriginalValues ()
 
static void dumpEntryAfterFit (ALIFileOut &fileout, const Entry *entry, double entryvalue, ALIbool printErrors=1, ALIbool printOrig=1)
 
static void dumpEntryCorrelations (ALIFileOut &file)
 
static void dumpFittedValues (ALIFileOut &fileout, ALIbool printErrors=1, ALIbool printOrig=1)
 
static void dumpFittedValuesInAllAncestorFrames (ALIFileOut &fileout, ALIbool printErrors=1, ALIbool printOrig=1)
 
static void dumpMatrices ()
 
static ALIint findEntryFitPosition (const ALIstring &opto_name, const ALIstring &entry_name)
 
static ALIbool fitNextEvent (ALIuint &nEvent)
 
static ALIMatrixGetAtWAMatrix ()
 
static FitgetInstance ()
 
static ALIint noFitIterations ()
 
static void printCentreInOptOFrame (const OpticalObject *opto, const OpticalObject *optoAncestor, ALIFileOut &fileout, ALIbool printErrors=1, ALIbool printOrig=1)
 
static void PrintChi2 (ALIdouble fit_quality, ALIbool isFirst)
 
static void printRotationAnglesInOptOFrame (const OpticalObject *opto, const OpticalObject *optoAncestor, ALIFileOut &fileout, ALIbool printErrors=1, ALIbool printOrig=1)
 
static void setFittableEntries ()
 
static void startFit ()
 

Static Public Attributes

static ALIuint nEvent = 1
 

Static Private Member Functions

static void addDaMatrixToEntries ()
 
static void CheckIfFitPossible ()
 
static int CheckIfMeasIsProportionalToAnother (ALIuint measNo)
 
static void CreateMatrices ()
 
static void deleteMatrices ()
 
static void evaluateFitQuality (const FitQuality fq, const double daFactor)
 
static void FillMatricesWithCalibratedParameters ()
 
static void FillMatricesWithMeasurements ()
 
static FitQuality fitParameters (const double daFactor)
 
static double getEntryValue (const Entry *entry)
 
static FitQuality getFitQuality (const ALIbool canBeGood=TRUE)
 
static std::string GetMeasurementName (int meas)
 
static ALIdouble GetSChi2 (ALIbool useDa)
 
static void multiplyMatrices ()
 
static void PropagateErrors ()
 
static void redoMatrices ()
 
static void setCorrelationFromParamFitted (const pss &entry1, const pss &entry2, ALIdouble correl)
 
static void setCorrelationFromParamFitted (const ALIint fit_pos1, const ALIint fit_pos2, ALIdouble correl)
 
static void setCorrelationsInWMatrix ()
 
static void substractLastDisplacementToEntries (const ALIdouble factor)
 
static void WriteVisualisationFiles ()
 

Static Private Attributes

static ALIint _NoColumnsA
 
static ALIint _NoLinesA
 
static ALIMatrixAMatrix
 
static ALIMatrixAtMatrix
 
static ALIMatrixAtWAMatrix
 
static ALIMatrixDaMatrix
 
static Fitinstance = 0
 
static ALIint MaxNoFitIterations = -1
 
static ALIdouble theFitQualityCut = -1
 
static ALIdouble theMinDaFactor = 1.e-8
 
static ALIint theMinimumEntryQuality
 
static ALIint theNoFitIterations
 
static ALIdouble thePreviousIterationFitQuality = DBL_MAX
 
static ALIdouble theRelativeFitQualityCut = -1
 
static ALIMatrixWMatrix
 
static ALIMatrixyfMatrix
 

Detailed Description

Definition at line 34 of file Fit.h.

Constructor & Destructor Documentation

Fit::Fit ( )
inline

Definition at line 38 of file Fit.h.

Fit::~Fit ( )
inline

Definition at line 39 of file Fit.h.

Member Function Documentation

void Fit::addDaMatrixToEntries ( )
staticprivate

Definition at line 1065 of file Fit.cc.

void Fit::calculateSimulatedMeasurementsWithOriginalValues ( )
static

Definition at line 515 of file Fit.cc.

void Fit::CheckIfFitPossible ( )
staticprivate

Definition at line 1539 of file Fit.cc.

int Fit::CheckIfMeasIsProportionalToAnother ( ALIuint  measNo)
staticprivate

Definition at line 1620 of file Fit.cc.

void Fit::CreateMatrices ( )
staticprivate

Definition at line 557 of file Fit.cc.

void Fit::deleteMatrices ( )
staticprivate

Definition at line 538 of file Fit.cc.

void Fit::dumpEntryAfterFit ( ALIFileOut fileout,
const Entry entry,
double  entryvalue,
ALIbool  printErrors = 1,
ALIbool  printOrig = 1 
)
static

Definition at line 1313 of file Fit.cc.

void Fit::dumpEntryCorrelations ( ALIFileOut file)
static

Definition at line 1364 of file Fit.cc.

void Fit::dumpFittedValues ( ALIFileOut fileout,
ALIbool  printErrors = 1,
ALIbool  printOrig = 1 
)
static

Definition at line 1147 of file Fit.cc.

void Fit::dumpFittedValuesInAllAncestorFrames ( ALIFileOut fileout,
ALIbool  printErrors = 1,
ALIbool  printOrig = 1 
)
static

Definition at line 1210 of file Fit.cc.

void Fit::dumpMatrices ( )
static

Definition at line 1416 of file Fit.cc.

static void Fit::evaluateFitQuality ( const FitQuality  fq,
const double  daFactor 
)
staticprivate
void Fit::FillMatricesWithCalibratedParameters ( )
staticprivate

Definition at line 709 of file Fit.cc.

void Fit::FillMatricesWithMeasurements ( )
staticprivate

Definition at line 626 of file Fit.cc.

ALIint Fit::findEntryFitPosition ( const ALIstring opto_name,
const ALIstring entry_name 
)
static

Definition at line 1439 of file Fit.cc.

ALIbool Fit::fitNextEvent ( ALIuint nEvent)
static

Definition at line 149 of file Fit.cc.

FitQuality Fit::fitParameters ( const double  daFactor)
staticprivate

Definition at line 392 of file Fit.cc.

static ALIMatrix* Fit::GetAtWAMatrix ( )
inlinestatic

Definition at line 146 of file Fit.h.

double Fit::getEntryValue ( const Entry entry)
staticprivate

Definition at line 1301 of file Fit.cc.

FitQuality Fit::getFitQuality ( const ALIbool  canBeGood = TRUE)
staticprivate

Definition at line 900 of file Fit.cc.

Fit & Fit::getInstance ( )
static

Definition at line 71 of file Fit.cc.

std::string Fit::GetMeasurementName ( int  meas)
staticprivate

Definition at line 1668 of file Fit.cc.

ALIdouble Fit::GetSChi2 ( ALIbool  useDa)
staticprivate

Definition at line 1000 of file Fit.cc.

void Fit::multiplyMatrices ( )
staticprivate

Definition at line 821 of file Fit.cc.

static ALIint Fit::noFitIterations ( )
inlinestatic

Definition at line 96 of file Fit.h.

void Fit::printCentreInOptOFrame ( const OpticalObject opto,
const OpticalObject optoAncestor,
ALIFileOut fileout,
ALIbool  printErrors = 1,
ALIbool  printOrig = 1 
)
static

Definition at line 1257 of file Fit.cc.

void Fit::PrintChi2 ( ALIdouble  fit_quality,
ALIbool  isFirst 
)
static

Definition at line 1473 of file Fit.cc.

void Fit::printRotationAnglesInOptOFrame ( const OpticalObject opto,
const OpticalObject optoAncestor,
ALIFileOut fileout,
ALIbool  printErrors = 1,
ALIbool  printOrig = 1 
)
static

Definition at line 1289 of file Fit.cc.

void Fit::PropagateErrors ( )
staticprivate

Definition at line 446 of file Fit.cc.

void Fit::redoMatrices ( )
staticprivate

Definition at line 429 of file Fit.cc.

void Fit::setCorrelationFromParamFitted ( const pss entry1,
const pss entry2,
ALIdouble  correl 
)
staticprivate

Definition at line 793 of file Fit.cc.

void Fit::setCorrelationFromParamFitted ( const ALIint  fit_pos1,
const ALIint  fit_pos2,
ALIdouble  correl 
)
staticprivate

Definition at line 809 of file Fit.cc.

void Fit::setCorrelationsInWMatrix ( )
staticprivate

Definition at line 770 of file Fit.cc.

void Fit::setFittableEntries ( )
static

Definition at line 364 of file Fit.cc.

void Fit::startFit ( )
static

Definition at line 105 of file Fit.cc.

void Fit::substractLastDisplacementToEntries ( const ALIdouble  factor)
staticprivate

Definition at line 1119 of file Fit.cc.

void Fit::WriteVisualisationFiles ( )
staticprivate

Definition at line 338 of file Fit.cc.

Member Data Documentation

ALIint Fit::_NoColumnsA
staticprivate

Definition at line 174 of file Fit.h.

ALIint Fit::_NoLinesA
staticprivate

Definition at line 173 of file Fit.h.

ALIMatrix * Fit::AMatrix
staticprivate

Definition at line 160 of file Fit.h.

ALIMatrix * Fit::AtMatrix
staticprivate

Definition at line 161 of file Fit.h.

ALIMatrix * Fit::AtWAMatrix
staticprivate

Definition at line 163 of file Fit.h.

ALIMatrix * Fit::DaMatrix
staticprivate

Definition at line 165 of file Fit.h.

Fit * Fit::instance = 0
staticprivate

Definition at line 158 of file Fit.h.

ALIint Fit::MaxNoFitIterations = -1
staticprivate

Definition at line 198 of file Fit.h.

ALIuint Fit::nEvent = 1
static

Definition at line 204 of file Fit.h.

ALIdouble Fit::theFitQualityCut = -1
staticprivate

Definition at line 190 of file Fit.h.

ALIdouble Fit::theMinDaFactor = 1.e-8
staticprivate

Definition at line 201 of file Fit.h.

ALIint Fit::theMinimumEntryQuality
staticprivate

Definition at line 184 of file Fit.h.

ALIint Fit::theNoFitIterations
staticprivate

Definition at line 196 of file Fit.h.

ALIdouble Fit::thePreviousIterationFitQuality = DBL_MAX
staticprivate

Definition at line 187 of file Fit.h.

ALIdouble Fit::theRelativeFitQualityCut = -1
staticprivate

Definition at line 193 of file Fit.h.

ALIMatrix * Fit::WMatrix
staticprivate

Definition at line 162 of file Fit.h.

ALIMatrix * Fit::yfMatrix
staticprivate

Definition at line 170 of file Fit.h.