musrfit
1.9.2
|
#include <PMsrHandler.h>
Public Member Functions | |
PMsrHandler (const Char_t *fileName, PStartupOptions *startupOptions=0, const Bool_t fourierOnly=false) | |
virtual | ~PMsrHandler () |
virtual Int_t | ReadMsrFile () |
virtual Int_t | WriteMsrLogFile (const Bool_t messages=true) |
virtual Int_t | WriteMsrFile (const Char_t *filename, std::map< UInt_t, TString > *commentsPAR=0, std::map< UInt_t, TString > *commentsTHE=0, std::map< UInt_t, TString > *commentsFUN=0, std::map< UInt_t, TString > *commentsRUN=0) |
virtual TString * | GetMsrTitle () |
virtual PMsrParamList * | GetMsrParamList () |
virtual PMsrLines * | GetMsrTheory () |
virtual PMsrLines * | GetMsrFunctions () |
virtual PMsrGlobalBlock * | GetMsrGlobal () |
virtual PMsrRunList * | GetMsrRunList () |
virtual PMsrLines * | GetMsrCommands () |
virtual PMsrFourierStructure * | GetMsrFourierList () |
virtual PMsrPlotList * | GetMsrPlotList () |
virtual PMsrStatisticStructure * | GetMsrStatistic () |
virtual TString * | GetMsrFileDirectoryPath () |
virtual UInt_t | GetNoOfRuns () |
virtual UInt_t | GetNoOfParams () |
virtual const TString & | GetFileName () const |
virtual void | SetMsrTitle (const TString &title) |
virtual Bool_t | SetMsrParamValue (UInt_t i, Double_t value) |
virtual Bool_t | SetMsrParamStep (UInt_t i, Double_t value) |
virtual Bool_t | SetMsrParamPosErrorPresent (UInt_t i, Bool_t value) |
virtual Bool_t | SetMsrParamPosError (UInt_t i, Double_t value) |
virtual void | SetMsrT0Entry (UInt_t runNo, UInt_t idx, Double_t bin) |
virtual void | SetMsrAddT0Entry (UInt_t runNo, UInt_t addRunIdx, UInt_t histoIdx, Double_t bin) |
virtual void | SetMsrDataRangeEntry (UInt_t runNo, UInt_t idx, Int_t bin) |
virtual void | SetMsrBkgRangeEntry (UInt_t runNo, UInt_t idx, Int_t bin) |
virtual void | CopyMsrStatisticBlock () |
virtual void | SetMsrStatisticConverged (Bool_t converged) |
virtual void | SetMsrStatisticMin (Double_t min) |
virtual void | SetMsrStatisticNdf (UInt_t ndf) |
virtual Int_t | GetNoOfFuncs () |
virtual UInt_t | GetFuncNo (Int_t idx) |
virtual UInt_t | GetFuncIndex (Int_t funNo) |
virtual Bool_t | CheckMapAndParamRange (UInt_t mapSize, UInt_t paramSize) |
virtual Double_t | EvalFunc (UInt_t i, std::vector< Int_t > map, std::vector< Double_t > param, PMetaData metaData) |
virtual UInt_t | GetNoOfFitParameters (UInt_t idx) |
virtual Int_t | ParameterInUse (UInt_t paramNo) |
virtual Bool_t | CheckRunBlockIntegrity () |
virtual Bool_t | CheckUniquenessOfParamNames (UInt_t &parX, UInt_t &parY) |
virtual Bool_t | CheckMaps () |
virtual Bool_t | CheckFuncs () |
virtual Bool_t | CheckHistoGrouping () |
virtual Bool_t | CheckAddRunParameters () |
virtual Bool_t | CheckRRFSettings () |
virtual void | CheckMaxLikelihood () |
virtual void | GetGroupingString (Int_t runNo, TString detector, TString &groupingStr) |
virtual Bool_t | EstimateN0 () |
Private Member Functions | |
virtual Bool_t | HandleFitParameterEntry (PMsrLines &line) |
virtual Bool_t | HandleTheoryEntry (PMsrLines &line) |
virtual Bool_t | HandleFunctionsEntry (PMsrLines &line) |
virtual Bool_t | HandleGlobalEntry (PMsrLines &line) |
virtual Bool_t | HandleRunEntry (PMsrLines &line) |
virtual Bool_t | HandleCommandsEntry (PMsrLines &line) |
virtual Bool_t | HandleFourierEntry (PMsrLines &line) |
virtual Bool_t | HandlePlotEntry (PMsrLines &line) |
virtual Bool_t | HandleStatisticEntry (PMsrLines &line) |
virtual void | FillParameterInUse (PMsrLines &theory, PMsrLines &funcs, PMsrLines &run) |
virtual void | InitFourierParameterStructure (PMsrFourierStructure &fourier) |
virtual void | RemoveComment (const TString &str, TString &truncStr) |
virtual Bool_t | ParseFourierPhaseValueVector (PMsrFourierStructure &fourier, const TString &str, Bool_t &error) |
virtual Bool_t | ParseFourierPhaseParVector (PMsrFourierStructure &fourier, const TString &str, Bool_t &error) |
virtual Bool_t | ParseFourierPhaseParIterVector (PMsrFourierStructure &fourier, const TString &str, Bool_t &error) |
virtual Bool_t | FilterNumber (TString str, const Char_t *filter, Int_t offset, Int_t &no) |
virtual UInt_t | NeededPrecision (Double_t dval, UInt_t precLimit=13) |
virtual UInt_t | LastSignificant (Double_t dval, UInt_t precLimit=6) |
virtual void | MakeDetectorGroupingString (TString str, PIntVector &group, TString &result, Bool_t includeDetector=true) |
virtual TString | BeautifyFourierPhaseParameterString () |
virtual void | CheckLegacyLifetimecorrection () |
Private Attributes | |
Bool_t | fFourierOnly |
flag indicating if Fourier transform only is wished. If yes, some part of the msr-file blocks are not needed. More... | |
PStartupOptions * | fStartupOptions |
contains information about startup options from the musrfit_startup.xml More... | |
TString | fFileName |
file name of the msr-file More... | |
TString | fMsrFileDirectoryPath |
msr-file directory path More... | |
TString | fTitle |
holds the title string of the msr-file More... | |
PMsrParamList | fParam |
holds a list of the fit parameters More... | |
PMsrLines | fTheory |
holds the theory definition More... | |
PMsrLines | fFunctions |
holds the user defined functions More... | |
PMsrGlobalBlock | fGlobal |
holds the information of the global section More... | |
PMsrRunList | fRuns |
holds a list of run information More... | |
PMsrLines | fCommands |
holds a list of the minuit commands More... | |
PMsrFourierStructure | fFourier |
holds the parameters used for the Fourier transform More... | |
PMsrPlotList | fPlots |
holds a list of the plot input parameters More... | |
PMsrStatisticStructure | fStatistic |
holds the statistic info More... | |
Int_t | fMsrBlockCounter |
used to select the proper msr-block More... | |
std::unique_ptr< PFunctionHandler > | fFuncHandler |
needed to parse functions More... | |
PIntVector | fParamInUse |
array holding the information if a particular parameter is used at all, i.e. if the theory is using it (perhaps via maps or functions) More... | |
Bool_t | fCopyStatisticsBlock |
flag, if true: just copy to old statistics block (musrt0), otherwise write a new one (musrfit) More... | |
This class provides the routines needed to handle msr-files, i.e. reading, writing, parsing, etc.
Definition at line 47 of file PMsrHandler.h.
PMsrHandler::PMsrHandler | ( | const Char_t * | fileName, |
PStartupOptions * | startupOptions = 0 , |
||
const Bool_t | fourierOnly = false |
||
) |
Constructor
fileName | name of a msr-file. |
Definition at line 52 of file PMsrHandler.cpp.
References PMsrStatisticStructure::fChisq, fCopyStatisticsBlock, fFileName, PMsrStatisticStructure::fMin, PMsrStatisticStructure::fMinExpected, PMsrStatisticStructure::fMinExpectedPerHisto, fMsrBlockCounter, fMsrFileDirectoryPath, PMsrStatisticStructure::fNdf, PMsrStatisticStructure::fNdfPerHisto, fStatistic, fTitle, and PMsrStatisticStructure::fValid.
|
virtual |
Destructor
Definition at line 88 of file PMsrHandler.cpp.
References fCommands, fFunctions, PMsrStatisticStructure::fMinExpectedPerHisto, PMsrStatisticStructure::fNdfPerHisto, fParam, fParamInUse, fPlots, fRuns, fStatistic, PMsrStatisticStructure::fStatLines, and fTheory.
|
privatevirtual |
Returns the Fourier phase string if the phase is either of type phase parX0 sep ... sep parXn where sep = ',' or phase par(X0, offset, #param)
Definition at line 6676 of file PMsrHandler.cpp.
References fFourier, PMsrFourierStructure::fPhaseParamNo, and PMsrFourierStructure::fPhaseRef.
Referenced by WriteMsrFile(), and WriteMsrLogFile().
|
virtual |
In case addrun is present check that if addt0's are given there are as many addt0's than addrun's.
return:
Definition at line 6356 of file PMsrHandler.cpp.
References fRuns.
Referenced by ReadMsrFile().
|
virtual |
Checks if fun entries found in the theory- and run-block are also present in the functions-block.
return:
Definition at line 6216 of file PMsrHandler.cpp.
References fFourierOnly, fFunctions, FilterNumber(), fRuns, fTheory, and MSR_PARAM_FUN_OFFSET.
Referenced by ReadMsrFile().
|
virtual |
Checks if histogram grouping makes any sense.
return:
Definition at line 6310 of file PMsrHandler.cpp.
References fRuns.
Referenced by ReadMsrFile().
|
privatevirtual |
Checks for lifetimecorrection flags in the RUN-blocks and if present, transfer it to the PLOT-blocks. This is needed since originally the lifetimecorrection was (miss)placed in the RUN-blocks rather than in the PLOT-blocks where it most naturally would have been expected.
Definition at line 6744 of file PMsrHandler.cpp.
Referenced by ReadMsrFile().
|
inlinevirtual |
Definition at line 96 of file PMsrHandler.h.
References fFuncHandler.
Referenced by PRunBase::PRunBase().
|
virtual |
Checks if map entries found in the theory- or function-block are also present in the run-block.
return:
Definition at line 6106 of file PMsrHandler.cpp.
References fFunctions, FilterNumber(), fRuns, fTheory, and MSR_PARAM_MAP_OFFSET.
Referenced by ReadMsrFile().
|
virtual |
If log max likelihood is requested, make sure that all run blocks are of single histogram type. If this is not the case, fall back to chisq, since for asymmetry/non-muSR fit, log max likelihood is not defined.
Definition at line 6386 of file PMsrHandler.cpp.
References PMsrStatisticStructure::fChisq, fGlobal, fRuns, fStatistic, PMsrGlobalBlock::GetFitType(), MSR_FITTYPE_MU_MINUS, and MSR_FITTYPE_SINGLE_HISTO.
Referenced by ReadMsrFile().
|
virtual |
Make sure that if RRF settings are found in the GLOBAL section, the fit types in the RUN blocks correspond.
Definition at line 6409 of file PMsrHandler.cpp.
References fGlobal, fRuns, PMsrGlobalBlock::GetFitType(), PMsrGlobalBlock::GetRRFFreq(), PMsrGlobalBlock::GetRRFPacking(), PMsrGlobalBlock::GetRRFPhase(), PMsrGlobalBlock::GetRRFUnit(), MSR_FITTYPE_ASYM_RRF, MSR_FITTYPE_SINGLE_HISTO_RRF, RRF_FREQ_UNDEF, PMsrGlobalBlock::SetRRFPacking(), and PMsrGlobalBlock::SetRRFPhase().
Referenced by ReadMsrFile().
|
virtual |
Checks the consistency of each RUN block, i.e. are the necessary parameters set and present, etc.
return:
Definition at line 5729 of file PMsrHandler.cpp.
References fFourierOnly, fGlobal, fParam, fRuns, PMsrGlobalBlock::GetFitRange(), PMsrGlobalBlock::GetFitType(), GetNoOfFuncs(), PMsrGlobalBlock::GetPacking(), PMsrGlobalBlock::GetRRFPacking(), PMsrGlobalBlock::GetRRFUnitTag(), PMsrGlobalBlock::GetT0BinSize(), PMsrGlobalBlock::IsFitRangeInBin(), MSR_PARAM_FUN_OFFSET, PMUSR_UNDEFINED, PRUN_ASYMMETRY, PRUN_ASYMMETRY_BNMR, PRUN_ASYMMETRY_RRF, PRUN_MU_MINUS, PRUN_NON_MUSR, PRUN_SINGLE_HISTO, PRUN_SINGLE_HISTO_RRF, and RRF_UNIT_UNDEF.
Referenced by ReadMsrFile().
|
virtual |
Checks if all the fit parameters are unique. If not parX, parY will show the first occurence of equal fit parameter names.
return:
parX | index of the 1st fit parameter name for which there is a counter part. |
parY | index of the counter part fit parameter name. |
Definition at line 6077 of file PMsrHandler.cpp.
References fParam.
Referenced by ReadMsrFile().
|
inlinevirtual |
Definition at line 88 of file PMsrHandler.h.
References fCopyStatisticsBlock.
|
virtual |
returns if N0 shall be estimated
Definition at line 6535 of file PMsrHandler.cpp.
References PStartupOptions::estimateN0, and fStartupOptions.
Referenced by PRunSingleHisto::PrepareFitData().
|
inlinevirtual |
Definition at line 98 of file PMsrHandler.h.
References fFuncHandler.
Referenced by PRunMuMinus::CalcChiSquare(), PRunSingleHistoRRF::CalcChiSquare(), PRunSingleHisto::CalcChiSquare(), PRunAsymmetryRRF::CalcChiSquare(), PRunAsymmetry::CalcChiSquare(), PRunNonMusr::CalcChiSquare(), PRunSingleHisto::CalcChiSquareExpected(), PRunMuMinus::CalcChiSquareExpected(), PRunSingleHistoRRF::CalcChiSquareExpected(), PRunSingleHisto::CalcMaxLikelihood(), PRunMuMinus::CalcMaxLikelihood(), PRunSingleHisto::CalcMaxLikelihoodExpected(), PRunMuMinus::CalcTheory(), PRunSingleHistoRRF::CalcTheory(), PRunAsymmetry::CalcTheory(), PRunSingleHisto::CalcTheory(), PRunAsymmetryRRF::CalcTheory(), PRunMuMinus::PrepareRawViewData(), PRunSingleHisto::PrepareRawViewData(), PRunAsymmetry::PrepareRRFViewData(), PRunNonMusr::PrepareViewData(), PRunSingleHistoRRF::PrepareViewData(), PRunAsymmetryRRF::PrepareViewData(), PRunAsymmetry::PrepareViewData(), and PRunSingleHisto::PrepareViewData().
|
privatevirtual |
Fills the fParamInUse vector. An element of the vector will be 0 if the fit parameter is not used at all, otherwise it will be > 0.
theory | msr-file THEROY block lines |
funcs | msr-file FUNCTIONS block lines |
run | msr-file RUN blocks lines |
Definition at line 5386 of file PMsrHandler.cpp.
References FilterNumber(), fParam, fParamInUse, MSR_PARAM_FUN_OFFSET, MSR_PARAM_MAP_OFFSET, and ParameterInUse().
Referenced by ReadMsrFile().
|
privatevirtual |
Used to filter numbers from a string of the structure strX, where X is a number. The filter string is used to define the offset to X. It is used to filter strings like: map1 or fun4. At the moment only the filter strings 'map', 'fun', and 'par' are supported.
return:
str | input string |
filter | filter string |
offset | it is used to offset to found number, e.g. strX -> no = X+offset |
no | filtered number |
Definition at line 3841 of file PMsrHandler.cpp.
Referenced by CheckFuncs(), CheckMaps(), FillParameterInUse(), HandlePlotEntry(), HandleRunEntry(), and WriteMsrLogFile().
|
inlinevirtual |
Definition at line 74 of file PMsrHandler.h.
References fFileName.
Referenced by PFitter::ExecuteSave().
|
inlinevirtual |
Definition at line 95 of file PMsrHandler.h.
References fFuncHandler.
Referenced by PTheory::PTheory(), and WriteMsrLogFile().
|
inlinevirtual |
Definition at line 94 of file PMsrHandler.h.
References fFuncHandler.
Referenced by PRunMuMinus::CalcChiSquare(), PRunSingleHistoRRF::CalcChiSquare(), PRunSingleHisto::CalcChiSquare(), PRunAsymmetryRRF::CalcChiSquare(), PRunAsymmetry::CalcChiSquare(), PRunNonMusr::CalcChiSquare(), PRunSingleHisto::CalcChiSquareExpected(), PRunMuMinus::CalcChiSquareExpected(), PRunSingleHistoRRF::CalcChiSquareExpected(), PRunSingleHisto::CalcMaxLikelihood(), PRunMuMinus::CalcMaxLikelihood(), PRunSingleHisto::CalcMaxLikelihoodExpected(), PRunMuMinus::CalcTheory(), PRunSingleHistoRRF::CalcTheory(), PRunAsymmetry::CalcTheory(), PRunSingleHisto::CalcTheory(), PRunAsymmetryRRF::CalcTheory(), PRunMuMinus::PrepareRawViewData(), PRunSingleHisto::PrepareRawViewData(), PRunAsymmetry::PrepareRRFViewData(), PRunNonMusr::PrepareViewData(), PRunSingleHistoRRF::PrepareViewData(), PRunAsymmetryRRF::PrepareViewData(), PRunAsymmetry::PrepareViewData(), and PRunSingleHisto::PrepareViewData().
|
virtual |
returns the forward/backward grouping string.
runNo | msr-file run block number |
detector | tag telling which set to be used. Possible are: 'forward' and 'backward' |
groupingStr | compressed grouping information. |
Definition at line 6509 of file PMsrHandler.cpp.
References fRuns, and MakeDetectorGroupingString().
Referenced by PMusrCanvas::UpdateInfoPad().
|
inlinevirtual |
Definition at line 64 of file PMsrHandler.h.
References fCommands.
Referenced by PRunSingleHisto::IsScaleN0AndBkg(), PMusrCanvas::IsScaleN0AndBkg(), and PFitter::PFitter().
|
inlinevirtual |
Definition at line 69 of file PMsrHandler.h.
References fMsrFileDirectoryPath.
Referenced by PRunDataHandler::FileExistsCheck().
|
inlinevirtual |
Definition at line 65 of file PMsrHandler.h.
References fFourier.
Referenced by PMusrCanvas::CalcPhaseOptReFT(), and PMusrCanvas::SetMsrHandler().
|
inlinevirtual |
Definition at line 61 of file PMsrHandler.h.
References fFunctions.
Referenced by PFitter::GetParFromFun(), and PMusrCanvas::UpdateParamTheoryPad().
|
inlinevirtual |
Definition at line 62 of file PMsrHandler.h.
References fGlobal.
Referenced by PRunListCollection::Add(), PFitter::ExecuteSave(), PRunListCollection::GetNoOfBinsFitted(), PRunMuMinus::GetProperDataRange(), PRunSingleHisto::GetProperDataRange(), PRunAsymmetryRRF::GetProperDataRange(), PRunSingleHistoRRF::GetProperDataRange(), PRunAsymmetry::GetProperDataRange(), PRunListCollection::GetSingleRunChisq(), PRunListCollection::GetSingleRunChisqExpected(), PRunListCollection::GetSingleRunMaximumLikelihood(), PRunListCollection::GetSingleRunMaximumLikelihoodExpected(), PMusrCanvas::HandleDataSet(), PFitter::PFitter(), PRunNonMusr::PrepareData(), PRunSingleHistoRRF::PrepareData(), PRunMuMinus::PrepareData(), PRunAsymmetryRRF::PrepareData(), PRunAsymmetry::PrepareData(), PRunSingleHisto::PrepareData(), PRunSingleHistoRRF::PrepareFitData(), PRunAsymmetryRRF::PrepareFitData(), PRunAsymmetryRRF::PrepareViewData(), PRunAsymmetry::PRunAsymmetry(), PRunAsymmetryRRF::PRunAsymmetryRRF(), PRunMuMinus::PRunMuMinus(), PRunSingleHisto::PRunSingleHisto(), PRunSingleHistoRRF::PRunSingleHistoRRF(), PMusrCanvas::SetMsrHandler(), and PMusrCanvas::UpdateDataTheoryPad().
|
inlinevirtual |
Definition at line 59 of file PMsrHandler.h.
References fParam.
Referenced by PRunMuMinus::CalcTheory(), PRunSingleHistoRRF::CalcTheory(), PRunAsymmetryRRF::CalcTheory(), PRunAsymmetry::CalcTheory(), PRunSingleHisto::CalcTheory(), PRunSingleHisto::EstimateN0(), PFitter::ExecuteSave(), PFitter::PFitter(), PMsr2Data::PrepareGlobalInputFile(), PRunMuMinus::PrepareRawViewData(), PRunSingleHisto::PrepareRawViewData(), PRunAsymmetry::PrepareRRFViewData(), PRunNonMusr::PrepareViewData(), PRunSingleHistoRRF::PrepareViewData(), PRunAsymmetryRRF::PrepareViewData(), PRunAsymmetry::PrepareViewData(), PRunSingleHisto::PrepareViewData(), PRunAsymmetry::PRunAsymmetry(), PRunAsymmetryRRF::PRunAsymmetryRRF(), and PMusrCanvas::UpdateParamTheoryPad().
|
inlinevirtual |
Definition at line 66 of file PMsrHandler.h.
References fPlots.
Referenced by PMusrCanvas::HandleDataSet(), PMusrCanvas::HandleNonMusrDataSet(), PMusrCanvas::PlotData(), PMusrCanvas::PlotDifference(), PMusrCanvas::PlotFourier(), PMusrCanvas::PlotFourierDifference(), PRunAsymmetry::PrepareData(), PRunSingleHisto::PrepareData(), PRunMuMinus::PrepareRawViewData(), PRunSingleHisto::PrepareRawViewData(), PRunAsymmetry::PrepareRRFViewData(), PRunNonMusr::PrepareViewData(), PRunSingleHistoRRF::PrepareViewData(), PRunAsymmetry::PrepareViewData(), PRunSingleHisto::PrepareViewData(), PMusrCanvas::SaveGraphicsAndQuit(), PMusrCanvas::SetMsrHandler(), PMusrCanvas::UpdateDataTheoryPad(), and PMusrCanvas::UpdateInfoPad().
|
inlinevirtual |
Definition at line 63 of file PMsrHandler.h.
References fRuns.
Referenced by PRunListCollection::Add(), PFitter::CheckCommands(), PFitter::DoFit(), PFitter::ExecuteFitRange(), PFitter::ExecuteSave(), PRunListCollection::GetNoOfBinsFitted(), PFitter::GetParFromMap(), PRunListCollection::GetSingleRunChisq(), PRunListCollection::GetSingleRunChisqExpected(), PRunListCollection::GetSingleRunMaximumLikelihood(), PRunListCollection::GetSingleRunMaximumLikelihoodExpected(), PMusrCanvas::HandleDataSet(), PMusrCanvas::HandleNonMusrDataSet(), PMusrT0::InitDataAndBkg(), PMusrT0::InitT0(), PFitter::PFitter(), PMusrCanvas::PlotAverage(), PMusrCanvas::PlotData(), PMusrCanvas::PlotDifference(), PFitter::PrepareSector(), PRunNonMusr::PrepareViewData(), PRunBase::PRunBase(), PTheory::PTheory(), PRunDataHandler::ReadFilesMsr(), PMusrCanvas::UpdateDataTheoryPad(), and PMusrCanvas::UpdateInfoPad().
|
inlinevirtual |
Definition at line 67 of file PMsrHandler.h.
References fStatistic.
Referenced by PFitter::CheckCommands(), PFitter::DoFit(), PFitter::ExecuteSave(), and PMusrCanvas::UpdateInfoPad().
|
inlinevirtual |
Definition at line 60 of file PMsrHandler.h.
References fTheory.
Referenced by PFitter::GetPhaseParams(), PTheory::GetUserFcnIdx(), PTheory::PTheory(), and PMusrCanvas::UpdateParamTheoryPad().
|
inlinevirtual |
Definition at line 58 of file PMsrHandler.h.
References fTitle.
|
virtual |
Calculate the number of fit parameters.
idx | run block index |
Definition at line 5189 of file PMsrHandler.cpp.
References fFunctions, fParam, fRuns, fTheory, MSR_PARAM_FUN_OFFSET, and status.
Referenced by PFitter::DoFit(), PFitter::ExecuteSave(), and PFitter::PrepareSector().
|
inlinevirtual |
Definition at line 93 of file PMsrHandler.h.
References fFuncHandler.
Referenced by PRunMuMinus::CalcChiSquare(), PRunSingleHisto::CalcChiSquare(), PRunSingleHistoRRF::CalcChiSquare(), PRunAsymmetry::CalcChiSquare(), PRunNonMusr::CalcChiSquare(), PRunAsymmetryRRF::CalcChiSquare(), PRunSingleHisto::CalcChiSquareExpected(), PRunMuMinus::CalcChiSquareExpected(), PRunSingleHistoRRF::CalcChiSquareExpected(), PRunMuMinus::CalcMaxLikelihood(), PRunSingleHisto::CalcMaxLikelihood(), PRunSingleHisto::CalcMaxLikelihoodExpected(), PRunSingleHistoRRF::CalcTheory(), PRunMuMinus::CalcTheory(), PRunAsymmetryRRF::CalcTheory(), PRunSingleHisto::CalcTheory(), PRunAsymmetry::CalcTheory(), CheckRunBlockIntegrity(), PRunMuMinus::PrepareRawViewData(), PRunSingleHisto::PrepareRawViewData(), PRunAsymmetry::PrepareRRFViewData(), PRunNonMusr::PrepareViewData(), PRunSingleHistoRRF::PrepareViewData(), PRunAsymmetryRRF::PrepareViewData(), PRunAsymmetry::PrepareViewData(), PRunSingleHisto::PrepareViewData(), PRunAsymmetry::PRunAsymmetry(), and PRunBase::PRunBase().
|
inlinevirtual |
Definition at line 73 of file PMsrHandler.h.
References fParam.
Referenced by PFitter::GetPhaseParams(), and PRunBase::PRunBase().
|
inlinevirtual |
Definition at line 71 of file PMsrHandler.h.
References fRuns.
Referenced by PFitter::CheckCommands().
|
privatevirtual |
Just copies the COMMAND block lines.
return:
lines | is a list of lines containing the command block |
Definition at line 3880 of file PMsrHandler.cpp.
References fCommands, and fFourierOnly.
Referenced by ReadMsrFile().
|
privatevirtual |
The routine analyze a parameter line and, if the possible parameter list is OK (what this means see below), it adds the parameter to the parameter list.
Possible cases:
return:
lines | is a list of lines containing the fitparameter block |
Definition at line 2691 of file PMsrHandler.cpp.
References PMsrParamStructure::fLowerBoundary, PMsrParamStructure::fLowerBoundaryPresent, PMsrParamStructure::fName, PMsrParamStructure::fNo, PMsrParamStructure::fNoOfParams, fParam, PMsrParamStructure::fPosError, PMsrParamStructure::fPosErrorPresent, PMsrParamStructure::fStep, PMsrParamStructure::fUpperBoundary, PMsrParamStructure::fUpperBoundaryPresent, and PMsrParamStructure::fValue.
Referenced by ReadMsrFile().
|
privatevirtual |
Parses the Fourier block of a msr-file.
return:
lines | is a list of lines containing the fourier parameter block |
Definition at line 4229 of file PMsrHandler.cpp.
References PMsrFourierStructure::fApodization, PMsrFourierStructure::fDCCorrected, fFourier, PMsrFourierStructure::fFourierBlockPresent, PMsrFourierStructure::fFourierPower, FOURIER_APOD_MEDIUM, FOURIER_APOD_NONE, FOURIER_APOD_STRONG, FOURIER_APOD_WEAK, FOURIER_PLOT_IMAG, FOURIER_PLOT_PHASE, FOURIER_PLOT_PHASE_OPT_REAL, FOURIER_PLOT_POWER, FOURIER_PLOT_REAL, FOURIER_PLOT_REAL_AND_IMAG, FOURIER_UNIT_CYCLES, FOURIER_UNIT_FREQ, FOURIER_UNIT_GAUSS, FOURIER_UNIT_TESLA, fParam, PMsrFourierStructure::fPhase, PMsrFourierStructure::fPhaseParamNo, PMsrFourierStructure::fPhaseRef, PMsrFourierStructure::fPlotRange, PMsrFourierStructure::fPlotTag, PMsrFourierStructure::fRangeForPhaseCorrection, PMsrFourierStructure::fUnits, InitFourierParameterStructure(), ParseFourierPhaseParIterVector(), ParseFourierPhaseParVector(), ParseFourierPhaseValueVector(), and RemoveComment().
Referenced by ReadMsrFile().
|
privatevirtual |
Parses the FUNCTIONS block of the msr-file.
return:
lines | is a list of lines containing the functions block |
Definition at line 2927 of file PMsrHandler.cpp.
References fFourierOnly, fFuncHandler, and fFunctions.
Referenced by ReadMsrFile().
|
privatevirtual |
Parses the GLOBAL block of the msr-file.
return:
lines | is a list of lines containing the run blocks |
Definition at line 2965 of file PMsrHandler.cpp.
References fGlobal, PMsrGlobalBlock::GetRRFFreq(), MSR_FITTYPE_ASYM, MSR_FITTYPE_ASYM_RRF, MSR_FITTYPE_BNMR, MSR_FITTYPE_MU_MINUS, MSR_FITTYPE_NON_MUSR, MSR_FITTYPE_SINGLE_HISTO, MSR_FITTYPE_SINGLE_HISTO_RRF, RRF_FREQ_UNDEF, PMsrGlobalBlock::SetAddT0Bin(), PMsrGlobalBlock::SetDataRange(), PMsrGlobalBlock::SetFitRange(), PMsrGlobalBlock::SetFitRangeInBins(), PMsrGlobalBlock::SetFitRangeOffset(), PMsrGlobalBlock::SetFitType(), PMsrGlobalBlock::SetGlobalPresent(), PMsrGlobalBlock::SetPacking(), PMsrGlobalBlock::SetRRFFreq(), PMsrGlobalBlock::SetRRFPacking(), PMsrGlobalBlock::SetRRFPhase(), and PMsrGlobalBlock::SetT0Bin().
Referenced by ReadMsrFile().
|
privatevirtual |
Parses the PLOT block of a msr-file.
return:
lines | is a list of lines containing the plot block |
Definition at line 4546 of file PMsrHandler.cpp.
References FilterNumber(), PMsrPlotStructure::fLifeTimeCorrection, PMsrPlotStructure::fLogX, PMsrPlotStructure::fLogY, fParam, fPlots, PMsrPlotStructure::fPlotType, PMsrPlotStructure::fRRFFreq, PMsrPlotStructure::fRRFPacking, PMsrPlotStructure::fRRFPhase, PMsrPlotStructure::fRRFPhaseParamNo, PMsrPlotStructure::fRRFUnit, fRuns, PMsrPlotStructure::fRuns, PMsrPlotStructure::fTmax, PMsrPlotStructure::fTmin, PMsrPlotStructure::fUseFitRanges, PMsrPlotStructure::fViewPacking, PMsrPlotStructure::fYmax, PMsrPlotStructure::fYmin, if(), MSR_PLOT_ASYM, MSR_PLOT_ASYM_RRF, MSR_PLOT_BNMR, MSR_PLOT_MU_MINUS, MSR_PLOT_NON_MUSR, MSR_PLOT_SINGLE_HISTO, MSR_PLOT_SINGLE_HISTO_RRF, RRF_UNIT_G, RRF_UNIT_kHz, RRF_UNIT_Mcs, RRF_UNIT_MHz, and RRF_UNIT_T.
Referenced by ReadMsrFile().
|
privatevirtual |
Parses the RUN blocks of the msr-file.
return:
lines | is a list of lines containing the run blocks |
Definition at line 3226 of file PMsrHandler.cpp.
References PMsrRunBlock::CleanUp(), fFourierOnly, FilterNumber(), fParam, fRuns, PMsrRunBlock::GetMap(), MSR_FITTYPE_ASYM, MSR_FITTYPE_ASYM_RRF, MSR_FITTYPE_BNMR, MSR_FITTYPE_MU_MINUS, MSR_FITTYPE_NON_MUSR, MSR_FITTYPE_SINGLE_HISTO, MSR_FITTYPE_SINGLE_HISTO_RRF, MSR_PARAM_FUN_OFFSET, PMsrRunBlock::SetAddT0Bin(), PMsrRunBlock::SetAlphaParamNo(), PMsrRunBlock::SetBackwardHistoNo(), PMsrRunBlock::SetBeamline(), PMsrRunBlock::SetBetaParamNo(), PMsrRunBlock::SetBkgFitParamNo(), PMsrRunBlock::SetBkgFix(), PMsrRunBlock::SetBkgRange(), PMsrRunBlock::SetDataRange(), PMsrRunBlock::SetFileFormat(), PMsrRunBlock::SetFitRange(), PMsrRunBlock::SetFitRangeInBins(), PMsrRunBlock::SetFitRangeOffset(), PMsrRunBlock::SetFitType(), PMsrRunBlock::SetForwardHistoNo(), PMsrRunBlock::SetInstitute(), PMsrRunBlock::SetLifetimeCorrection(), PMsrRunBlock::SetLifetimeParamNo(), PMsrRunBlock::SetMap(), PMsrRunBlock::SetNormParamNo(), PMsrRunBlock::SetPacking(), PMsrRunBlock::SetRunName(), PMsrRunBlock::SetT0Bin(), PMsrRunBlock::SetXDataIndex(), PMsrRunBlock::SetXDataLabel(), PMsrRunBlock::SetYDataIndex(), and PMsrRunBlock::SetYDataLabel().
Referenced by ReadMsrFile().
|
privatevirtual |
Handles the STATISTIC block of a msr-file.
return:
lines | is a list of lines containing the statistic block |
Definition at line 5083 of file PMsrHandler.cpp.
References PMsrStatisticStructure::fDate, fFourierOnly, PMsrStatisticStructure::fMin, PMsrStatisticStructure::fMinExpected, PMsrStatisticStructure::fNdf, fStatistic, PMsrStatisticStructure::fStatLines, PMsrStatisticStructure::fValid, and status.
Referenced by ReadMsrFile().
|
privatevirtual |
Just stores the THEORY block lines.
return:
lines | is a list of lines containing the theory block |
Definition at line 2903 of file PMsrHandler.cpp.
References fFourierOnly, and fTheory.
Referenced by ReadMsrFile().
|
privatevirtual |
Initializes the Fourier parameter structure.
fourier | fourier parameters |
Definition at line 3909 of file PMsrHandler.cpp.
References PMsrFourierStructure::fApodization, PMsrFourierStructure::fDCCorrected, PMsrFourierStructure::fFourierBlockPresent, PMsrFourierStructure::fFourierPower, FOURIER_APOD_NOT_GIVEN, FOURIER_PLOT_NOT_GIVEN, FOURIER_UNIT_NOT_GIVEN, PMsrFourierStructure::fPhase, PMsrFourierStructure::fPhaseParamNo, PMsrFourierStructure::fPhaseRef, PMsrFourierStructure::fPlotRange, PMsrFourierStructure::fPlotTag, PMsrFourierStructure::fRangeForPhaseCorrection, and PMsrFourierStructure::fUnits.
Referenced by HandleFourierEntry(), and ReadMsrFile().
|
privatevirtual |
Gets the last significant digit down to precLimit.
dval | value for which the last signigicant digit shall be found |
precLimit | precision limit |
return: last significant digit down to precLimit
Definition at line 6587 of file PMsrHandler.cpp.
Referenced by WriteMsrFile(), and WriteMsrLogFile().
|
privatevirtual |
encodes the detector grouping vector.
str | 'forward' or 'backward' |
group | detector grouping vector to be encoded |
result | encoded detector grouping string |
includeDetector | if true, the detector information is included |
Definition at line 6629 of file PMsrHandler.cpp.
Referenced by GetGroupingString(), and WriteMsrLogFile().
|
privatevirtual |
Calculates the needed precision of Double_t values for WriteMsrLogFile and WriteMsrFile of the fit range. If a precision of > precLimit decimal places is needed, a warning is placed and a value of precLimit is returned.
dval | value for which the precision has to be estimated |
precLimit | precision limit |
return: needed precision
Definition at line 6555 of file PMsrHandler.cpp.
Referenced by WriteMsrLogFile().
|
virtual |
Needed for the following purpose: if minuit is minimizing, it varies all the parameters of the parameter list (if not fixed), even if a particular parameter is NOT used at all. This is stupid! Hence one has to check if the parameter is used at all and if not, it has to be fixed.
return:
paramNo | parameter number |
Definition at line 2658 of file PMsrHandler.cpp.
References fParam, and fParamInUse.
Referenced by PFitter::ExecuteMinos(), PFitter::ExecuteSave(), FillParameterInUse(), and PFitter::SetParameters().
|
privatevirtual |
examines if str has the form 'phase par(X0, offset, #params)' or 'phase parR(X0, offset, #params)'. If this form is found, fill in parX0 ... parXN to fourier.fPhaseParamNo, and in case of 'parR' also set the fourier.fPhaseRef accordingly.
fourier | msr-file Fourier structure |
str | string to be analyzed |
error | flag needed to propagate a fatal error |
Definition at line 4117 of file PMsrHandler.cpp.
References PMsrFourierStructure::fPhaseParamNo, and PMsrFourierStructure::fPhaseRef.
Referenced by HandleFourierEntry().
|
privatevirtual |
examines if str has the form 'phase parX0 [sep parX1 ... sep parXN]'. Also allowed is that instead of parXn only one of the parameters could have the form parRn which markes a reference phase for relative phase fittings. If this form is found, fill in parX0 ... parXN to fourier.fPhaseParamNo, and in case a parR is present, set the fourier.fPhaseRef accordingly.
fourier | msr-file Fourier structure |
str | string to be analyzed |
error | flag needed to propagate a fatal error |
Definition at line 4020 of file PMsrHandler.cpp.
References PMsrFourierStructure::fPhaseParamNo, and PMsrFourierStructure::fPhaseRef.
Referenced by HandleFourierEntry().
|
privatevirtual |
examines if str has the form 'phase val0 [sep val1 ... sep valN]'. If this form is found, fill in val0 ... valN to fFourier.fPhase vector.
fourier | msr-file Fourier structure |
str | string to be analyzed |
error | flag needed to propagate a fatal error |
Definition at line 3961 of file PMsrHandler.cpp.
References PMsrFourierStructure::fPhase.
Referenced by HandleFourierEntry().
|
virtual |
Reads and parses a msr-file.
return:
Definition at line 112 of file PMsrHandler.cpp.
References CheckAddRunParameters(), CheckFuncs(), CheckHistoGrouping(), CheckLegacyLifetimecorrection(), CheckMaps(), CheckMaxLikelihood(), CheckRRFSettings(), CheckRunBlockIntegrity(), CheckUniquenessOfParamNames(), PMsrStatisticStructure::fChisq, fCommands, fFileName, fFourier, fFourierOnly, FillParameterInUse(), PMsrLineStructure::fLine, PMsrLineStructure::fLineNo, fMsrBlockCounter, fParam, PMsrFourierStructure::fPhase, fPlots, fStatistic, fTitle, HandleCommandsEntry(), HandleFitParameterEntry(), HandleFourierEntry(), HandleFunctionsEntry(), HandleGlobalEntry(), HandlePlotEntry(), HandleRunEntry(), HandleStatisticEntry(), HandleTheoryEntry(), InitFourierParameterStructure(), MSR_TAG_COMMANDS, MSR_TAG_FITPARAMETER, MSR_TAG_FOURIER, MSR_TAG_FUNCTIONS, MSR_TAG_GLOBAL, MSR_TAG_PLOT, MSR_TAG_RUN, MSR_TAG_STATISTIC, MSR_TAG_THEORY, PMUSR_MSR_FILE_NOT_FOUND, PMUSR_MSR_SYNTAX_ERROR, and PMUSR_SUCCESS.
Referenced by PMsr2Data::GetSingleRunMsrFile().
|
privatevirtual |
Removes a potentially present comment from str and returns the truncated string in truncStr. A comment starts with '#'
str | original string which might contain a comment |
truncStr | string from which the comment has been removed |
Definition at line 3936 of file PMsrHandler.cpp.
Referenced by HandleFourierEntry().
|
virtual |
Sets a t0 value for an addrun entry.
runNo | msr-file run number |
addRunIdx | msr-file addrun index, e.g. if 2 addruns are present addRunIdx can take the values 0 or 1. |
histoIdx | msr-file histogram index for an addrun. |
bin | t0 bin value. |
Definition at line 2578 of file PMsrHandler.cpp.
References fRuns.
Referenced by PMusrT0::SetEstimatedT0Channel(), and PMusrT0::SetT0Channel().
|
virtual |
Sets the background range entries for a given runNo and a given histogram index idx.
runNo | msr-file run number |
idx | 0=start bin index, 1=end bin index |
bin | background range bin value |
Definition at line 2632 of file PMsrHandler.cpp.
References fRuns.
Referenced by PMusrT0::SetBkgFirstChannel(), and PMusrT0::SetBkgLastChannel().
|
virtual |
Sets the data range entries for a given runNo and a given histogram index idx.
runNo | msr-file run number |
idx | 0=start bin index, 1=end bin index |
bin | data range bin value |
Definition at line 2611 of file PMsrHandler.cpp.
References fRuns.
Referenced by PMusrT0::SetDataFirstChannel(), and PMusrT0::SetDataLastChannel().
|
virtual |
Sets the fit parameter positive error value at positon idx.
return:
idx | index fo the fit parameter positive error value |
value | fit parameter positive error value to be set. |
Definition at line 2526 of file PMsrHandler.cpp.
References fParam.
Referenced by PFitter::ExecuteMinos().
|
virtual |
Sets the flag whether the fit parameter positive error value is persent. This at positon idx.
return:
idx | index fo the fit parameter positive error value |
value | fit parameter positive error value present. |
Definition at line 2500 of file PMsrHandler.cpp.
References fParam.
Referenced by PFitter::DoFit(), PFitter::ExecuteHesse(), PFitter::ExecuteMigrad(), PFitter::ExecuteMinimize(), PFitter::ExecuteMinos(), and PFitter::ExecuteSimplex().
|
virtual |
Sets the fit parameter step value (initial step size for minuit2) at positon idx. After a successful fit, the negative error will be writen.
return:
idx | index fo the fit parameter step value |
value | fit parameter step value to be set. |
Definition at line 2474 of file PMsrHandler.cpp.
References fParam.
Referenced by PRunSingleHisto::EstimateN0(), PFitter::ExecuteHesse(), PFitter::ExecuteMigrad(), PFitter::ExecuteMinimize(), PFitter::ExecuteMinos(), and PFitter::ExecuteSimplex().
|
virtual |
Sets the fit parameter value at position idx.
return:
idx | index of the fit parameter value. |
value | fit parameter value to be set. |
Definition at line 2447 of file PMsrHandler.cpp.
References fParam.
Referenced by PRunSingleHisto::EstimateN0(), PFitter::ExecuteMigrad(), PFitter::ExecuteMinimize(), and PFitter::ExecuteSimplex().
|
inlinevirtual |
Definition at line 89 of file PMsrHandler.h.
References fStatistic, and PMsrStatisticStructure::fValid.
|
inlinevirtual |
Definition at line 90 of file PMsrHandler.h.
References PMsrStatisticStructure::fMin, and fStatistic.
Referenced by PFitter::ExecuteMigrad(), PFitter::ExecuteMinimize(), and PFitter::ExecuteSimplex().
|
inlinevirtual |
Definition at line 91 of file PMsrHandler.h.
References PMsrStatisticStructure::fNdf, and fStatistic.
Referenced by PFitter::ExecuteMigrad(), PFitter::ExecuteMinimize(), and PFitter::ExecuteSimplex().
|
virtual |
Sets the t0 entries for a given runNo and a given histogram index idx.
runNo | msr-file run number |
idx | msr-file histogram index |
bin | t0 bin value |
Definition at line 2550 of file PMsrHandler.cpp.
References fRuns.
Referenced by PMusrT0::SetEstimatedT0Channel(), and PMusrT0::SetT0Channel().
|
inlinevirtual |
Definition at line 76 of file PMsrHandler.h.
References fTitle.
|
virtual |
Writes a msr-file from the internal data structures
return:
filename | The name of the output file. |
Definition at line 1562 of file PMsrHandler.cpp.
References BeautifyFourierPhaseParameterString(), PMsrFourierStructure::fApodization, PMsrStatisticStructure::fChisq, fCommands, fFourier, PMsrFourierStructure::fFourierBlockPresent, PMsrFourierStructure::fFourierPower, fFunctions, fGlobal, PMsrStatisticStructure::fMin, PMsrStatisticStructure::fNdf, FOURIER_APOD_MEDIUM, FOURIER_APOD_NONE, FOURIER_APOD_STRONG, FOURIER_APOD_WEAK, FOURIER_PLOT_IMAG, FOURIER_PLOT_PHASE, FOURIER_PLOT_PHASE_OPT_REAL, FOURIER_PLOT_POWER, FOURIER_PLOT_REAL, FOURIER_PLOT_REAL_AND_IMAG, FOURIER_UNIT_CYCLES, FOURIER_UNIT_FREQ, FOURIER_UNIT_GAUSS, FOURIER_UNIT_TESLA, fParam, PMsrFourierStructure::fPhase, PMsrFourierStructure::fPhaseParamNo, PMsrFourierStructure::fPlotRange, fPlots, PMsrFourierStructure::fPlotTag, PMsrFourierStructure::fRangeForPhaseCorrection, fRuns, fStatistic, fTheory, fTitle, PMsrFourierStructure::fUnits, PMsrStatisticStructure::fValid, PMsrGlobalBlock::GetAddT0Bin(), PMsrGlobalBlock::GetAddT0BinEntries(), PMsrGlobalBlock::GetAddT0BinSize(), PMsrGlobalBlock::GetDataRange(), PMsrGlobalBlock::GetFitRange(), PMsrGlobalBlock::GetFitRangeOffset(), PMsrGlobalBlock::GetFitType(), PMsrGlobalBlock::GetPacking(), PMsrGlobalBlock::GetRRFFreq(), PMsrGlobalBlock::GetRRFPacking(), PMsrGlobalBlock::GetRRFPhase(), PMsrGlobalBlock::GetRRFUnit(), PMsrGlobalBlock::GetT0Bin(), PMsrGlobalBlock::GetT0BinSize(), PMsrGlobalBlock::IsFitRangeInBin(), PMsrGlobalBlock::IsPresent(), LastSignificant(), MSR_FITTYPE_ASYM, MSR_FITTYPE_ASYM_RRF, MSR_FITTYPE_BNMR, MSR_FITTYPE_MU_MINUS, MSR_FITTYPE_NON_MUSR, MSR_FITTYPE_SINGLE_HISTO, MSR_FITTYPE_SINGLE_HISTO_RRF, MSR_PARAM_FUN_OFFSET, MSR_PLOT_ASYM, MSR_PLOT_ASYM_RRF, MSR_PLOT_BNMR, MSR_PLOT_MU_MINUS, MSR_PLOT_NON_MUSR, MSR_PLOT_SINGLE_HISTO, MSR_PLOT_SINGLE_HISTO_RRF, PMUSR_MSR_FILE_WRITE_ERROR, PMUSR_SUCCESS, PMUSR_UNDEFINED, RRF_UNIT_G, RRF_UNIT_kHz, RRF_UNIT_Mcs, RRF_UNIT_MHz, and RRF_UNIT_T.
|
virtual |
Writes a mlog-file.
return:
messages | if true some additional messages concerning the statistic block are written. When using musrt0, messages will be set to false. |
Definition at line 356 of file PMsrHandler.cpp.
References BeautifyFourierPhaseParameterString(), PMsrFourierStructure::fApodization, PMsrStatisticStructure::fChisq, PMsrFourierStructure::fDCCorrected, fFileName, fFourier, PMsrFourierStructure::fFourierPower, fFuncHandler, fGlobal, FilterNumber(), PMsrStatisticStructure::fMin, PMsrStatisticStructure::fMinExpected, PMsrStatisticStructure::fMinExpectedPerHisto, PMsrStatisticStructure::fMinPerHisto, PMsrStatisticStructure::fNdf, PMsrStatisticStructure::fNdfPerHisto, FOURIER_APOD_MEDIUM, FOURIER_APOD_NONE, FOURIER_APOD_STRONG, FOURIER_APOD_WEAK, FOURIER_PLOT_IMAG, FOURIER_PLOT_PHASE, FOURIER_PLOT_PHASE_OPT_REAL, FOURIER_PLOT_POWER, FOURIER_PLOT_REAL, FOURIER_PLOT_REAL_AND_IMAG, FOURIER_UNIT_CYCLES, FOURIER_UNIT_FREQ, FOURIER_UNIT_GAUSS, FOURIER_UNIT_TESLA, fParam, PMsrFourierStructure::fPhase, PMsrFourierStructure::fPhaseParamNo, PMsrFourierStructure::fPlotRange, fPlots, PMsrFourierStructure::fPlotTag, PMsrFourierStructure::fRangeForPhaseCorrection, fRuns, fStartupOptions, fStatistic, fTheory, fTitle, PMsrFourierStructure::fUnits, PMsrStatisticStructure::fValid, PMsrGlobalBlock::GetAddT0Bin(), PMsrGlobalBlock::GetAddT0BinSize(), PMsrGlobalBlock::GetDataRange(), PMsrGlobalBlock::GetFitRange(), PMsrGlobalBlock::GetFitRangeOffset(), PMsrGlobalBlock::GetFitType(), GetFuncIndex(), PMsrGlobalBlock::GetPacking(), PMsrGlobalBlock::GetRRFFreq(), PMsrGlobalBlock::GetRRFPacking(), PMsrGlobalBlock::GetRRFPhase(), PMsrGlobalBlock::GetRRFUnit(), PMsrGlobalBlock::GetT0Bin(), PMsrGlobalBlock::GetT0BinSize(), PMsrGlobalBlock::IsFitRangeInBin(), LastSignificant(), MakeDetectorGroupingString(), MSR_FITTYPE_ASYM, MSR_FITTYPE_ASYM_RRF, MSR_FITTYPE_BNMR, MSR_FITTYPE_MU_MINUS, MSR_FITTYPE_NON_MUSR, MSR_FITTYPE_SINGLE_HISTO, MSR_FITTYPE_SINGLE_HISTO_RRF, MSR_PARAM_FUN_OFFSET, MSR_PLOT_ASYM, MSR_PLOT_ASYM_RRF, MSR_PLOT_BNMR, MSR_PLOT_MU_MINUS, MSR_PLOT_NON_MUSR, MSR_PLOT_SINGLE_HISTO, MSR_PLOT_SINGLE_HISTO_RRF, MSR_TAG_COMMANDS, MSR_TAG_FITPARAMETER, MSR_TAG_FOURIER, MSR_TAG_FUNCTIONS, MSR_TAG_GLOBAL, MSR_TAG_PLOT, MSR_TAG_RUN, MSR_TAG_STATISTIC, MSR_TAG_THEORY, MSR_TAG_TITLE, NeededPrecision(), PMUSR_MSR_LOG_FILE_WRITE_ERROR, PMUSR_MSR_SYNTAX_ERROR, PMUSR_SUCCESS, PMUSR_UNDEFINED, and PStartupOptions::writeExpectedChisq.
|
private |
holds a list of the minuit commands
Definition at line 126 of file PMsrHandler.h.
Referenced by GetMsrCommands(), HandleCommandsEntry(), ReadMsrFile(), WriteMsrFile(), and ~PMsrHandler().
|
private |
flag, if true: just copy to old statistics block (musrt0), otherwise write a new one (musrfit)
Definition at line 137 of file PMsrHandler.h.
Referenced by CopyMsrStatisticBlock(), and PMsrHandler().
|
private |
file name of the msr-file
Definition at line 118 of file PMsrHandler.h.
Referenced by GetFileName(), PMsrHandler(), ReadMsrFile(), and WriteMsrLogFile().
|
private |
holds the parameters used for the Fourier transform
Definition at line 127 of file PMsrHandler.h.
Referenced by BeautifyFourierPhaseParameterString(), GetMsrFourierList(), HandleFourierEntry(), ReadMsrFile(), WriteMsrFile(), and WriteMsrLogFile().
|
private |
flag indicating if Fourier transform only is wished. If yes, some part of the msr-file blocks are not needed.
Definition at line 115 of file PMsrHandler.h.
Referenced by CheckFuncs(), CheckRunBlockIntegrity(), HandleCommandsEntry(), HandleFunctionsEntry(), HandleRunEntry(), HandleStatisticEntry(), HandleTheoryEntry(), and ReadMsrFile().
|
private |
needed to parse functions
Definition at line 133 of file PMsrHandler.h.
Referenced by CheckMapAndParamRange(), EvalFunc(), GetFuncIndex(), GetFuncNo(), GetNoOfFuncs(), HandleFunctionsEntry(), and WriteMsrLogFile().
|
private |
holds the user defined functions
Definition at line 123 of file PMsrHandler.h.
Referenced by CheckFuncs(), CheckMaps(), GetMsrFunctions(), GetNoOfFitParameters(), HandleFunctionsEntry(), WriteMsrFile(), and ~PMsrHandler().
|
private |
holds the information of the global section
Definition at line 124 of file PMsrHandler.h.
Referenced by CheckMaxLikelihood(), CheckRRFSettings(), CheckRunBlockIntegrity(), GetMsrGlobal(), HandleGlobalEntry(), WriteMsrFile(), and WriteMsrLogFile().
|
private |
used to select the proper msr-block
Definition at line 131 of file PMsrHandler.h.
Referenced by PMsrHandler(), and ReadMsrFile().
|
private |
msr-file directory path
Definition at line 119 of file PMsrHandler.h.
Referenced by GetMsrFileDirectoryPath(), and PMsrHandler().
|
private |
holds a list of the fit parameters
Definition at line 121 of file PMsrHandler.h.
Referenced by CheckRunBlockIntegrity(), CheckUniquenessOfParamNames(), FillParameterInUse(), GetMsrParamList(), GetNoOfFitParameters(), GetNoOfParams(), HandleFitParameterEntry(), HandleFourierEntry(), HandlePlotEntry(), HandleRunEntry(), ParameterInUse(), ReadMsrFile(), SetMsrParamPosError(), SetMsrParamPosErrorPresent(), SetMsrParamStep(), SetMsrParamValue(), WriteMsrFile(), WriteMsrLogFile(), and ~PMsrHandler().
|
private |
array holding the information if a particular parameter is used at all, i.e. if the theory is using it (perhaps via maps or functions)
Definition at line 135 of file PMsrHandler.h.
Referenced by FillParameterInUse(), ParameterInUse(), and ~PMsrHandler().
|
private |
holds a list of the plot input parameters
Definition at line 128 of file PMsrHandler.h.
Referenced by CheckLegacyLifetimecorrection(), GetMsrPlotList(), HandlePlotEntry(), ReadMsrFile(), WriteMsrFile(), WriteMsrLogFile(), and ~PMsrHandler().
|
private |
holds a list of run information
Definition at line 125 of file PMsrHandler.h.
Referenced by CheckAddRunParameters(), CheckFuncs(), CheckHistoGrouping(), CheckLegacyLifetimecorrection(), CheckMaps(), CheckMaxLikelihood(), CheckRRFSettings(), CheckRunBlockIntegrity(), GetGroupingString(), GetMsrRunList(), GetNoOfFitParameters(), GetNoOfRuns(), HandlePlotEntry(), HandleRunEntry(), SetMsrAddT0Entry(), SetMsrBkgRangeEntry(), SetMsrDataRangeEntry(), SetMsrT0Entry(), WriteMsrFile(), WriteMsrLogFile(), and ~PMsrHandler().
|
private |
contains information about startup options from the musrfit_startup.xml
Definition at line 116 of file PMsrHandler.h.
Referenced by EstimateN0(), and WriteMsrLogFile().
|
private |
holds the statistic info
Definition at line 129 of file PMsrHandler.h.
Referenced by CheckMaxLikelihood(), GetMsrStatistic(), HandleStatisticEntry(), PMsrHandler(), ReadMsrFile(), SetMsrStatisticConverged(), SetMsrStatisticMin(), SetMsrStatisticNdf(), WriteMsrFile(), WriteMsrLogFile(), and ~PMsrHandler().
|
private |
holds the theory definition
Definition at line 122 of file PMsrHandler.h.
Referenced by CheckFuncs(), CheckMaps(), GetMsrTheory(), GetNoOfFitParameters(), HandleTheoryEntry(), WriteMsrFile(), WriteMsrLogFile(), and ~PMsrHandler().
|
private |
holds the title string of the msr-file
Definition at line 120 of file PMsrHandler.h.
Referenced by GetMsrTitle(), PMsrHandler(), ReadMsrFile(), SetMsrTitle(), WriteMsrFile(), and WriteMsrLogFile().