Belle II Software development
|
Class to process Pede result file(s) More...
#include <PedeResult.h>
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. | |
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< parameterData > | data |
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. | |
Class to process Pede result file(s)
Definition at line 22 of file PedeResult.h.
|
inline |
Default constructor, use read(...) to init the object.
Definition at line 25 of file PedeResult.h.
|
explicit |
Constructor which loads given file.
filename | Name of the result file (millepede.res) |
Definition at line 126 of file PedeResult.cc.
void dump | ( | ) |
Dump the content to std::cout.
Definition at line 176 of file PedeResult.cc.
double getEigenNumber | ( | unsigned int | eigenPairIndex | ) |
double getEigenVectorElement | ( | unsigned int | eigenPairIndex, |
unsigned int | parameterIndex | ||
) |
Get eigenvector at given index.
Definition at line 166 of file PedeResult.cc.
|
inline |
Get number of determined parameters (with correction)
Definition at line 40 of file PedeResult.h.
|
inline |
|
inline |
double getParameterCorrection | ( | unsigned int | parameterIndex | ) |
Get determined correction of parameter at index.
Definition at line 136 of file PedeResult.cc.
double getParameterError | ( | unsigned int | parameterIndex | ) |
Get correction error of parameter at index.
Definition at line 141 of file PedeResult.cc.
int getParameterIndex | ( | int | parameterLabel | ) |
Get index of parameter with given label.
Definition at line 27 of file PedeResult.cc.
unsigned int getParameterLabel | ( | unsigned int | parameterIndex | ) |
Get label of parameter at index.
Definition at line 131 of file PedeResult.cc.
double getParameterPresigma | ( | unsigned int | parameterIndex | ) |
bool isParameterDetermined | ( | unsigned int | parameterIndex | ) |
Is parameter at given index determined?
Definition at line 156 of file PedeResult.cc.
bool isParameterFixed | ( | unsigned int | parameterIndex | ) |
|
inline |
|
inlineprivate |
Is index out of valid range?
Definition at line 64 of file PedeResult.h.
void read | ( | std::string | filename = "millepede.res" | ) |
Reads the result file and inits the object.
Definition at line 95 of file PedeResult.cc.
void readEigenFile | ( | std::string | filename = "millepede.eve" | ) |
Reads file with eigen-vector/numbers.
Definition at line 35 of file PedeResult.cc.
|
private |
Vector with all the parameter data.
Definition at line 101 of file PedeResult.h.
|
private |
Vector of loaded eigennumbers.
Definition at line 103 of file PedeResult.h.
|
private |
Map to link parameter labels and their indices in result.
Definition at line 107 of file PedeResult.h.
|
private |
Number of parameters actually determined.
Definition at line 109 of file PedeResult.h.
|
private |
Flag to check if data wa loaded.
Definition at line 105 of file PedeResult.h.