Belle II Software  release-08-01-10
PedeResult Class Reference

Class to process Pede result file(s) More...

#include <PedeResult.h>

Collaboration diagram for PedeResult:

Classes

struct  parameterData
 Struct to hold data for a parameter. More...
 

Public Member Functions

 PedeResult ()
 Default constructor, use read(...) to init the object.
 
 PedeResult (const std::string &filename)
 Constructor which loads given file. More...
 
void read (std::string filename="millepede.res")
 Reads the result file and inits the object.
 
void readEigenFile (std::string filename="millepede.eve")
 Reads file with eigen-vector/numbers.
 
bool isValid ()
 Was the object initialized properly from a result file?
 
void dump ()
 Dump the content to std::cout.
 
int getNoParameters () const
 Get number of parameters in result (for looping over)
 
int getNoDeterminedParameters () const
 Get number of determined parameters (with correction)
 
int getParameterIndex (int parameterLabel)
 Get index of parameter with given label.
 
unsigned int getParameterLabel (unsigned int parameterIndex)
 Get label of parameter at index.
 
double getParameterCorrection (unsigned int parameterIndex)
 Get determined correction of parameter at index.
 
double getParameterError (unsigned int parameterIndex)
 Get correction error of parameter at index.
 
double getParameterPresigma (unsigned int parameterIndex)
 Get presigma of parameter at index.
 
bool isParameterFixed (unsigned int parameterIndex)
 Is parameter at given index fixed?
 
bool isParameterDetermined (unsigned int parameterIndex)
 Is parameter at given index determined?
 
int getNoEigenPairs () const
 Get the number of eigenvectors(numbers) in eigen file.
 
double getEigenNumber (unsigned int eigenPairIndex)
 Get eigennumber at given index.
 
double getEigenVectorElement (unsigned int eigenPairIndex, unsigned int parameterIndex)
 Get eigenvector at given index.
 

Private Member Functions

bool outOfBounds (int iparam)
 Is index out of valid range?
 

Private Attributes

std::vector< parameterDatadata
 Vector with all the parameter data.
 
std::vector< double > eigenNumbers
 Vector of loaded eigennumbers.
 
bool valid
 Flag to check if data wa loaded.
 
std::map< int, int > labelIndices
 Map to link parameter labels and their indices in result.
 
int noDeterminedParams {0}
 Number of parameters actually determined.
 

Detailed Description

Class to process Pede result file(s)

Definition at line 22 of file PedeResult.h.

Constructor & Destructor Documentation

◆ PedeResult()

PedeResult ( const std::string &  filename)
explicit

Constructor which loads given file.

Parameters
filenameName of the result file (millepede.res)

Definition at line 126 of file PedeResult.cc.

126  : data(), eigenNumbers(), valid(false), labelIndices()
127  {
128  read(filename);
129  }
bool valid
Flag to check if data wa loaded.
Definition: PedeResult.h:105
void read(std::string filename="millepede.res")
Reads the result file and inits the object.
Definition: PedeResult.cc:95
std::map< int, int > labelIndices
Map to link parameter labels and their indices in result.
Definition: PedeResult.h:107
std::vector< double > eigenNumbers
Vector of loaded eigennumbers.
Definition: PedeResult.h:103
std::vector< parameterData > data
Vector with all the parameter data.
Definition: PedeResult.h:101

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