|
musrfit 1.10.0
|
#include <PMusr.h>
Public Member Functions | |
| PNonMusrRawRunData () | |
| virtual | ~PNonMusrRawRunData () |
| virtual Bool_t | FromAscii () |
| Returns true if data was loaded from ASCII file, false for db/dat format. | |
| virtual const PStringVector * | GetLabels () |
| Returns pointer to vector of axis/column labels. | |
| virtual const PStringVector * | GetDataTags () |
| Returns pointer to vector of data tags (identifiers for each data column) | |
| virtual const std::vector< PDoubleVector > * | GetData () |
| Returns pointer to vector of data columns. | |
| virtual const std::vector< PDoubleVector > * | GetErrData () |
| Returns pointer to vector of error data columns. | |
| virtual void | SetFromAscii (const Bool_t bval) |
| virtual void | SetSize (const UInt_t size) |
| virtual void | AppendLabel (const TString str) |
| virtual void | SetLabel (const UInt_t idx, const TString str) |
| virtual void | AppendDataTag (const TString str) |
| virtual void | AppendData (const PDoubleVector &data) |
| virtual void | AppendErrData (const PDoubleVector &data) |
| virtual void | AppendSubData (const UInt_t idx, const Double_t dval) |
| virtual void | AppendSubErrData (const UInt_t idx, const Double_t dval) |
Private Attributes | |
| Bool_t | fFromAscii |
| if true: data file was an ascii input file, otherwise it is a db/dat input file | |
| PStringVector | fLabels |
| vector of all labels (used for x-, y-axis title in view) | |
| PStringVector | fDataTags |
| vector of all data tags | |
| std::vector< PDoubleVector > | fData |
| vector of all data | |
| std::vector< PDoubleVector > | fErrData |
| vector of all data errors | |
Container for non-μSR raw data (general x-y data sets).
This class handles raw data for non-μSR experiments (fit type NON_MUSR), supporting both ASCII file input and database (db/dat) file formats. It stores multiple data columns with labels, allowing general x-y fitting beyond traditional μSR time histograms.
Use cases: Fitting arbitrary x-y data, susceptibility vs. temperature, field scans, or any other non-time-domain measurements.
| PNonMusrRawRunData::PNonMusrRawRunData | ( | ) |
|
virtual |
|
inlinevirtual |
Appends a complete data column vector
| data | Data vector to append |
Definition at line 590 of file PMusr.h.
References fData.
Referenced by PRunDataHandler::ReadAsciiFile(), and PRunDataHandler::ReadDBFile().
|
inlinevirtual |
Appends a data tag identifier
| str | Data tag string |
Definition at line 587 of file PMusr.h.
References fDataTags.
Referenced by PRunDataHandler::ReadDatFile(), and PRunDataHandler::ReadDBFile().
|
inlinevirtual |
Appends a complete error data column vector
| data | Error data vector to append |
Definition at line 593 of file PMusr.h.
References fErrData.
Referenced by PRunDataHandler::ReadAsciiFile(), and PRunDataHandler::ReadDBFile().
|
inlinevirtual |
Appends a label to the label vector
| str | Label string (e.g., "Temperature (K)", "Field (G)") |
Definition at line 575 of file PMusr.h.
References fLabels.
Referenced by PRunDataHandler::ReadAsciiFile(), PRunDataHandler::ReadDatFile(), and PRunDataHandler::ReadDBFile().
|
virtual |
Appends a single value to a specific data column.
| idx | Index of data column |
| dval | Data value to append |
Modifies the data set at position idx. In case idx is larger than the number of data sets, only a warning will be sent to stderr.
| idx | index at which position the label should be set |
| dval | double value to be set |
Definition at line 209 of file PMusr.cpp.
References fData.
Referenced by PRunDataHandler::ReadDatFile(), and PRunDataHandler::ReadDBFile().
|
virtual |
Appends a single error value to a specific error data column.
| idx | Index of error data column |
| dval | Error value to append |
Modifies the error-data set at position idx. In case idx is larger than the number of error-data sets, only a warning will be sent to stderr.
| idx | index at which position the label should be set |
| dval | double value to be set |
Definition at line 229 of file PMusr.cpp.
References fErrData.
Referenced by PRunDataHandler::ReadDatFile(), and PRunDataHandler::ReadDBFile().
|
inlinevirtual |
Returns true if data was loaded from ASCII file, false for db/dat format.
Definition at line 552 of file PMusr.h.
References fFromAscii.
Referenced by PRunListCollection::GetXAxisTitle(), and PRunListCollection::GetYAxisTitle().
|
inlinevirtual |
Returns pointer to vector of data columns.
Definition at line 558 of file PMusr.h.
References fData.
Referenced by PRunDataHandler::ReadDatFile(), and PRunDataHandler::ReadDBFile().
|
inlinevirtual |
Returns pointer to vector of data tags (identifiers for each data column)
Definition at line 556 of file PMusr.h.
References fDataTags.
Referenced by PRunDataHandler::ReadDBFile().
|
inlinevirtual |
Returns pointer to vector of error data columns.
Definition at line 560 of file PMusr.h.
References fErrData.
Referenced by PRunDataHandler::ReadDatFile(), and PRunDataHandler::ReadDBFile().
|
inlinevirtual |
Returns pointer to vector of axis/column labels.
Definition at line 554 of file PMusr.h.
References fLabels.
Referenced by PRunListCollection::GetXAxisTitle(), PRunListCollection::GetYAxisTitle(), and PRunDataHandler::ReadDBFile().
|
inlinevirtual |
Sets the flag indicating if data is from ASCII format
| bval | True for ASCII, false for db/dat format |
Definition at line 564 of file PMusr.h.
References fFromAscii.
Referenced by PRunDataHandler::ReadAsciiFile(), PRunDataHandler::ReadDatFile(), and PRunDataHandler::ReadDBFile().
|
virtual |
Sets or replaces a label at specific index.
| idx | Index in label vector |
| str | New label string |
Modifies a label at position idx. In case idx is larges than the number of labels, only a warning will be sent to stderr.
| idx | index at which position the label should be set |
| str | string to be set |
Definition at line 189 of file PMusr.cpp.
References fLabels.
Referenced by PRunDataHandler::ReadAsciiFile().
|
virtual |
Pre-allocates space for a given number of data columns.
| size | Number of data columns to allocate |
Allows to set the number of data sets before filling it. This is needed when reading dat-files generated from msr2data.
| size | number of data sets |
Definition at line 162 of file PMusr.cpp.
References fData, and fErrData.
Referenced by PRunDataHandler::ReadDatFile().
|
private |
vector of all data
Definition at line 615 of file PMusr.h.
Referenced by AppendData(), AppendSubData(), GetData(), PNonMusrRawRunData(), SetSize(), and ~PNonMusrRawRunData().
|
private |
vector of all data tags
Definition at line 614 of file PMusr.h.
Referenced by AppendDataTag(), GetDataTags(), PNonMusrRawRunData(), and ~PNonMusrRawRunData().
|
private |
vector of all data errors
Definition at line 616 of file PMusr.h.
Referenced by AppendErrData(), AppendSubErrData(), GetErrData(), PNonMusrRawRunData(), SetSize(), and ~PNonMusrRawRunData().
|
private |
if true: data file was an ascii input file, otherwise it is a db/dat input file
Definition at line 612 of file PMusr.h.
Referenced by FromAscii(), PNonMusrRawRunData(), and SetFromAscii().
|
private |
vector of all labels (used for x-, y-axis title in view)
Definition at line 613 of file PMusr.h.
Referenced by AppendLabel(), GetLabels(), PNonMusrRawRunData(), SetLabel(), and ~PNonMusrRawRunData().