musrfit
1.9.2
|
#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 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) |
Private Attributes | |
Bool_t | fGlobalPresent |
flag showing if a GLOBAL block is present at all. More... | |
Double_t | fRRFFreq |
RRF frequency given in units of (MHz, Mc, T) More... | |
Int_t | fRRFUnitTag |
RRF unit tag. More... | |
Double_t | fRRFPhase |
RRF phase in (°) More... | |
Int_t | fRRFPacking |
RRF packing. More... | |
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 More... | |
Int_t | fDataRange [4] |
data bin range (fit type 0, 1, 2, 4) More... | |
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, ... More... | |
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, ... More... | |
Bool_t | fFitRangeInBins |
flag telling if fit range is given in time or in bins More... | |
Double_t | fFitRange [2] |
fit range in (us) More... | |
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. More... | |
Int_t | fPacking |
packing/rebinning More... | |
Double_t | fAlpha |
estimated alpha value from F/B counts More... | |
PMsrGlobalBlock::PMsrGlobalBlock | ( | ) |
Constructor
Definition at line 735 of file PMusr.cpp.
References PMUSR_UNDEFINED, RRF_FREQ_UNDEF, and RRF_UNIT_UNDEF.
|
virtual |
get add T0 of the addrun (index addRunIdx) at index histoIdx
return:
addRunIdx | index of the addrun |
histoIdx | index of the add backward histo number value |
Definition at line 1001 of file PMusr.cpp.
Referenced by PMsrHandler::WriteMsrFile(), and PMsrHandler::WriteMsrLogFile().
|
inlinevirtual |
Definition at line 585 of file PMusr.h.
References fAddT0.
Referenced by PMsrHandler::WriteMsrFile().
|
virtual |
get add T0 size of the addrun at index addRunIdx
return:
addRunIdx | index of the addrun |
Definition at line 977 of file PMusr.cpp.
Referenced by PMsrHandler::WriteMsrFile(), and PMsrHandler::WriteMsrLogFile().
|
virtual |
get data range at position idx
return:
idx | index of the data range to be returned |
Definition at line 895 of file PMusr.cpp.
Referenced by PRunMuMinus::GetProperDataRange(), PRunSingleHistoRRF::GetProperDataRange(), PRunAsymmetryRRF::GetProperDataRange(), PRunSingleHisto::GetProperDataRange(), PRunAsymmetry::GetProperDataRange(), PMsrHandler::WriteMsrFile(), and PMsrHandler::WriteMsrLogFile().
|
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 1051 of file PMusr.cpp.
References PMUSR_UNDEFINED.
Referenced by PMsrHandler::CheckRunBlockIntegrity(), PFitter::ExecuteSave(), PRunMuMinus::GetProperFitRange(), PRunAsymmetryRRF::GetProperFitRange(), PRunSingleHisto::GetProperFitRange(), PRunSingleHistoRRF::GetProperFitRange(), PRunAsymmetry::GetProperFitRange(), PMusrCanvas::HandleDataSet(), PFitter::PFitter(), PRunNonMusr::PrepareData(), PMsrHandler::WriteMsrFile(), and PMsrHandler::WriteMsrLogFile().
|
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 1088 of file PMusr.cpp.
Referenced by PRunMuMinus::GetProperFitRange(), PRunSingleHistoRRF::GetProperFitRange(), PRunAsymmetryRRF::GetProperFitRange(), PRunSingleHisto::GetProperFitRange(), PRunAsymmetry::GetProperFitRange(), PMsrHandler::WriteMsrFile(), and PMsrHandler::WriteMsrLogFile().
|
inlinevirtual |
Definition at line 581 of file PMusr.h.
References fFitType.
Referenced by PMsrHandler::CheckMaxLikelihood(), PMsrHandler::CheckRRFSettings(), PMsrHandler::CheckRunBlockIntegrity(), PRunListCollection::GetNoOfBinsFitted(), PRunListCollection::GetSingleRunChisq(), PRunListCollection::GetSingleRunChisqExpected(), PRunListCollection::GetSingleRunMaximumLikelihood(), PRunListCollection::GetSingleRunMaximumLikelihoodExpected(), PMusrCanvas::UpdateDataTheoryPad(), PMsrHandler::WriteMsrFile(), and PMsrHandler::WriteMsrLogFile().
|
inlinevirtual |
Definition at line 591 of file PMusr.h.
References fPacking.
Referenced by PMsrHandler::CheckRunBlockIntegrity(), PRunNonMusr::PrepareData(), PRunAsymmetry::PRunAsymmetry(), PRunMuMinus::PRunMuMinus(), PRunSingleHisto::PRunSingleHisto(), PMsrHandler::WriteMsrFile(), and PMsrHandler::WriteMsrLogFile().
|
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 762 of file PMusr.cpp.
References GAMMA_BAR_MUON, RRF_FREQ_UNDEF, RRF_UNIT_Mcs, RRF_UNIT_MHz, RRF_UNIT_T, and RRF_UNIT_UNDEF.
Referenced by PMsrHandler::CheckRRFSettings(), PMsrHandler::HandleGlobalEntry(), PRunSingleHistoRRF::PrepareFitData(), PRunAsymmetryRRF::PrepareFitData(), PRunAsymmetryRRF::PrepareViewData(), PMusrCanvas::SetMsrHandler(), PMsrHandler::WriteMsrFile(), and PMsrHandler::WriteMsrLogFile().
|
inlinevirtual |
Definition at line 580 of file PMusr.h.
References fRRFPacking.
Referenced by PMsrHandler::CheckRRFSettings(), PMsrHandler::CheckRunBlockIntegrity(), PRunAsymmetryRRF::PRunAsymmetryRRF(), PRunSingleHistoRRF::PRunSingleHistoRRF(), PMusrCanvas::SetMsrHandler(), PMsrHandler::WriteMsrFile(), and PMsrHandler::WriteMsrLogFile().
|
inlinevirtual |
Definition at line 579 of file PMusr.h.
References fRRFPhase.
Referenced by PMsrHandler::CheckRRFSettings(), PRunSingleHistoRRF::PrepareFitData(), PRunAsymmetryRRF::PrepareFitData(), PRunAsymmetryRRF::PrepareViewData(), PMsrHandler::WriteMsrFile(), and PMsrHandler::WriteMsrLogFile().
|
virtual |
returns RRF frequency unit.
Definition at line 834 of file PMusr.cpp.
References RRF_UNIT_G, RRF_UNIT_kHz, RRF_UNIT_Mcs, RRF_UNIT_MHz, RRF_UNIT_T, and RRF_UNIT_UNDEF.
Referenced by PMsrHandler::CheckRRFSettings(), PRunSingleHistoRRF::PRunSingleHistoRRF(), PMusrCanvas::SetMsrHandler(), PMsrHandler::WriteMsrFile(), and PMsrHandler::WriteMsrLogFile().
|
inlinevirtual |
Definition at line 578 of file PMusr.h.
References fRRFUnitTag.
Referenced by PMsrHandler::CheckRunBlockIntegrity(), and PMusrCanvas::SetMsrHandler().
|
virtual |
get T0 bin at position idx
return:
idx | index of the T0 bin to be returned |
Definition at line 935 of file PMusr.cpp.
Referenced by PRunMuMinus::GetProperT0(), PRunSingleHistoRRF::GetProperT0(), PRunAsymmetryRRF::GetProperT0(), PRunSingleHisto::GetProperT0(), PRunAsymmetry::GetProperT0(), PMsrHandler::WriteMsrFile(), and PMsrHandler::WriteMsrLogFile().
|
inlinevirtual |
Definition at line 583 of file PMusr.h.
References fT0.
Referenced by PMsrHandler::CheckRunBlockIntegrity(), PRunMuMinus::GetProperT0(), PRunAsymmetryRRF::GetProperT0(), PRunSingleHistoRRF::GetProperT0(), PRunSingleHisto::GetProperT0(), PRunAsymmetry::GetProperT0(), PMsrHandler::WriteMsrFile(), and PMsrHandler::WriteMsrLogFile().
|
inlinevirtual |
Definition at line 588 of file PMusr.h.
References fFitRangeInBins.
Referenced by PMsrHandler::CheckRunBlockIntegrity(), PRunMuMinus::GetProperFitRange(), PRunAsymmetryRRF::GetProperFitRange(), PRunSingleHistoRRF::GetProperFitRange(), PRunSingleHisto::GetProperFitRange(), PRunAsymmetry::GetProperFitRange(), PMsrHandler::WriteMsrFile(), and PMsrHandler::WriteMsrLogFile().
|
inlinevirtual |
Definition at line 575 of file PMusr.h.
References fGlobalPresent.
Referenced by PRunSingleHistoRRF::PRunSingleHistoRRF(), and PMsrHandler::WriteMsrFile().
|
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 1028 of file PMusr.cpp.
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 912 of file PMusr.cpp.
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 1068 of file PMusr.cpp.
Referenced by PRunMuMinus::GetProperFitRange(), PRunAsymmetryRRF::GetProperFitRange(), PRunSingleHisto::GetProperFitRange(), PRunSingleHistoRRF::GetProperFitRange(), PRunAsymmetry::GetProperFitRange(), and PMsrHandler::HandleGlobalEntry().
|
inlinevirtual |
Definition at line 602 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 1105 of file PMusr.cpp.
Referenced by PMsrHandler::HandleGlobalEntry().
|
inlinevirtual |
Definition at line 598 of file PMusr.h.
References fFitType.
Referenced by PMsrHandler::HandleGlobalEntry().
|
inlinevirtual |
Definition at line 594 of file PMusr.h.
References fGlobalPresent.
Referenced by PMsrHandler::HandleGlobalEntry().
|
inlinevirtual |
Definition at line 605 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 806 of file PMusr.cpp.
References 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 873 of file PMusr.cpp.
Referenced by PMsrHandler::CheckRRFSettings(), and PMsrHandler::HandleGlobalEntry().
|
inlinevirtual |
Definition at line 596 of file PMusr.h.
References fRRFPhase.
Referenced by PMsrHandler::CheckRRFSettings(), and 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 952 of file PMusr.cpp.
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 616 of file PMusr.h.
Referenced by GetAddT0BinEntries().
|
private |
estimated alpha value from F/B counts
Definition at line 621 of file PMusr.h.
Referenced by GetEstimatedAlpha().
|
private |
|
private |
|
private |
flag telling if fit range is given in time or in bins
Definition at line 617 of file PMusr.h.
Referenced by IsFitRangeInBin(), and SetFitRangeInBins().
|
private |
|
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 613 of file PMusr.h.
Referenced by GetFitType(), and SetFitType().
|
private |
flag showing if a GLOBAL block is present at all.
Definition at line 608 of file PMusr.h.
Referenced by IsPresent(), and SetGlobalPresent().
|
private |
packing/rebinning
Definition at line 620 of file PMusr.h.
Referenced by GetPacking(), and SetPacking().
|
private |
|
private |
|
private |
RRF phase in (°)
Definition at line 611 of file PMusr.h.
Referenced by GetRRFPhase(), and SetRRFPhase().
|
private |
|
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 615 of file PMusr.h.
Referenced by GetT0BinSize().