musrfit 1.10.0
PMsrRunBlock Class Reference

#include <PMusr.h>

Public Member Functions

 PMsrRunBlock ()
 
virtual ~PMsrRunBlock ()
 
virtual void CleanUp ()
 
virtual UInt_t GetRunNameSize ()
 
virtual TString * GetRunName (UInt_t idx=0)
 
virtual UInt_t GetBeamlineSize ()
 
virtual TString * GetBeamline (UInt_t idx=0)
 
virtual UInt_t GetInstituteSize ()
 
virtual TString * GetInstitute (UInt_t idx=0)
 
virtual UInt_t GetFileFormatSize ()
 
virtual TString * GetFileFormat (UInt_t idx=0)
 
virtual Int_t GetFitType ()
 
virtual Int_t GetAlphaParamNo ()
 
virtual Int_t GetBetaParamNo ()
 
virtual Int_t GetNormParamNo ()
 
virtual Int_t GetBkgFitParamNo ()
 
virtual Int_t GetLifetimeParamNo ()
 
virtual Bool_t IsLifetimeCorrected ()
 
virtual PIntVectorGetMap ()
 
virtual Int_t GetMap (UInt_t idx)
 
virtual UInt_t GetForwardHistoNoSize ()
 
virtual Int_t GetForwardHistoNo (UInt_t idx=0)
 
virtual UInt_t GetBackwardHistoNoSize ()
 
virtual Int_t GetBackwardHistoNo (UInt_t idx=0)
 
virtual Double_t GetBkgEstimated (UInt_t idx)
 
virtual Double_t GetBkgFix (UInt_t idx)
 
virtual Int_t GetBkgRange (UInt_t idx)
 
virtual Int_t GetDataRange (UInt_t idx)
 
virtual UInt_t GetT0BinSize ()
 
virtual Double_t GetT0Bin (UInt_t idx=0)
 
virtual UInt_t GetAddT0BinEntries ()
 
virtual Int_t GetAddT0BinSize (UInt_t addRunIdx)
 
virtual Double_t GetAddT0Bin (UInt_t addRunIdx, UInt_t histoIdx)
 
virtual Bool_t IsFitRangeInBin ()
 
virtual Double_t GetFitRange (UInt_t idx)
 
virtual Int_t GetFitRangeOffset (UInt_t idx)
 
virtual Int_t GetPacking ()
 
virtual TString GetDeadTimeCorrection ()
 
virtual Double_t GetEstimatedAlpha ()
 
virtual Int_t GetXDataIndex ()
 
virtual Int_t GetYDataIndex ()
 
virtual TString * GetXDataLabel ()
 
virtual TString * GetYDataLabel ()
 
virtual std::map< TString, Int_t > * GetParGlobal ()
 
virtual PIntVectorGetMapGlobal ()
 
virtual void SetRunName (TString &str, Int_t idx=-1)
 
virtual void SetBeamline (TString &str, Int_t idx=-1)
 
virtual void SetInstitute (TString &str, Int_t idx=-1)
 
virtual void SetFileFormat (TString &str, Int_t idx=-1)
 
virtual void SetFitType (Int_t ival)
 
virtual void SetAlphaParamNo (Int_t ival)
 
virtual void SetBetaParamNo (Int_t ival)
 
virtual void SetNormParamNo (Int_t ival)
 
virtual void SetBkgFitParamNo (Int_t ival)
 
virtual void SetLifetimeParamNo (Int_t ival)
 
virtual void SetLifetimeCorrection (Bool_t bval)
 
virtual void SetMap (Int_t mapVal, Int_t idx=-1)
 
virtual void SetForwardHistoNo (Int_t histoNo, Int_t idx=-1)
 
virtual void SetBackwardHistoNo (Int_t histoNo, Int_t idx=-1)
 
virtual void SetBkgEstimated (Double_t dval, Int_t idx)
 
virtual void SetEstimatedAlpha (Double_t dval)
 
virtual void SetBkgFix (Double_t dval, Int_t idx)
 
virtual void SetBkgRange (Int_t ival, Int_t idx)
 
virtual void SetDataRange (Int_t ival, Int_t idx)
 
virtual void SetT0Bin (Double_t dval, Int_t idx=-1)
 
virtual void SetAddT0Bin (Double_t dval, UInt_t addRunIdx, UInt_t histoNoIdx)
 
virtual void SetFitRangeInBins (Bool_t bval)
 
virtual void SetFitRange (Double_t dval, UInt_t idx)
 
virtual void SetFitRangeOffset (Int_t ival, UInt_t idx)
 
virtual void SetPacking (Int_t ival)
 
virtual void SetDeadTimeCorrection (TString str)
 
virtual void SetXDataIndex (Int_t ival)
 
virtual void SetYDataIndex (Int_t ival)
 
virtual void SetXDataLabel (TString &str)
 
virtual void SetYDataLabel (TString &str)
 
virtual void SetParGlobal (const TString &str, Int_t ival)
 
virtual void SetMapGlobal (UInt_t idx, Int_t ival)
 

Private Attributes

PStringVector fRunName
 name of the run file
 
PStringVector fBeamline
 e.g. mue4, mue1, pim3, emu, m15, ... (former: run type)
 
PStringVector fInstitute
 e.g. psi, ral, triumf (former: run format)
 
PStringVector fFileFormat
 e.g. root, nexus, psi-bin, mud, ascii, db
 
Int_t fFitType
 fit type: 0=single histo fit, 2=asymmetry fit, 4=mu^- single histo fit, 8=non muSR fit
 
Int_t fAlphaParamNo
 alpha parameter number (fit type 2, 4)
 
Int_t fBetaParamNo
 beta parameter number (fit type 2, 4)
 
Int_t fNormParamNo
 N0 parameter number (fit type 0)
 
Int_t fBkgFitParamNo
 background fit parameter number (fit type 0)
 
Int_t fLifetimeParamNo
 muon lifetime parameter number (fit type 0)
 
Bool_t fLifetimeCorrection
 lifetime correction flag for viewing (fit type 0)
 
PIntVector fMap
 map vector needed to switch parameters for different runs within a single theory
 
PIntVector fForwardHistoNo
 forward histogram number (fit type 0, 2, 4)
 
PIntVector fBackwardHistoNo
 backward histogram number (fit type 2, 4)
 
Double_t fBkgEstimated [2]
 keeps estimated background values (if present)
 
Double_t fBkgFix [2]
 fixed background in (1/ns) (fit type 0, 2, 4)
 
Int_t fBkgRange [4]
 background bin range (fit type 0, 2, 4)
 
Int_t fDataRange [4]
 data bin range (fit type 0, 2, 4)
 
PDoubleVector fT0
 t0 bins (fit type 0, 2, 4). if fit type 0 -> f0, f1, f2, ...; if fit type 2, 4 -> f0, b0, f1, b1, ...
 
std::vector< PDoubleVectorfAddT0
 t0 bins for addrun's
 
Bool_t fFitRangeInBins
 flag telling if fit range is given in time or in bins
 
Double_t fFitRange [2]
 fit range in (us)
 
Int_t fFitRangeOffset [2]
 if fit range is given in bins it can have the form fit fgb+n0 lgb-n1. This variable holds the n0 and n1.
 
Double_t fAlpha
 estimated alpha value from F/B counts
 
Int_t fPacking
 packing/rebinning
 
TString fDeadTimeCorrection
 tells if deadtime correction (pulsed sources) should be applied. Possible value: 'no' (default), 'file', 'estimate'
 
Int_t fXYDataIndex [2]
 used to get the data indices when using db-files (fit type 8)
 
TString fXYDataLabel [2]
 used to get the indices via labels when using db-files (fit type 8)
 
std::map< TString, Int_t > fParGlobal
 here is stored if the parameters used in the RUN block are global or not
 
PIntVector fMapGlobal
 here is stored if the maps used in the RUN block are global or not
 

Detailed Description

Container for a single RUN block in MSR files.

Each RUN block defines one run or a group of runs to be fitted together, specifying the data file(s), fit type, histogram selections, background handling, time-zero bins, fit ranges, and theory-to-histogram mapping. Multiple RUN blocks enable simultaneous fitting of related data sets.

Key features:

  • Supports multiple data files (run name vector)
  • Flexible histogram selection (forward/backward for asymmetry)
  • Theory parameter mapping (allows parameter variations between runs)
  • Background estimation or fixing
  • Run-specific or global settings

Example: Fitting a field-dependent measurement where each run has a different field value but shares common relaxation parameters.

Definition at line 1113 of file PMusr.h.

Constructor & Destructor Documentation

◆ PMsrRunBlock()

◆ ~PMsrRunBlock()

PMsrRunBlock::~PMsrRunBlock ( )
virtual

Destructor

Definition at line 1227 of file PMusr.cpp.

References fBackwardHistoNo, fBeamline, fFileFormat, fForwardHistoNo, fInstitute, fMap, fMapGlobal, fParGlobal, fRunName, and fT0.

Member Function Documentation

◆ CleanUp()

◆ GetAddT0Bin()

Double_t PMsrRunBlock::GetAddT0Bin ( UInt_t addRunIdx,
UInt_t histoIdx )
virtual

get add T0 of the addrun (index addRunIdx) at index histoIdx

return:

  • addt0 value, if indices are within proper boundaries
  • -1, otherwise
Parameters
addRunIdxindex of the addrun
histoIdxindex of the add backward histo number value

Definition at line 1830 of file PMusr.cpp.

References fAddT0.

◆ GetAddT0BinEntries()

virtual UInt_t PMsrRunBlock::GetAddT0BinEntries ( )
inlinevirtual

Definition at line 1150 of file PMusr.h.

References fAddT0.

◆ GetAddT0BinSize()

Int_t PMsrRunBlock::GetAddT0BinSize ( UInt_t addRunIdx)
virtual

get add T0 size of the addrun at index addRunIdx

return:

  • addt0 value, if idx is within proper boundaries
  • -1, otherwise
Parameters
addRunIdxindex of the addrun

Definition at line 1806 of file PMusr.cpp.

References fAddT0.

◆ GetAlphaParamNo()

virtual Int_t PMsrRunBlock::GetAlphaParamNo ( )
inlinevirtual

Definition at line 1132 of file PMusr.h.

References fAlphaParamNo.

◆ GetBackwardHistoNo()

Int_t PMsrRunBlock::GetBackwardHistoNo ( UInt_t idx = 0)
virtual

get backward histogram value at position idx

return:

  • backward histogram number, if idx is within proper boundaries
  • -1, otherwise
Parameters
idxindex of the map value to be returned

Definition at line 1513 of file PMusr.cpp.

References fBackwardHistoNo.

◆ GetBackwardHistoNoSize()

virtual UInt_t PMsrRunBlock::GetBackwardHistoNoSize ( )
inlinevirtual

Definition at line 1142 of file PMusr.h.

References fBackwardHistoNo.

◆ GetBeamline()

TString * PMsrRunBlock::GetBeamline ( UInt_t idx = 0)
virtual

get beamline name at position idx

return:

  • pointer of the beamline string, if idx is within proper boundaries
  • 0, otherwise
Parameters
idxindex of the beamline to be returned

Definition at line 1343 of file PMusr.cpp.

References fBeamline.

Referenced by PRunDataHandler::FileExistsCheck().

◆ GetBeamlineSize()

virtual UInt_t PMsrRunBlock::GetBeamlineSize ( )
inlinevirtual

Definition at line 1125 of file PMusr.h.

References fBeamline.

◆ GetBetaParamNo()

virtual Int_t PMsrRunBlock::GetBetaParamNo ( )
inlinevirtual

Definition at line 1133 of file PMusr.h.

References fBetaParamNo.

◆ GetBkgEstimated()

Double_t PMsrRunBlock::GetBkgEstimated ( UInt_t idx)
virtual

get estimated background value at position idx. If not present, PMUSR_UNDEFINED is returned.

return:

  • estimated background value, if idx is within proper boundaries
  • PMUSR_UNDEFINED, otherwise
Parameters
idxindex of the estimated background value to be returned

Definition at line 1600 of file PMusr.cpp.

References fBkgEstimated, and PMUSR_UNDEFINED.

◆ GetBkgFitParamNo()

virtual Int_t PMsrRunBlock::GetBkgFitParamNo ( )
inlinevirtual

Definition at line 1135 of file PMusr.h.

References fBkgFitParamNo.

◆ GetBkgFix()

Double_t PMsrRunBlock::GetBkgFix ( UInt_t idx)
virtual

get background fixed value at position idx

return:

  • fixed background value, if idx is within proper boundaries
  • PMUSR_UNDEFINED, otherwise
Parameters
idxindex of the background fixed value to be returned

Definition at line 1641 of file PMusr.cpp.

References fBkgFix, and PMUSR_UNDEFINED.

◆ GetBkgRange()

Int_t PMsrRunBlock::GetBkgRange ( UInt_t idx)
virtual

get background range at position idx

return:

  • background range value, if idx is within proper boundaries
  • -1, otherwise
Parameters
idxindex of the background range to be returned

Definition at line 1681 of file PMusr.cpp.

References fBkgRange.

◆ GetDataRange()

Int_t PMsrRunBlock::GetDataRange ( UInt_t idx)
virtual

get data range at position idx

return:

  • data range value, if idx is within proper boundaries
  • -1, otherwise
Parameters
idxindex of the data range to be returned

Definition at line 1723 of file PMusr.cpp.

References fDataRange.

◆ GetDeadTimeCorrection()

virtual TString PMsrRunBlock::GetDeadTimeCorrection ( )
inlinevirtual

Definition at line 1157 of file PMusr.h.

References fDeadTimeCorrection.

◆ GetEstimatedAlpha()

virtual Double_t PMsrRunBlock::GetEstimatedAlpha ( )
inlinevirtual

Definition at line 1158 of file PMusr.h.

References fAlpha.

◆ GetFileFormat()

TString * PMsrRunBlock::GetFileFormat ( UInt_t idx = 0)
virtual

get file format name at position idx

return:

  • pointer of the file format string, if idx is within proper boundaries
  • 0, otherwise
Parameters
idxindex of the file format to be returned

Definition at line 1427 of file PMusr.cpp.

References fFileFormat.

Referenced by PRunDataHandler::FileExistsCheck().

◆ GetFileFormatSize()

virtual UInt_t PMsrRunBlock::GetFileFormatSize ( )
inlinevirtual

Definition at line 1129 of file PMusr.h.

References fFileFormat.

◆ GetFitRange()

Double_t PMsrRunBlock::GetFitRange ( UInt_t idx)
virtual

get fit range value at position idx. idx: 0=fit range start, 1=fit range end.

return:

  • fit range value, if idx is within proper boundaries
  • PMUSR_UNDEFINED, otherwise
Parameters
idxindex of the fit range value to be returned

Definition at line 1880 of file PMusr.cpp.

References fFitRange, and PMUSR_UNDEFINED.

◆ GetFitRangeOffset()

Int_t PMsrRunBlock::GetFitRangeOffset ( UInt_t idx)
virtual

get fit range offset value at position idx. idx: 0=fit range offset start, 1=fit range offset end.

return:

  • fit range offset value, if idx is within proper boundaries
  • -1, otherwise
Parameters
idxindex of the fit range value to be returned

Definition at line 1917 of file PMusr.cpp.

References fFitRangeOffset.

◆ GetFitType()

virtual Int_t PMsrRunBlock::GetFitType ( )
inlinevirtual

Definition at line 1131 of file PMusr.h.

References fFitType.

◆ GetForwardHistoNo()

Int_t PMsrRunBlock::GetForwardHistoNo ( UInt_t idx = 0)
virtual

get forward histogram value at position idx

return:

  • forward histogram number, if idx is within proper boundaries
  • -1, otherwise
Parameters
idxindex of the forward histogram value to be returned

Definition at line 1469 of file PMusr.cpp.

References fForwardHistoNo.

Referenced by musrFT_groupHistos().

◆ GetForwardHistoNoSize()

virtual UInt_t PMsrRunBlock::GetForwardHistoNoSize ( )
inlinevirtual

Definition at line 1140 of file PMusr.h.

References fForwardHistoNo.

Referenced by musrFT_groupHistos().

◆ GetInstitute()

TString * PMsrRunBlock::GetInstitute ( UInt_t idx = 0)
virtual

get institute name at position idx

return:

  • pointer of the institute string, if idx is within proper boundaries
  • 0, otherwise
Parameters
idxindex of the institute to be returned

Definition at line 1385 of file PMusr.cpp.

References fInstitute.

Referenced by PRunDataHandler::FileExistsCheck().

◆ GetInstituteSize()

virtual UInt_t PMsrRunBlock::GetInstituteSize ( )
inlinevirtual

Definition at line 1127 of file PMusr.h.

References fInstitute.

◆ GetLifetimeParamNo()

virtual Int_t PMsrRunBlock::GetLifetimeParamNo ( )
inlinevirtual

Definition at line 1136 of file PMusr.h.

References fLifetimeParamNo.

◆ GetMap() [1/2]

virtual PIntVector * PMsrRunBlock::GetMap ( )
inlinevirtual

Definition at line 1138 of file PMusr.h.

References fMap.

Referenced by PMsrHandler::HandleRunEntry().

◆ GetMap() [2/2]

Int_t PMsrRunBlock::GetMap ( UInt_t idx)
virtual

get map value at position idx

return:

  • map value, if idx is within proper boundaries
  • -1, otherwise
Parameters
idxindex of the map value to be returned

Definition at line 1557 of file PMusr.cpp.

References fMap.

◆ GetMapGlobal()

virtual PIntVector * PMsrRunBlock::GetMapGlobal ( )
inlinevirtual

Definition at line 1164 of file PMusr.h.

References fMapGlobal.

◆ GetNormParamNo()

virtual Int_t PMsrRunBlock::GetNormParamNo ( )
inlinevirtual

Definition at line 1134 of file PMusr.h.

References fNormParamNo.

◆ GetPacking()

virtual Int_t PMsrRunBlock::GetPacking ( )
inlinevirtual

Definition at line 1156 of file PMusr.h.

References fPacking.

◆ GetParGlobal()

virtual std::map< TString, Int_t > * PMsrRunBlock::GetParGlobal ( )
inlinevirtual

Definition at line 1163 of file PMusr.h.

References fParGlobal.

◆ GetRunName()

TString * PMsrRunBlock::GetRunName ( UInt_t idx = 0)
virtual

get run name at position idx

return:

  • pointer of the run name string, if idx is within proper boundaries
  • 0, otherwise
Parameters
idxindex of the run name to be returned

Definition at line 1301 of file PMusr.cpp.

References fRunName.

Referenced by PRunDataHandler::FileExistsCheck(), and musrFT_groupHistos().

◆ GetRunNameSize()

virtual UInt_t PMsrRunBlock::GetRunNameSize ( )
inlinevirtual

Definition at line 1123 of file PMusr.h.

References fRunName.

◆ GetT0Bin()

Double_t PMsrRunBlock::GetT0Bin ( UInt_t idx = 0)
virtual

get T0 bin at position idx

return:

  • T0 bin, if idx is within proper boundaries
  • -1, otherwise
Parameters
idxindex of the T0 bin to be returned

Definition at line 1764 of file PMusr.cpp.

References fT0.

Referenced by musrFT_groupHistos().

◆ GetT0BinSize()

virtual UInt_t PMsrRunBlock::GetT0BinSize ( )
inlinevirtual

Definition at line 1148 of file PMusr.h.

References fT0.

Referenced by musrFT_groupHistos().

◆ GetXDataIndex()

virtual Int_t PMsrRunBlock::GetXDataIndex ( )
inlinevirtual

Definition at line 1159 of file PMusr.h.

References fXYDataIndex.

◆ GetXDataLabel()

virtual TString * PMsrRunBlock::GetXDataLabel ( )
inlinevirtual

Definition at line 1161 of file PMusr.h.

References fXYDataLabel.

◆ GetYDataIndex()

virtual Int_t PMsrRunBlock::GetYDataIndex ( )
inlinevirtual

Definition at line 1160 of file PMusr.h.

References fXYDataIndex.

◆ GetYDataLabel()

virtual TString * PMsrRunBlock::GetYDataLabel ( )
inlinevirtual

Definition at line 1162 of file PMusr.h.

References fXYDataLabel.

◆ IsFitRangeInBin()

virtual Bool_t PMsrRunBlock::IsFitRangeInBin ( )
inlinevirtual

Definition at line 1153 of file PMusr.h.

References fFitRangeInBins.

◆ IsLifetimeCorrected()

virtual Bool_t PMsrRunBlock::IsLifetimeCorrected ( )
inlinevirtual

Definition at line 1137 of file PMusr.h.

References fLifetimeCorrection.

◆ SetAddT0Bin()

void PMsrRunBlock::SetAddT0Bin ( Double_t dval,
UInt_t addRunIdx,
UInt_t histoNoIdx )
virtual

set add T0 bin of the addrun at index histoNoIdx

Parameters
ivalT0 bin
addRunIdxaddrun index
histoNoIdxindex whithin the fAddT0 vector where to set the value.

Definition at line 1857 of file PMusr.cpp.

References fAddT0.

Referenced by PMsrHandler::HandleRunEntry().

◆ SetAlphaParamNo()

virtual void PMsrRunBlock::SetAlphaParamNo ( Int_t ival)
inlinevirtual

Definition at line 1171 of file PMusr.h.

References fAlphaParamNo.

Referenced by PMsrHandler::HandleRunEntry().

◆ SetBackwardHistoNo()

void PMsrRunBlock::SetBackwardHistoNo ( Int_t histoNo,
Int_t idx = -1 )
virtual

set backward histogram value at position pos

Parameters
histoNohistogram value
idxindex whithin the fBackwardHistoNo vector where to set the value. If idx == -1, then append the value to the vector.

Definition at line 1534 of file PMusr.cpp.

References fBackwardHistoNo.

Referenced by PMsrHandler::HandleRunEntry().

◆ SetBeamline()

void PMsrRunBlock::SetBeamline ( TString & str,
Int_t idx = -1 )
virtual

set beamline name at position idx

Parameters
strbeamline name string
idxindex of the beamline name to be set. If idx == -1, append beamline

Definition at line 1360 of file PMusr.cpp.

References fBeamline.

Referenced by PRunDataHandler::FileExistsCheck(), and PMsrHandler::HandleRunEntry().

◆ SetBetaParamNo()

virtual void PMsrRunBlock::SetBetaParamNo ( Int_t ival)
inlinevirtual

Definition at line 1172 of file PMusr.h.

References fBetaParamNo.

Referenced by PMsrHandler::HandleRunEntry().

◆ SetBkgEstimated()

void PMsrRunBlock::SetBkgEstimated ( Double_t dval,
Int_t idx )
virtual

set estimated background value at position idx

Parameters
dvalestimated background value
idxindex of the estimated background value to be set.

Definition at line 1618 of file PMusr.cpp.

References fBkgEstimated.

◆ SetBkgFitParamNo()

virtual void PMsrRunBlock::SetBkgFitParamNo ( Int_t ival)
inlinevirtual

Definition at line 1174 of file PMusr.h.

References fBkgFitParamNo.

Referenced by PMsrHandler::HandleRunEntry().

◆ SetBkgFix()

void PMsrRunBlock::SetBkgFix ( Double_t dval,
Int_t idx )
virtual

set background fixed value at position idx

Parameters
dvalfixed background value
idxindex of the background fixed value to be set.

Definition at line 1658 of file PMusr.cpp.

References fBkgFix.

Referenced by PMsrHandler::HandleRunEntry().

◆ SetBkgRange()

void PMsrRunBlock::SetBkgRange ( Int_t ival,
Int_t idx )
virtual

set background range element at position idx

Parameters
ivalbackground bin value
idxindex of the background range element to be set. If idx==-1, append value.

Definition at line 1699 of file PMusr.cpp.

References fBkgRange.

Referenced by PMsrHandler::HandleRunEntry().

◆ SetDataRange()

void PMsrRunBlock::SetDataRange ( Int_t ival,
Int_t idx )
virtual

set data range element at position idx

Parameters
ivaldata range element
idxindex of the data range element to be set. If idx==-1, append value

Definition at line 1741 of file PMusr.cpp.

References fDataRange.

Referenced by PMsrHandler::HandleRunEntry().

◆ SetDeadTimeCorrection()

virtual void PMsrRunBlock::SetDeadTimeCorrection ( TString str)
inlinevirtual

Definition at line 1191 of file PMusr.h.

References fDeadTimeCorrection.

Referenced by PMsrHandler::HandleRunEntry().

◆ SetEstimatedAlpha()

void PMsrRunBlock::SetEstimatedAlpha ( Double_t dval)
virtual

set the value of estimated alpha at position idx

Parameters
alphais the estimated value

Definition at line 1984 of file PMusr.cpp.

References fAlpha.

◆ SetFileFormat()

void PMsrRunBlock::SetFileFormat ( TString & str,
Int_t idx = -1 )
virtual

set file format name at position idx

Parameters
strfile format string
idxindex of the file format name to be set. If idx == -1, append file format

Definition at line 1444 of file PMusr.cpp.

References fFileFormat.

Referenced by PRunDataHandler::FileExistsCheck(), and PMsrHandler::HandleRunEntry().

◆ SetFitRange()

void PMsrRunBlock::SetFitRange ( Double_t dval,
UInt_t idx )
virtual

set fit range value at position idx

Parameters
dvalvalue to be set
idxindex of the fit range value to be set

Definition at line 1897 of file PMusr.cpp.

References fFitRange.

Referenced by PMsrHandler::HandleRunEntry().

◆ SetFitRangeInBins()

virtual void PMsrRunBlock::SetFitRangeInBins ( Bool_t bval)
inlinevirtual

Definition at line 1187 of file PMusr.h.

References fFitRangeInBins.

Referenced by PMsrHandler::HandleRunEntry().

◆ SetFitRangeOffset()

void PMsrRunBlock::SetFitRangeOffset ( Int_t ival,
UInt_t idx )
virtual

set fit range offset value at position idx. Illegale values will be ignored.

Parameters
ivalvalue to be set
idxindex of the fit range value to be set

Definition at line 1934 of file PMusr.cpp.

References fFitRangeOffset.

Referenced by PMsrHandler::HandleRunEntry().

◆ SetFitType()

virtual void PMsrRunBlock::SetFitType ( Int_t ival)
inlinevirtual

Definition at line 1170 of file PMusr.h.

References fFitType.

Referenced by PMsrHandler::HandleRunEntry().

◆ SetForwardHistoNo()

void PMsrRunBlock::SetForwardHistoNo ( Int_t histoNo,
Int_t idx = -1 )
virtual

set forward histogram value at index idx

Parameters
histoNohistogram value
idxindex whithin the fForwardHistoNo vector where to set the value. If idx == -1, then append the value to the vector.

Definition at line 1490 of file PMusr.cpp.

References fForwardHistoNo.

Referenced by PMsrHandler::HandleRunEntry().

◆ SetInstitute()

void PMsrRunBlock::SetInstitute ( TString & str,
Int_t idx = -1 )
virtual

set institute name at position idx

Parameters
strinstitute name string
idxindex of the run name to be set. If idx == -1, append institute name

Definition at line 1402 of file PMusr.cpp.

References fInstitute.

Referenced by PRunDataHandler::FileExistsCheck(), and PMsrHandler::HandleRunEntry().

◆ SetLifetimeCorrection()

virtual void PMsrRunBlock::SetLifetimeCorrection ( Bool_t bval)
inlinevirtual

Definition at line 1176 of file PMusr.h.

References fLifetimeCorrection.

Referenced by PMsrHandler::HandleRunEntry().

◆ SetLifetimeParamNo()

virtual void PMsrRunBlock::SetLifetimeParamNo ( Int_t ival)
inlinevirtual

Definition at line 1175 of file PMusr.h.

References fLifetimeParamNo.

Referenced by PMsrHandler::HandleRunEntry().

◆ SetMap()

void PMsrRunBlock::SetMap ( Int_t mapVal,
Int_t idx = -1 )
virtual

set map value at position idx

Parameters
mapValmap value
idxindex of the map value to be set. If idx == -1, append map value.

Definition at line 1574 of file PMusr.cpp.

References fMap.

Referenced by PMsrHandler::HandleRunEntry().

◆ SetMapGlobal()

void PMsrRunBlock::SetMapGlobal ( UInt_t idx,
Int_t ival )
virtual

store the information that a certain mapped parameter in the block is global

Parameters
idxmap-index (0, 1, 2, 3, ...)
ivalvalue to be set (global == 1, run specific == 0, tag not present == -1)

Definition at line 1966 of file PMusr.cpp.

References fMap, and fMapGlobal.

◆ SetNormParamNo()

virtual void PMsrRunBlock::SetNormParamNo ( Int_t ival)
inlinevirtual

Definition at line 1173 of file PMusr.h.

References fNormParamNo.

Referenced by PMsrHandler::HandleRunEntry().

◆ SetPacking()

virtual void PMsrRunBlock::SetPacking ( Int_t ival)
inlinevirtual

Definition at line 1190 of file PMusr.h.

References fPacking.

Referenced by PMsrHandler::HandleRunEntry().

◆ SetParGlobal()

void PMsrRunBlock::SetParGlobal ( const TString & str,
Int_t ival )
virtual

store the information that a certain parameter used in the block is global

Parameters
strkey (label) telling how the parameter is addressed
ivalvalue to be set (global == 1, run specific == 0, tag not present == -1)

Definition at line 1951 of file PMusr.cpp.

References fParGlobal.

◆ SetRunName()

void PMsrRunBlock::SetRunName ( TString & str,
Int_t idx = -1 )
virtual

set run name at position idx

Parameters
strrun name string
idxindex of the run name to be set. If idx == -1 append run name

Definition at line 1318 of file PMusr.cpp.

References fRunName.

Referenced by PMsrHandler::HandleRunEntry().

◆ SetT0Bin()

void PMsrRunBlock::SetT0Bin ( Double_t dval,
Int_t idx = -1 )
virtual

set T0 bin at position idx

Parameters
ivalT0 bin
idxindex of the T0 bin to be set. If idx==-1, append value

Definition at line 1781 of file PMusr.cpp.

References fT0.

Referenced by PMsrHandler::HandleRunEntry().

◆ SetXDataIndex()

virtual void PMsrRunBlock::SetXDataIndex ( Int_t ival)
inlinevirtual

Definition at line 1192 of file PMusr.h.

References fXYDataIndex.

Referenced by PMsrHandler::HandleRunEntry().

◆ SetXDataLabel()

virtual void PMsrRunBlock::SetXDataLabel ( TString & str)
inlinevirtual

Definition at line 1194 of file PMusr.h.

References fXYDataLabel.

Referenced by PMsrHandler::HandleRunEntry().

◆ SetYDataIndex()

virtual void PMsrRunBlock::SetYDataIndex ( Int_t ival)
inlinevirtual

Definition at line 1193 of file PMusr.h.

References fXYDataIndex.

Referenced by PMsrHandler::HandleRunEntry().

◆ SetYDataLabel()

virtual void PMsrRunBlock::SetYDataLabel ( TString & str)
inlinevirtual

Definition at line 1195 of file PMusr.h.

References fXYDataLabel.

Referenced by PMsrHandler::HandleRunEntry().

Member Data Documentation

◆ fAddT0

std::vector<PDoubleVector> PMsrRunBlock::fAddT0
private

t0 bins for addrun's

Definition at line 1219 of file PMusr.h.

Referenced by CleanUp(), GetAddT0Bin(), GetAddT0BinEntries(), GetAddT0BinSize(), and SetAddT0Bin().

◆ fAlpha

Double_t PMsrRunBlock::fAlpha
private

estimated alpha value from F/B counts

Definition at line 1223 of file PMusr.h.

Referenced by GetEstimatedAlpha(), and SetEstimatedAlpha().

◆ fAlphaParamNo

Int_t PMsrRunBlock::fAlphaParamNo
private

alpha parameter number (fit type 2, 4)

Definition at line 1205 of file PMusr.h.

Referenced by CleanUp(), GetAlphaParamNo(), PMsrRunBlock(), and SetAlphaParamNo().

◆ fBackwardHistoNo

PIntVector PMsrRunBlock::fBackwardHistoNo
private

backward histogram number (fit type 2, 4)

Definition at line 1213 of file PMusr.h.

Referenced by CleanUp(), GetBackwardHistoNo(), GetBackwardHistoNoSize(), SetBackwardHistoNo(), and ~PMsrRunBlock().

◆ fBeamline

PStringVector PMsrRunBlock::fBeamline
private

e.g. mue4, mue1, pim3, emu, m15, ... (former: run type)

Definition at line 1201 of file PMusr.h.

Referenced by CleanUp(), GetBeamline(), GetBeamlineSize(), SetBeamline(), and ~PMsrRunBlock().

◆ fBetaParamNo

Int_t PMsrRunBlock::fBetaParamNo
private

beta parameter number (fit type 2, 4)

Definition at line 1206 of file PMusr.h.

Referenced by CleanUp(), GetBetaParamNo(), PMsrRunBlock(), and SetBetaParamNo().

◆ fBkgEstimated

Double_t PMsrRunBlock::fBkgEstimated[2]
private

keeps estimated background values (if present)

Definition at line 1214 of file PMusr.h.

Referenced by GetBkgEstimated(), PMsrRunBlock(), and SetBkgEstimated().

◆ fBkgFitParamNo

Int_t PMsrRunBlock::fBkgFitParamNo
private

background fit parameter number (fit type 0)

Definition at line 1208 of file PMusr.h.

Referenced by CleanUp(), GetBkgFitParamNo(), PMsrRunBlock(), and SetBkgFitParamNo().

◆ fBkgFix

Double_t PMsrRunBlock::fBkgFix[2]
private

fixed background in (1/ns) (fit type 0, 2, 4)

Definition at line 1215 of file PMusr.h.

Referenced by CleanUp(), GetBkgFix(), PMsrRunBlock(), and SetBkgFix().

◆ fBkgRange

Int_t PMsrRunBlock::fBkgRange[4]
private

background bin range (fit type 0, 2, 4)

Definition at line 1216 of file PMusr.h.

Referenced by CleanUp(), GetBkgRange(), PMsrRunBlock(), and SetBkgRange().

◆ fDataRange

Int_t PMsrRunBlock::fDataRange[4]
private

data bin range (fit type 0, 2, 4)

Definition at line 1217 of file PMusr.h.

Referenced by CleanUp(), GetDataRange(), PMsrRunBlock(), and SetDataRange().

◆ fDeadTimeCorrection

TString PMsrRunBlock::fDeadTimeCorrection
private

tells if deadtime correction (pulsed sources) should be applied. Possible value: 'no' (default), 'file', 'estimate'

Definition at line 1225 of file PMusr.h.

Referenced by GetDeadTimeCorrection(), and SetDeadTimeCorrection().

◆ fFileFormat

PStringVector PMsrRunBlock::fFileFormat
private

e.g. root, nexus, psi-bin, mud, ascii, db

Definition at line 1203 of file PMusr.h.

Referenced by CleanUp(), GetFileFormat(), GetFileFormatSize(), SetFileFormat(), and ~PMsrRunBlock().

◆ fFitRange

Double_t PMsrRunBlock::fFitRange[2]
private

fit range in (us)

Definition at line 1221 of file PMusr.h.

Referenced by CleanUp(), GetFitRange(), PMsrRunBlock(), and SetFitRange().

◆ fFitRangeInBins

Bool_t PMsrRunBlock::fFitRangeInBins
private

flag telling if fit range is given in time or in bins

Definition at line 1220 of file PMusr.h.

Referenced by CleanUp(), IsFitRangeInBin(), PMsrRunBlock(), and SetFitRangeInBins().

◆ fFitRangeOffset

Int_t PMsrRunBlock::fFitRangeOffset[2]
private

if fit range is given in bins it can have the form fit fgb+n0 lgb-n1. This variable holds the n0 and n1.

Definition at line 1222 of file PMusr.h.

Referenced by CleanUp(), GetFitRangeOffset(), PMsrRunBlock(), and SetFitRangeOffset().

◆ fFitType

Int_t PMsrRunBlock::fFitType
private

fit type: 0=single histo fit, 2=asymmetry fit, 4=mu^- single histo fit, 8=non muSR fit

Definition at line 1204 of file PMusr.h.

Referenced by CleanUp(), GetFitType(), PMsrRunBlock(), and SetFitType().

◆ fForwardHistoNo

PIntVector PMsrRunBlock::fForwardHistoNo
private

forward histogram number (fit type 0, 2, 4)

Definition at line 1212 of file PMusr.h.

Referenced by CleanUp(), GetForwardHistoNo(), GetForwardHistoNoSize(), SetForwardHistoNo(), and ~PMsrRunBlock().

◆ fInstitute

PStringVector PMsrRunBlock::fInstitute
private

e.g. psi, ral, triumf (former: run format)

Definition at line 1202 of file PMusr.h.

Referenced by CleanUp(), GetInstitute(), GetInstituteSize(), SetInstitute(), and ~PMsrRunBlock().

◆ fLifetimeCorrection

Bool_t PMsrRunBlock::fLifetimeCorrection
private

lifetime correction flag for viewing (fit type 0)

Definition at line 1210 of file PMusr.h.

Referenced by CleanUp(), IsLifetimeCorrected(), PMsrRunBlock(), and SetLifetimeCorrection().

◆ fLifetimeParamNo

Int_t PMsrRunBlock::fLifetimeParamNo
private

muon lifetime parameter number (fit type 0)

Definition at line 1209 of file PMusr.h.

Referenced by CleanUp(), GetLifetimeParamNo(), PMsrRunBlock(), and SetLifetimeParamNo().

◆ fMap

PIntVector PMsrRunBlock::fMap
private

map vector needed to switch parameters for different runs within a single theory

Definition at line 1211 of file PMusr.h.

Referenced by CleanUp(), GetMap(), GetMap(), SetMap(), SetMapGlobal(), and ~PMsrRunBlock().

◆ fMapGlobal

PIntVector PMsrRunBlock::fMapGlobal
private

here is stored if the maps used in the RUN block are global or not

Definition at line 1238 of file PMusr.h.

Referenced by CleanUp(), GetMapGlobal(), SetMapGlobal(), and ~PMsrRunBlock().

◆ fNormParamNo

Int_t PMsrRunBlock::fNormParamNo
private

N0 parameter number (fit type 0)

Definition at line 1207 of file PMusr.h.

Referenced by CleanUp(), GetNormParamNo(), PMsrRunBlock(), and SetNormParamNo().

◆ fPacking

Int_t PMsrRunBlock::fPacking
private

packing/rebinning

Definition at line 1224 of file PMusr.h.

Referenced by CleanUp(), GetPacking(), PMsrRunBlock(), and SetPacking().

◆ fParGlobal

std::map<TString, Int_t> PMsrRunBlock::fParGlobal
private

here is stored if the parameters used in the RUN block are global or not

Definition at line 1237 of file PMusr.h.

Referenced by CleanUp(), GetParGlobal(), SetParGlobal(), and ~PMsrRunBlock().

◆ fRunName

PStringVector PMsrRunBlock::fRunName
private

name of the run file

Definition at line 1200 of file PMusr.h.

Referenced by CleanUp(), GetRunName(), GetRunNameSize(), SetRunName(), and ~PMsrRunBlock().

◆ fT0

PDoubleVector PMsrRunBlock::fT0
private

t0 bins (fit type 0, 2, 4). if fit type 0 -> f0, f1, f2, ...; if fit type 2, 4 -> f0, b0, f1, b1, ...

Definition at line 1218 of file PMusr.h.

Referenced by CleanUp(), GetT0Bin(), GetT0BinSize(), SetT0Bin(), and ~PMsrRunBlock().

◆ fXYDataIndex

Int_t PMsrRunBlock::fXYDataIndex[2]
private

used to get the data indices when using db-files (fit type 8)

Definition at line 1226 of file PMusr.h.

Referenced by CleanUp(), GetXDataIndex(), GetYDataIndex(), PMsrRunBlock(), SetXDataIndex(), and SetYDataIndex().

◆ fXYDataLabel

TString PMsrRunBlock::fXYDataLabel[2]
private

used to get the indices via labels when using db-files (fit type 8)

Definition at line 1227 of file PMusr.h.

Referenced by CleanUp(), GetXDataLabel(), GetYDataLabel(), PMsrRunBlock(), SetXDataLabel(), and SetYDataLabel().


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