28 explicit PedeResult(
const std::string& filename);
30 void read(std::string filename =
"millepede.res");
64 bool outOfBounds(
int iparam) {
if (iparam < 0)
return true;
if ((
unsigned int)iparam >=
data.size())
return true;
return false;}
77 parameterData(
int index_,
int label_,
double correction_,
double error_,
double presigma_)
101 std::vector<parameterData>
data;
Class to process Pede result file(s)
void readEigenFile(std::string filename="millepede.eve")
Reads file with eigen-vector/numbers.
bool valid
Flag to check if data wa loaded.
double getParameterCorrection(unsigned int parameterIndex)
Get determined correction of parameter at index.
int getNoDeterminedParameters() const
Get number of determined parameters (with correction)
bool isParameterDetermined(unsigned int parameterIndex)
Is parameter at given index determined?
int getNoEigenPairs() const
Get the number of eigenvectors(numbers) in eigen file.
int noDeterminedParams
Number of parameters actually determined.
PedeResult()
Default constructor, use read(...) to init the object.
double getEigenNumber(unsigned int eigenPairIndex)
Get eigennumber at given index.
int getParameterIndex(int parameterLabel)
Get index of parameter with given label.
int getNoParameters() const
Get number of parameters in result (for looping over)
void read(std::string filename="millepede.res")
Reads the result file and inits the object.
std::map< int, int > labelIndices
Map to link parameter labels and their indices in result.
bool outOfBounds(int iparam)
Is index out of valid range?
bool isParameterFixed(unsigned int parameterIndex)
Is parameter at given index fixed?
unsigned int getParameterLabel(unsigned int parameterIndex)
Get label of parameter at index.
double getParameterPresigma(unsigned int parameterIndex)
Get presigma of parameter at index.
std::vector< double > eigenNumbers
Vector of loaded eigennumbers.
double getParameterError(unsigned int parameterIndex)
Get correction error of parameter at index.
double getEigenVectorElement(unsigned int eigenPairIndex, unsigned int parameterIndex)
Get eigenvector at given index.
std::vector< parameterData > data
Vector with all the parameter data.
void dump()
Dump the content to std::cout.
bool isValid()
Was the object initialized properly from a result file?
Abstract base class for different kinds of events.
Struct to hold data for a parameter.
parameterData(int index_, int label_, double correction_, double error_, double presigma_)
Constructor from parameter data.
double correction
param correction
parameterData()
Constructor.
std::vector< double > eigenweights
Weights of this param in eigenvectors.
double presigma
param presigma