|
musrfit 1.10.0
|
#include <PMusr.h>
Public Member Functions | |
| PMsrGlobalBlock () | |
| virtual | ~PMsrGlobalBlock () |
| virtual Bool_t | IsPresent () |
| virtual Double_t | GetRRFFreq (const char *unit) |
| virtual TString | GetRRFUnit () |
| virtual Int_t | GetRRFUnitTag () |
| virtual Double_t | GetRRFPhase () |
| virtual Int_t | GetRRFPacking () |
| virtual Int_t | GetFitType () |
| 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 Double_t | GetEstimatedAlpha () |
| virtual TString | GetDeadTimeCorrection () |
| virtual void | SetGlobalPresent (Bool_t bval) |
| virtual void | SetRRFFreq (Double_t freq, const char *unit) |
| virtual void | SetRRFPhase (Double_t phase) |
| virtual void | SetRRFPacking (Int_t pack) |
| virtual void | SetFitType (Int_t ival) |
| 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) |
Private Attributes | |
| Bool_t | fGlobalPresent |
| flag showing if a GLOBAL block is present at all. | |
| Double_t | fRRFFreq |
| RRF frequency given in units of (MHz, Mc, T) | |
| Int_t | fRRFUnitTag |
| RRF unit tag. | |
| Double_t | fRRFPhase |
| RRF phase in (°) | |
| Int_t | fRRFPacking |
| RRF packing. | |
| Int_t | fFitType |
| fit type: 0=single histo fit, 1=single histo RRF fit, 2=asymmetry fit, 4=mu^- single histo fit, 8=non muSR fit | |
| Int_t | fDataRange [4] |
| data bin range (fit type 0, 1, 2, 4) | |
| PDoubleVector | fT0 |
| t0 bins (fit type 0, 1, 2, 4). if fit type 0 -> f0, f1, f2, ...; if fit type 2, 4 -> f0, b0, f1, b1, ... | |
| std::vector< PDoubleVector > | fAddT0 |
| addt0 bins (fit type 0, 1, 2, 4). if fit type 0 -> f0, f1, f2, ...; if fit type 2, 4 -> f0, b0, f1, b1, ... | |
| 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. | |
| Int_t | fPacking |
| packing/rebinning | |
| Double_t | fAlpha |
| estimated alpha value from F/B counts | |
| TString | fDeadTimeCorrection |
| tells if deadtime correction (pulsed sources) should be applied. Possible value: 'no' (default), 'file', 'estimate' | |
Container for GLOBAL block information in MSR files.
The GLOBAL block defines settings that apply to all RUN blocks, including fit type, data ranges, time-zero bins, rotating reference frame (RRF) parameters, and packing. This block is optional - if absent, all settings must be specified individually in each RUN block.
Example use: When fitting multiple runs with identical experimental setup, the GLOBAL block avoids repetition by centralizing common parameters like RRF frequency, fit range, and t0 bins.
| PMsrGlobalBlock::PMsrGlobalBlock | ( | ) |
Constructor
Definition at line 804 of file PMusr.cpp.
References fDataRange, fFitRange, fFitRangeInBins, fFitRangeOffset, fFitType, fGlobalPresent, fPacking, fRRFFreq, fRRFPacking, fRRFPhase, fRRFUnitTag, PMUSR_UNDEFINED, RRF_FREQ_UNDEF, and RRF_UNIT_UNDEF.
|
inlinevirtual |
|
virtual |
|
inlinevirtual |
|
virtual |
|
virtual |
get data range at position idx
return:
| idx | index of the data range to be returned |
Definition at line 964 of file PMusr.cpp.
References fDataRange.
|
inlinevirtual |
Definition at line 1060 of file PMusr.h.
References fDeadTimeCorrection.
|
inlinevirtual |
|
virtual |
get fit range value at position idx. idx: 0=fit range start, 1=fit range end.
return:
| idx | index of the fit range value to be returned |
Definition at line 1120 of file PMusr.cpp.
References fFitRange, and PMUSR_UNDEFINED.
Referenced by PFitter::ExecuteSave(), PRunAsymmetry::GetProperFitRange(), PRunAsymmetryBNMR::GetProperFitRange(), PRunAsymmetryRRF::GetProperFitRange(), PRunMuMinus::GetProperFitRange(), PRunSingleHisto::GetProperFitRange(), PRunSingleHistoRRF::GetProperFitRange(), and PFitter::PFitter().
|
virtual |
get fit range offset value at position idx. idx: 0=fit range offset start, 1=fit range offset end.
return:
| idx | index of the fit range value to be returned |
Definition at line 1157 of file PMusr.cpp.
References fFitRangeOffset.
Referenced by PRunAsymmetry::GetProperFitRange(), PRunAsymmetryBNMR::GetProperFitRange(), PRunAsymmetryRRF::GetProperFitRange(), PRunMuMinus::GetProperFitRange(), PRunSingleHisto::GetProperFitRange(), and PRunSingleHistoRRF::GetProperFitRange().
|
inlinevirtual |
Definition at line 1048 of file PMusr.h.
References fFitType.
Referenced by PMusrCanvas::UpdateDataTheoryPad().
|
inlinevirtual |
|
virtual |
get RRF frequency value in specific units. If units is unknown, RRF_UNDEF_FREQ will be returned.
| unit | unit string in which the units shall be given |
Definition at line 831 of file PMusr.cpp.
References fRRFFreq, fRRFUnitTag, GAMMA_BAR_MUON, RRF_FREQ_UNDEF, RRF_UNIT_Mcs, RRF_UNIT_MHz, RRF_UNIT_T, and RRF_UNIT_UNDEF.
Referenced by PMsrHandler::HandleGlobalEntry(), PRunAsymmetryRRF::PrepareFitData(), PRunSingleHistoRRF::PrepareFitData(), and PRunAsymmetryRRF::PrepareViewData().
|
inlinevirtual |
Definition at line 1047 of file PMusr.h.
References fRRFPacking.
Referenced by PRunSingleHistoRRF::PRunSingleHistoRRF().
|
inlinevirtual |
Definition at line 1046 of file PMusr.h.
References fRRFPhase.
Referenced by PRunAsymmetryRRF::PrepareFitData(), PRunSingleHistoRRF::PrepareFitData(), and PRunAsymmetryRRF::PrepareViewData().
|
virtual |
returns RRF frequency unit.
Definition at line 903 of file PMusr.cpp.
References fRRFUnitTag, RRF_UNIT_G, RRF_UNIT_kHz, RRF_UNIT_Mcs, RRF_UNIT_MHz, RRF_UNIT_T, and RRF_UNIT_UNDEF.
Referenced by PRunSingleHistoRRF::PRunSingleHistoRRF().
|
inlinevirtual |
Definition at line 1045 of file PMusr.h.
References fRRFUnitTag.
|
virtual |
get T0 bin at position idx
return:
| idx | index of the T0 bin to be returned |
Definition at line 1004 of file PMusr.cpp.
References fT0.
Referenced by PRunAsymmetry::GetProperT0(), PRunAsymmetryBNMR::GetProperT0(), PRunAsymmetryRRF::GetProperT0(), PRunMuMinus::GetProperT0(), PRunSingleHisto::GetProperT0(), PRunSingleHistoRRF::GetProperT0(), and musrFT_groupHistos().
|
inlinevirtual |
Definition at line 1050 of file PMusr.h.
References fT0.
Referenced by PRunAsymmetry::GetProperT0(), PRunAsymmetryBNMR::GetProperT0(), PRunAsymmetryRRF::GetProperT0(), PRunMuMinus::GetProperT0(), PRunSingleHisto::GetProperT0(), PRunSingleHistoRRF::GetProperT0(), and musrFT_groupHistos().
|
inlinevirtual |
Definition at line 1055 of file PMusr.h.
References fFitRangeInBins.
Referenced by PRunAsymmetry::GetProperFitRange(), PRunAsymmetryBNMR::GetProperFitRange(), PRunAsymmetryRRF::GetProperFitRange(), PRunMuMinus::GetProperFitRange(), PRunSingleHisto::GetProperFitRange(), and PRunSingleHistoRRF::GetProperFitRange().
|
inlinevirtual |
Definition at line 1042 of file PMusr.h.
References fGlobalPresent.
Referenced by PRunSingleHistoRRF::PRunSingleHistoRRF().
|
virtual |
set add T0 bin of the addrun at index histoNoIdx
| ival | T0 bin |
| addRunIdx | addrun index |
| histoNoIdx | index whithin the fAddT0 vector where to set the value. |
Definition at line 1097 of file PMusr.cpp.
References fAddT0.
Referenced by PMsrHandler::HandleGlobalEntry().
|
virtual |
set data range element at position idx
| ival | data range element |
| idx | index of the data range element to be set. |
Definition at line 981 of file PMusr.cpp.
References fDataRange.
Referenced by PMsrHandler::HandleGlobalEntry().
|
inlinevirtual |
Definition at line 1074 of file PMusr.h.
References fDeadTimeCorrection.
Referenced by PMsrHandler::HandleGlobalEntry().
|
virtual |
set fit range value at position idx
| dval | value to be set |
| idx | index of the fit range value to be set |
Definition at line 1137 of file PMusr.cpp.
References fFitRange.
Referenced by PRunAsymmetry::GetProperFitRange(), PRunAsymmetryBNMR::GetProperFitRange(), PRunAsymmetryRRF::GetProperFitRange(), PRunMuMinus::GetProperFitRange(), PRunSingleHisto::GetProperFitRange(), PRunSingleHistoRRF::GetProperFitRange(), and PMsrHandler::HandleGlobalEntry().
|
inlinevirtual |
Definition at line 1070 of file PMusr.h.
References fFitRangeInBins.
Referenced by PMsrHandler::HandleGlobalEntry().
|
virtual |
set fit range offset value at position idx. Illegale values will be ignored.
| ival | value to be set |
| idx | index of the fit range value to be set |
Definition at line 1174 of file PMusr.cpp.
References fFitRangeOffset.
Referenced by PMsrHandler::HandleGlobalEntry().
|
inlinevirtual |
Definition at line 1066 of file PMusr.h.
References fFitType.
Referenced by PMsrHandler::HandleGlobalEntry().
|
inlinevirtual |
Definition at line 1062 of file PMusr.h.
References fGlobalPresent.
Referenced by PMsrHandler::HandleGlobalEntry().
|
inlinevirtual |
Definition at line 1073 of file PMusr.h.
References fPacking.
Referenced by PMsrHandler::HandleGlobalEntry().
|
virtual |
set RRF frequency value in specific units. If units is unknown, 0.0 will be set.
| RRF | frequency value |
| unit | unit string in which the units shall be given |
Definition at line 875 of file PMusr.cpp.
References fRRFFreq, fRRFUnitTag, RRF_UNIT_Mcs, RRF_UNIT_MHz, RRF_UNIT_T, and RRF_UNIT_UNDEF.
Referenced by PMsrHandler::HandleGlobalEntry().
|
virtual |
set RRF packing.
| RRF | packing |
Definition at line 942 of file PMusr.cpp.
References fRRFPacking.
Referenced by PMsrHandler::HandleGlobalEntry().
|
inlinevirtual |
Definition at line 1064 of file PMusr.h.
References fRRFPhase.
Referenced by PMsrHandler::HandleGlobalEntry().
|
virtual |
set T0 bin at position idx
| ival | T0 bin |
| idx | index of the T0 bin to be set. If idx==-1, append value |
Definition at line 1021 of file PMusr.cpp.
References fT0.
Referenced by PMsrHandler::HandleGlobalEntry().
|
private |
addt0 bins (fit type 0, 1, 2, 4). if fit type 0 -> f0, f1, f2, ...; if fit type 2, 4 -> f0, b0, f1, b1, ...
Definition at line 1085 of file PMusr.h.
Referenced by GetAddT0Bin(), GetAddT0BinEntries(), GetAddT0BinSize(), and SetAddT0Bin().
|
private |
estimated alpha value from F/B counts
Definition at line 1090 of file PMusr.h.
Referenced by GetEstimatedAlpha().
|
private |
data bin range (fit type 0, 1, 2, 4)
Definition at line 1083 of file PMusr.h.
Referenced by GetDataRange(), PMsrGlobalBlock(), and SetDataRange().
|
private |
tells if deadtime correction (pulsed sources) should be applied. Possible value: 'no' (default), 'file', 'estimate'
Definition at line 1091 of file PMusr.h.
Referenced by GetDeadTimeCorrection(), and SetDeadTimeCorrection().
|
private |
fit range in (us)
Definition at line 1087 of file PMusr.h.
Referenced by GetFitRange(), PMsrGlobalBlock(), and SetFitRange().
|
private |
flag telling if fit range is given in time or in bins
Definition at line 1086 of file PMusr.h.
Referenced by IsFitRangeInBin(), PMsrGlobalBlock(), and SetFitRangeInBins().
|
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 1088 of file PMusr.h.
Referenced by GetFitRangeOffset(), PMsrGlobalBlock(), and SetFitRangeOffset().
|
private |
fit type: 0=single histo fit, 1=single histo RRF fit, 2=asymmetry fit, 4=mu^- single histo fit, 8=non muSR fit
Definition at line 1082 of file PMusr.h.
Referenced by GetFitType(), PMsrGlobalBlock(), and SetFitType().
|
private |
flag showing if a GLOBAL block is present at all.
Definition at line 1077 of file PMusr.h.
Referenced by IsPresent(), PMsrGlobalBlock(), and SetGlobalPresent().
|
private |
packing/rebinning
Definition at line 1089 of file PMusr.h.
Referenced by GetPacking(), PMsrGlobalBlock(), and SetPacking().
|
private |
RRF frequency given in units of (MHz, Mc, T)
Definition at line 1078 of file PMusr.h.
Referenced by GetRRFFreq(), PMsrGlobalBlock(), and SetRRFFreq().
|
private |
RRF packing.
Definition at line 1081 of file PMusr.h.
Referenced by GetRRFPacking(), PMsrGlobalBlock(), and SetRRFPacking().
|
private |
RRF phase in (°)
Definition at line 1080 of file PMusr.h.
Referenced by GetRRFPhase(), PMsrGlobalBlock(), and SetRRFPhase().
|
private |
RRF unit tag.
Definition at line 1079 of file PMusr.h.
Referenced by GetRRFFreq(), GetRRFUnit(), GetRRFUnitTag(), PMsrGlobalBlock(), and SetRRFFreq().
|
private |
t0 bins (fit type 0, 1, 2, 4). if fit type 0 -> f0, f1, f2, ...; if fit type 2, 4 -> f0, b0, f1, b1, ...
Definition at line 1084 of file PMusr.h.
Referenced by GetT0Bin(), GetT0BinSize(), and SetT0Bin().