Class LensPart

Class Documentation

class LensPart

Holds one matrix for the lens and information about the rigidity range.

Public Functions

inline LensPart()
inline LensPart(const std::string &filename, double rigidityMin, double rigidityMax)

File containing the matrix to be used in the range rigidityMin, rigidityMax in Joule.

inline ~LensPart()
inline void loadMatrixFromFile()

Loads the matrix from file.

inline const std::string &getFilename()

Returns the filename of the matrix.

inline double getMaximumOfSumsOfColumns()

Calculates the maximum of the sums of columns for the matrix.

inline double getMinimumRigidity()

Returns the minimum of the rigidity range for the lenspart in eV.

inline double getMaximumRigidity()

Returns the maximum of the rigidity range for the lenspart in eV.

inline ModelMatrixType &getMatrix()

Returns the modelmatrix.

inline void setMatrix(const ModelMatrixType &m)

Sets the modelmatrix.