musrfit 1.10.0
PRunData Class Reference

#include <PMusr.h>

Public Member Functions

 PRunData ()
 
virtual ~PRunData ()
 
virtual Double_t GetDataTimeStart ()
 Returns the start time of the data set in microseconds (μs)
 
virtual Double_t GetDataTimeStep ()
 Returns the time bin width for data in microseconds (μs)
 
virtual Double_t GetTheoryTimeStart ()
 Returns the start time for theory evaluation in microseconds (μs)
 
virtual Double_t GetTheoryTimeStep ()
 Returns the time step for theory evaluation in microseconds (μs)
 
virtual const PDoubleVectorGetX ()
 Returns pointer to x-axis vector (used only for non-μSR data)
 
virtual const PDoubleVectorGetValue ()
 Returns pointer to data value vector (asymmetry, counts, or y-data)
 
virtual const PDoubleVectorGetError ()
 Returns pointer to data error vector (statistical uncertainties)
 
virtual const PDoubleVectorGetXTheory ()
 Returns pointer to x-axis vector for theory (non-μSR only)
 
virtual const PDoubleVectorGetTheory ()
 Returns pointer to theory value vector.
 
virtual void SetDataTimeStart (Double_t dval)
 
virtual void SetDataTimeStep (Double_t dval)
 
virtual void SetTheoryTimeStart (Double_t dval)
 
virtual void SetTheoryTimeStep (Double_t dval)
 
virtual void AppendXValue (Double_t dval)
 
virtual void AppendValue (Double_t dval)
 
virtual void AppendErrorValue (Double_t dval)
 
virtual void AppendXTheoryValue (Double_t dval)
 
virtual void AppendTheoryValue (Double_t dval)
 
virtual void SetTheoryValue (UInt_t i, Double_t dval)
 
virtual void ReplaceTheory (const PDoubleVector &theo)
 

Private Attributes

Double_t fDataTimeStart
 start time for the data set
 
Double_t fDataTimeStep
 time step for the data set, i.e. the time length of a bin
 
PDoubleVector fX
 x-axis vector. Only used for non-muSR
 
PDoubleVector fValue
 data vector
 
PDoubleVector fError
 data error vector
 
Double_t fTheoryTimeStart
 start time of the theory
 
Double_t fTheoryTimeStep
 time step of the theory, i.e. the time length of a bin
 
PDoubleVector fXTheory
 x-axis vector. Only used for non-muSR
 
PDoubleVector fTheory
 theory vector
 

Detailed Description

Container for pre-processed data and theory vectors used in fitting.

This class stores the processed data (after background subtraction, packing, asymmetry calculation, etc.) that is actually used in the fit, along with the corresponding theory values. This is not raw histogram data - it represents the final data points and theory that enter the χ² calculation.

The class maintains separate time grids for data and theory, allowing theory evaluation at higher resolution than the data binning. For non-μSR fits, x-axis vectors are also stored.

Definition at line 451 of file PMusr.h.

Constructor & Destructor Documentation

◆ PRunData()

PRunData::PRunData ( )

Constructor

Definition at line 50 of file PMusr.cpp.

References fDataTimeStart, fDataTimeStep, fError, fTheory, fTheoryTimeStart, fTheoryTimeStep, fValue, fX, fXTheory, and PMUSR_UNDEFINED.

◆ ~PRunData()

PRunData::~PRunData ( )
virtual

Destructor.

Definition at line 69 of file PMusr.cpp.

References fError, fTheory, fValue, fX, and fXTheory.

Member Function Documentation

◆ AppendErrorValue()

virtual void PRunData::AppendErrorValue ( Double_t dval)
inlinevirtual

Appends an error value to the error vector

Parameters
dvalError/uncertainty value to append

Definition at line 497 of file PMusr.h.

References fError.

Referenced by PRunAsymmetry::PrepareFitData(), PRunAsymmetryBNMR::PrepareFitData(), PRunAsymmetry::PrepareViewData(), and PRunAsymmetryBNMR::PrepareViewData().

◆ AppendTheoryValue()

virtual void PRunData::AppendTheoryValue ( Double_t dval)
inlinevirtual

Appends a value to the theory vector

Parameters
dvalTheory value to append

Definition at line 503 of file PMusr.h.

References fTheory.

◆ AppendValue()

virtual void PRunData::AppendValue ( Double_t dval)
inlinevirtual

Appends a value to the data vector

Parameters
dvalData value to append

Definition at line 494 of file PMusr.h.

References fValue.

Referenced by PRunAsymmetry::PrepareFitData(), PRunAsymmetryBNMR::PrepareFitData(), PRunAsymmetry::PrepareViewData(), and PRunAsymmetryBNMR::PrepareViewData().

◆ AppendXTheoryValue()

virtual void PRunData::AppendXTheoryValue ( Double_t dval)
inlinevirtual

Appends a value to the theory x-axis vector (non-μSR only)

Parameters
dvalX-coordinate value for theory

Definition at line 500 of file PMusr.h.

References fXTheory.

◆ AppendXValue()

virtual void PRunData::AppendXValue ( Double_t dval)
inlinevirtual

Appends a value to the x-axis vector (non-μSR only)

Parameters
dvalX-coordinate value to append

Definition at line 491 of file PMusr.h.

References fX.

◆ GetDataTimeStart()

virtual Double_t PRunData::GetDataTimeStart ( )
inlinevirtual

Returns the start time of the data set in microseconds (μs)

Definition at line 457 of file PMusr.h.

References fDataTimeStart.

Referenced by PMusrCanvas::HandleDataSet(), and musrfit_write_ascii().

◆ GetDataTimeStep()

virtual Double_t PRunData::GetDataTimeStep ( )
inlinevirtual

Returns the time bin width for data in microseconds (μs)

Definition at line 459 of file PMusr.h.

References fDataTimeStep.

Referenced by PMusrCanvas::HandleDataSet(), musrfit_write_ascii(), and musrfit_write_root().

◆ GetError()

virtual const PDoubleVector * PRunData::GetError ( )
inlinevirtual

◆ GetTheory()

virtual const PDoubleVector * PRunData::GetTheory ( )
inlinevirtual

Returns pointer to theory value vector.

Definition at line 474 of file PMusr.h.

References fTheory.

Referenced by PMusrCanvas::HandleDataSet(), PMusrCanvas::HandleNonMusrDataSet(), musrfit_write_ascii(), and musrfit_write_root().

◆ GetTheoryTimeStart()

virtual Double_t PRunData::GetTheoryTimeStart ( )
inlinevirtual

Returns the start time for theory evaluation in microseconds (μs)

Definition at line 461 of file PMusr.h.

References fTheoryTimeStart.

Referenced by PMusrCanvas::HandleDataSet().

◆ GetTheoryTimeStep()

virtual Double_t PRunData::GetTheoryTimeStep ( )
inlinevirtual

Returns the time step for theory evaluation in microseconds (μs)

Definition at line 463 of file PMusr.h.

References fTheoryTimeStep.

Referenced by PMusrCanvas::HandleDataSet().

◆ GetValue()

virtual const PDoubleVector * PRunData::GetValue ( )
inlinevirtual

◆ GetX()

virtual const PDoubleVector * PRunData::GetX ( )
inlinevirtual

Returns pointer to x-axis vector (used only for non-μSR data)

Definition at line 466 of file PMusr.h.

References fX.

Referenced by PMusrCanvas::HandleNonMusrDataSet().

◆ GetXTheory()

virtual const PDoubleVector * PRunData::GetXTheory ( )
inlinevirtual

Returns pointer to x-axis vector for theory (non-μSR only)

Definition at line 472 of file PMusr.h.

References fXTheory.

Referenced by PMusrCanvas::HandleNonMusrDataSet().

◆ ReplaceTheory()

void PRunData::ReplaceTheory ( const PDoubleVector & theo)
virtual

Replaces the entire theory vector with a new one.

Parameters
theoNew theory vector to replace current theory

Replaces the theory vector.

Parameters
theovector which is replacing the current theory vector

Definition at line 103 of file PMusr.cpp.

References fTheory.

◆ SetDataTimeStart()

virtual void PRunData::SetDataTimeStart ( Double_t dval)
inlinevirtual

Sets the start time of the data set in microseconds (μs)

Parameters
dvalStart time value

Definition at line 478 of file PMusr.h.

References fDataTimeStart.

◆ SetDataTimeStep()

virtual void PRunData::SetDataTimeStep ( Double_t dval)
inlinevirtual

Sets the time bin width for data in microseconds (μs)

Parameters
dvalTime step value

Definition at line 481 of file PMusr.h.

References fDataTimeStep.

◆ SetTheoryTimeStart()

virtual void PRunData::SetTheoryTimeStart ( Double_t dval)
inlinevirtual

Sets the start time for theory evaluation in microseconds (μs)

Parameters
dvalStart time value

Definition at line 484 of file PMusr.h.

References fTheoryTimeStart.

◆ SetTheoryTimeStep()

virtual void PRunData::SetTheoryTimeStep ( Double_t dval)
inlinevirtual

Sets the time step for theory evaluation in microseconds (μs)

Parameters
dvalTime step value

Definition at line 487 of file PMusr.h.

References fTheoryTimeStep.

◆ SetTheoryValue()

void PRunData::SetTheoryValue ( UInt_t idx,
Double_t dval )
virtual

Sets a specific theory value at given index.

Parameters
iIndex in theory vector
dvalNew theory value

Sets a value of the theory vector

Parameters
idxindex of the theory vector
dvalvalue to be set.

Definition at line 87 of file PMusr.cpp.

References fTheory.

Member Data Documentation

◆ fDataTimeStart

Double_t PRunData::fDataTimeStart
private

start time for the data set

Definition at line 522 of file PMusr.h.

Referenced by GetDataTimeStart(), PRunData(), and SetDataTimeStart().

◆ fDataTimeStep

Double_t PRunData::fDataTimeStep
private

time step for the data set, i.e. the time length of a bin

Definition at line 523 of file PMusr.h.

Referenced by GetDataTimeStep(), PRunData(), and SetDataTimeStep().

◆ fError

PDoubleVector PRunData::fError
private

data error vector

Definition at line 526 of file PMusr.h.

Referenced by AppendErrorValue(), GetError(), PRunData(), and ~PRunData().

◆ fTheory

PDoubleVector PRunData::fTheory
private

theory vector

Definition at line 531 of file PMusr.h.

Referenced by AppendTheoryValue(), GetTheory(), PRunData(), ReplaceTheory(), SetTheoryValue(), and ~PRunData().

◆ fTheoryTimeStart

Double_t PRunData::fTheoryTimeStart
private

start time of the theory

Definition at line 528 of file PMusr.h.

Referenced by GetTheoryTimeStart(), PRunData(), and SetTheoryTimeStart().

◆ fTheoryTimeStep

Double_t PRunData::fTheoryTimeStep
private

time step of the theory, i.e. the time length of a bin

Definition at line 529 of file PMusr.h.

Referenced by GetTheoryTimeStep(), PRunData(), and SetTheoryTimeStep().

◆ fValue

PDoubleVector PRunData::fValue
private

data vector

Definition at line 525 of file PMusr.h.

Referenced by AppendValue(), GetValue(), PRunData(), and ~PRunData().

◆ fX

PDoubleVector PRunData::fX
private

x-axis vector. Only used for non-muSR

Definition at line 524 of file PMusr.h.

Referenced by AppendXValue(), GetX(), PRunData(), and ~PRunData().

◆ fXTheory

PDoubleVector PRunData::fXTheory
private

x-axis vector. Only used for non-muSR

Definition at line 530 of file PMusr.h.

Referenced by AppendXTheoryValue(), GetXTheory(), PRunData(), and ~PRunData().


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