mupp 1.1.0
Loading...
Searching...
No Matches
PmuppRun Class Reference

Represents all fit parameters from a single experimental run. More...

#include <Pmupp.h>

Public Member Functions

 PmuppRun ()
 Default constructor. Initializes an empty run with invalid number.
 
 ~PmuppRun ()
 Destructor. Cleans up the run data.
 
void Clear ()
 Clears all run data and resets to initial state.
 
void SetName (QString name)
 Sets the run name/title.
 
void SetNumber (int ival)
 Sets the run number.
 
void AddParam (PmuppParam param)
 Adds a parameter to this run.
 
int GetNumber ()
 Gets the run number.
 
QString GetName ()
 Gets the run name/title.
 
int GetNoOfParam ()
 Gets the number of parameters in this run.
 
PmuppParam GetParam (unsigned int idx)
 Retrieves a parameter from a run by index.
 

Private Attributes

int fNumber
 run number identifier
 
QString fName
 descriptive name or title of the run
 
QVector< PmuppParamfParam
 vector of all fit parameters for this run
 

Detailed Description

Represents all fit parameters from a single experimental run.

The PmuppRun class contains a complete set of parameters from one muSR run, including the run number, run name/title, and a vector of all fit parameters (PmuppParam objects) associated with that run.

This class forms the intermediate level in the data hierarchy: Parameter -> Run -> Collection

Definition at line 156 of file Pmupp.h.

Constructor & Destructor Documentation

◆ PmuppRun()

PmuppRun::PmuppRun ( )
inline

Default constructor. Initializes an empty run with invalid number.

Definition at line 161 of file Pmupp.h.

◆ ~PmuppRun()

PmuppRun::~PmuppRun ( )
inline

Destructor. Cleans up the run data.

Definition at line 166 of file Pmupp.h.

Member Function Documentation

◆ AddParam()

void PmuppRun::AddParam ( PmuppParam param)
inline

Adds a parameter to this run.

Parameters
paramthe PmuppParam object to be added to the parameter list

Definition at line 189 of file Pmupp.h.

◆ Clear()

void PmuppRun::Clear ( )
inline

Clears all run data and resets to initial state.

Definition at line 171 of file Pmupp.h.

◆ GetName()

QString PmuppRun::GetName ( )
inline

Gets the run name/title.

Returns
the run name or title string

Definition at line 201 of file Pmupp.h.

◆ GetNoOfParam()

int PmuppRun::GetNoOfParam ( )
inline

Gets the number of parameters in this run.

Returns
the count of parameters stored in this run

Definition at line 207 of file Pmupp.h.

◆ GetNumber()

int PmuppRun::GetNumber ( )
inline

Gets the run number.

Returns
the run number (may be -1 if not set)

Definition at line 195 of file Pmupp.h.

◆ GetParam()

PmuppParam PmuppRun::GetParam ( unsigned int idx)

Retrieves a parameter from a run by index.

Returns a copy of the parameter at the specified index. If the index is out of range, returns an empty (default-constructed) parameter.

Parameters
idxzero-based index of the parameter to retrieve
Returns
the parameter at the specified index, or an empty parameter if out of range

Definition at line 184 of file Pmupp.cpp.

◆ SetName()

void PmuppRun::SetName ( QString name)
inline

Sets the run name/title.

Parameters
namethe run name or title string to be set

Definition at line 177 of file Pmupp.h.

◆ SetNumber()

void PmuppRun::SetNumber ( int ival)
inline

Sets the run number.

Parameters
ivalthe run number to be set

Definition at line 183 of file Pmupp.h.

Member Data Documentation

◆ fName

QString PmuppRun::fName
private

descriptive name or title of the run

Definition at line 213 of file Pmupp.h.

◆ fNumber

int PmuppRun::fNumber
private

run number identifier

Definition at line 212 of file Pmupp.h.

◆ fParam

QVector<PmuppParam> PmuppRun::fParam
private

vector of all fit parameters for this run

Definition at line 214 of file Pmupp.h.


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