musrfit 1.10.0
PRawRunDataSet Class Reference

#include <PMusr.h>

Public Member Functions

 PRawRunDataSet ()
 
virtual ~PRawRunDataSet ()
 
virtual TString GetTitle ()
 Returns the histogram title string.
 
virtual TString GetName ()
 Returns the histogram name.
 
virtual Int_t GetHistoNo ()
 Returns the histogram number as stored in the data file.
 
virtual Double_t GetTimeZeroBin ()
 Returns the time-zero bin (t0) position.
 
virtual Double_t GetTimeZeroBinEstimated ()
 Returns the estimated time-zero bin from automatic determination.
 
virtual Int_t GetFirstGoodBin ()
 Returns the first bin of good data range (after prompt peak)
 
virtual Int_t GetLastGoodBin ()
 Returns the last bin of good data range.
 
virtual Int_t GetFirstBkgBin ()
 Returns the first bin of background range.
 
virtual Int_t GetLastBkgBin ()
 Returns the last bin of background range.
 
virtual PDoubleVectorGetData ()
 Returns pointer to raw histogram data vector (counts per bin)
 
virtual void Clear ()
 Clears all data from this histogram set.
 
virtual void SetTitle (TString str)
 
virtual void SetName (TString str)
 
virtual void SetHistoNo (Int_t no)
 
virtual void SetTimeZeroBin (Double_t tzb)
 
virtual void SetTimeZeroBinEstimated (Double_t tzb)
 
virtual void SetFirstGoodBin (Int_t fgb)
 
virtual void SetLastGoodBin (Int_t lgb)
 
virtual void SetFirstBkgBin (Int_t fbb)
 
virtual void SetLastBkgBin (Int_t lbb)
 
virtual void SetData (PDoubleVector data)
 

Private Attributes

TString fTitle
 histogram title.
 
TString fName
 keeps the histogram name.
 
Int_t fHistoNo
 corresponds to the histogram number in the data file
 
Double_t fTimeZeroBin
 keeps the time zero bin
 
Double_t fTimeZeroBinEstimated
 keeps the estimated time zero bin
 
Int_t fFirstGoodBin
 keeps the first good bin of the data set
 
Int_t fLastGoodBin
 keeps the last good bin of the data set
 
Int_t fFirstBkgBin
 keeps the first background bin of the data set
 
Int_t fLastBkgBin
 keeps the last background bin of the data set
 
PDoubleVector fData
 keeps the histogram data
 

Detailed Description

Container for a single raw μSR histogram with associated metadata.

This class stores one raw histogram from a μSR experiment along with essential information like time-zero bin, good data range, and background range. It represents the most basic unit of μSR data before any processing or corrections are applied.

Does not contain run header information (temperature, field, etc.) - only the histogram data and its immediate properties.

Definition at line 631 of file PMusr.h.

Constructor & Destructor Documentation

◆ PRawRunDataSet()

PRawRunDataSet::PRawRunDataSet ( )

Constructor

Definition at line 250 of file PMusr.cpp.

References Clear().

◆ ~PRawRunDataSet()

virtual PRawRunDataSet::~PRawRunDataSet ( )
inlinevirtual

Definition at line 634 of file PMusr.h.

References fData.

Member Function Documentation

◆ Clear()

◆ GetData()

virtual PDoubleVector * PRawRunDataSet::GetData ( )
inlinevirtual

◆ GetFirstBkgBin()

virtual Int_t PRawRunDataSet::GetFirstBkgBin ( )
inlinevirtual

Returns the first bin of background range.

Definition at line 651 of file PMusr.h.

References fFirstBkgBin.

◆ GetFirstGoodBin()

virtual Int_t PRawRunDataSet::GetFirstGoodBin ( )
inlinevirtual

Returns the first bin of good data range (after prompt peak)

Definition at line 647 of file PMusr.h.

References fFirstGoodBin.

Referenced by PRunDataHandler::WriteMudFile(), PRunDataHandler::WriteMusrRootFile(), and PRunDataHandler::WritePsiBinFile().

◆ GetHistoNo()

virtual Int_t PRawRunDataSet::GetHistoNo ( )
inlinevirtual

Returns the histogram number as stored in the data file.

Definition at line 641 of file PMusr.h.

References fHistoNo.

Referenced by PRunDataHandler::WriteMusrRootFile().

◆ GetLastBkgBin()

virtual Int_t PRawRunDataSet::GetLastBkgBin ( )
inlinevirtual

Returns the last bin of background range.

Definition at line 653 of file PMusr.h.

References fLastBkgBin.

◆ GetLastGoodBin()

virtual Int_t PRawRunDataSet::GetLastGoodBin ( )
inlinevirtual

Returns the last bin of good data range.

Definition at line 649 of file PMusr.h.

References fLastGoodBin.

Referenced by PRunDataHandler::WriteMudFile(), PRunDataHandler::WriteMusrRootFile(), and PRunDataHandler::WritePsiBinFile().

◆ GetName()

virtual TString PRawRunDataSet::GetName ( )
inlinevirtual

Returns the histogram name.

Definition at line 639 of file PMusr.h.

References fName.

Referenced by PRunDataHandler::WriteMudFile(), PRunDataHandler::WriteMusrRootFile(), and PRunDataHandler::WritePsiBinFile().

◆ GetTimeZeroBin()

virtual Double_t PRawRunDataSet::GetTimeZeroBin ( )
inlinevirtual

◆ GetTimeZeroBinEstimated()

virtual Double_t PRawRunDataSet::GetTimeZeroBinEstimated ( )
inlinevirtual

Returns the estimated time-zero bin from automatic determination.

Definition at line 645 of file PMusr.h.

References fTimeZeroBinEstimated.

◆ GetTitle()

virtual TString PRawRunDataSet::GetTitle ( )
inlinevirtual

Returns the histogram title string.

Definition at line 637 of file PMusr.h.

References fTitle.

◆ SetData()

virtual void PRawRunDataSet::SetData ( PDoubleVector data)
inlinevirtual

◆ SetFirstBkgBin()

virtual void PRawRunDataSet::SetFirstBkgBin ( Int_t fbb)
inlinevirtual

Sets the first bin of background range

Parameters
fbbFirst background bin index

Definition at line 682 of file PMusr.h.

References fFirstBkgBin.

Referenced by PRunDataHandler::ReadMudFile().

◆ SetFirstGoodBin()

virtual void PRawRunDataSet::SetFirstGoodBin ( Int_t fgb)
inlinevirtual

Sets the first bin of good data range

Parameters
fgbFirst good bin index

Definition at line 676 of file PMusr.h.

References fFirstGoodBin.

Referenced by PRunDataHandler::ReadMudFile(), PRunDataHandler::ReadNexusFileIdf1(), PRunDataHandler::ReadNexusFileIdf2(), PRunDataHandler::ReadPsiBinFile(), and PRunDataHandler::ReadRootFile().

◆ SetHistoNo()

virtual void PRawRunDataSet::SetHistoNo ( Int_t no)
inlinevirtual

◆ SetLastBkgBin()

virtual void PRawRunDataSet::SetLastBkgBin ( Int_t lbb)
inlinevirtual

Sets the last bin of background range (note: bug in original code sets fLastGoodBin)

Parameters
lbbLast background bin index

Definition at line 685 of file PMusr.h.

References fLastGoodBin.

Referenced by PRunDataHandler::ReadMudFile().

◆ SetLastGoodBin()

virtual void PRawRunDataSet::SetLastGoodBin ( Int_t lgb)
inlinevirtual

Sets the last bin of good data range

Parameters
lgbLast good bin index

Definition at line 679 of file PMusr.h.

References fLastGoodBin.

Referenced by PRunDataHandler::ReadMudFile(), PRunDataHandler::ReadNexusFileIdf1(), PRunDataHandler::ReadNexusFileIdf2(), PRunDataHandler::ReadPsiBinFile(), and PRunDataHandler::ReadRootFile().

◆ SetName()

virtual void PRawRunDataSet::SetName ( TString str)
inlinevirtual

Sets the histogram name

Parameters
strName string

Definition at line 664 of file PMusr.h.

References fName.

Referenced by PRunDataHandler::ReadPsiBinFile(), and PRunDataHandler::ReadRootFile().

◆ SetTimeZeroBin()

virtual void PRawRunDataSet::SetTimeZeroBin ( Double_t tzb)
inlinevirtual

Sets the time-zero bin position

Parameters
tzbTime-zero bin value (can be fractional)

Definition at line 670 of file PMusr.h.

References fTimeZeroBin.

Referenced by main(), PRunDataHandler::ReadMudFile(), PRunDataHandler::ReadNexusFileIdf1(), PRunDataHandler::ReadNexusFileIdf2(), PRunDataHandler::ReadPsiBinFile(), and PRunDataHandler::ReadRootFile().

◆ SetTimeZeroBinEstimated()

virtual void PRawRunDataSet::SetTimeZeroBinEstimated ( Double_t tzb)
inlinevirtual

Sets the estimated time-zero bin from automatic determination

Parameters
tzbEstimated time-zero bin value

Definition at line 673 of file PMusr.h.

References fTimeZeroBinEstimated.

Referenced by PRunDataHandler::ReadMduAsciiFile(), PRunDataHandler::ReadMudFile(), PRunDataHandler::ReadPsiBinFile(), PRunDataHandler::ReadRootFile(), and PRunDataHandler::ReadWkmFile().

◆ SetTitle()

virtual void PRawRunDataSet::SetTitle ( TString str)
inlinevirtual

Sets the histogram title

Parameters
strTitle string

Definition at line 661 of file PMusr.h.

References fTitle.

Referenced by PRunDataHandler::ReadRootFile().

Member Data Documentation

◆ fData

PDoubleVector PRawRunDataSet::fData
private

keeps the histogram data

Definition at line 700 of file PMusr.h.

Referenced by Clear(), GetData(), SetData(), and ~PRawRunDataSet().

◆ fFirstBkgBin

Int_t PRawRunDataSet::fFirstBkgBin
private

keeps the first background bin of the data set

Definition at line 698 of file PMusr.h.

Referenced by Clear(), GetFirstBkgBin(), and SetFirstBkgBin().

◆ fFirstGoodBin

Int_t PRawRunDataSet::fFirstGoodBin
private

keeps the first good bin of the data set

Definition at line 696 of file PMusr.h.

Referenced by Clear(), GetFirstGoodBin(), and SetFirstGoodBin().

◆ fHistoNo

Int_t PRawRunDataSet::fHistoNo
private

corresponds to the histogram number in the data file

Definition at line 693 of file PMusr.h.

Referenced by Clear(), GetHistoNo(), and SetHistoNo().

◆ fLastBkgBin

Int_t PRawRunDataSet::fLastBkgBin
private

keeps the last background bin of the data set

Definition at line 699 of file PMusr.h.

Referenced by Clear(), and GetLastBkgBin().

◆ fLastGoodBin

Int_t PRawRunDataSet::fLastGoodBin
private

keeps the last good bin of the data set

Definition at line 697 of file PMusr.h.

Referenced by Clear(), GetLastGoodBin(), SetLastBkgBin(), and SetLastGoodBin().

◆ fName

TString PRawRunDataSet::fName
private

keeps the histogram name.

Definition at line 692 of file PMusr.h.

Referenced by Clear(), GetName(), and SetName().

◆ fTimeZeroBin

Double_t PRawRunDataSet::fTimeZeroBin
private

keeps the time zero bin

Definition at line 694 of file PMusr.h.

Referenced by Clear(), GetTimeZeroBin(), and SetTimeZeroBin().

◆ fTimeZeroBinEstimated

Double_t PRawRunDataSet::fTimeZeroBinEstimated
private

keeps the estimated time zero bin

Definition at line 695 of file PMusr.h.

Referenced by Clear(), GetTimeZeroBinEstimated(), and SetTimeZeroBinEstimated().

◆ fTitle

TString PRawRunDataSet::fTitle
private

histogram title.

Definition at line 691 of file PMusr.h.

Referenced by Clear(), GetTitle(), and SetTitle().


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