musrfit  1.9.2
PRunNonMusr Class Reference

#include <PRunNonMusr.h>

Inheritance diagram for PRunNonMusr:
Collaboration diagram for PRunNonMusr:

Public Member Functions

 PRunNonMusr ()
 
 PRunNonMusr (PMsrHandler *msrInfo, PRunDataHandler *rawData, UInt_t runNo, EPMusrHandleTag tag, Bool_t theoAsData)
 
virtual ~PRunNonMusr ()
 
virtual Double_t CalcChiSquare (const std::vector< Double_t > &par)
 
virtual Double_t CalcChiSquareExpected (const std::vector< Double_t > &par)
 
virtual Double_t CalcMaxLikelihood (const std::vector< Double_t > &par)
 
virtual void CalcTheory ()
 
virtual UInt_t GetNoOfFitBins ()
 
virtual void SetFitRangeBin (const TString fitRange)
 
virtual UInt_t GetXIndex ()
 
virtual UInt_t GetYIndex ()
 
- Public Member Functions inherited from PRunBase
 PRunBase ()
 
 PRunBase (PMsrHandler *msrInfo, PRunDataHandler *rawData, UInt_t runNo, EPMusrHandleTag tag)
 
virtual ~PRunBase ()
 
virtual void SetFitRange (PDoublePairVector fitRange)
 
virtual UInt_t GetRunNo ()
 returns the number of runs of the msr-file More...
 
virtual PRunDataGetData ()
 returns the data to be fitted More...
 
virtual void CleanUp ()
 
virtual Bool_t IsValid ()
 returns if the state is valid More...
 

Protected Member Functions

virtual Bool_t PrepareData ()
 
virtual Bool_t PrepareFitData ()
 
virtual Bool_t PrepareViewData ()
 
- Protected Member Functions inherited from PRunBase
virtual void CalculateKaiserFilterCoeff (Double_t wc, Double_t A, Double_t dw)
 
virtual void FilterTheo ()
 

Private Attributes

PRawRunDatafRawRunData
 raw run data handler More...
 
UInt_t fNoOfFitBins
 number of bins to be be fitted More...
 
Int_t fPacking
 packing for this particular run. Either given in the RUN- or GLOBAL-block. More...
 
Bool_t fTheoAsData
 true=only calculate the theory points at the data points, false=calculate more points for the theory as compared to data are calculated which lead to 'nicer' Fouriers More...
 
Int_t fStartTimeBin
 bin at which the fit starts More...
 
Int_t fEndTimeBin
 bin at which the fit ends More...
 

Additional Inherited Members

- Protected Attributes inherited from PRunBase
Bool_t fValid
 flag showing if the state of the class is valid More...
 
EPMusrHandleTag fHandleTag
 tag telling whether this is used for fit, view, ... More...
 
Int_t fRunNo
 number of the run within the msr-file More...
 
PMsrHandlerfMsrInfo
 msr-file handler More...
 
PMsrRunBlockfRunInfo
 run info used to filter out needed infos of a run More...
 
PRunDataHandlerfRawData
 holds the raw run data More...
 
PRunData fData
 data to be fitted, viewed, i.e. binned data More...
 
Double_t fTimeResolution
 time resolution in (us) More...
 
PMetaData fMetaData
 keeps the meta data from the data file like field, temperature, energy, ... More...
 
PDoubleVector fT0s
 all t0 bins of a run! The derived classes will handle it. More...
 
std::vector< PDoubleVectorfAddT0s
 all t0 bins of all addrun's of a run! The derived classes will handle it. More...
 
Double_t fFitStartTime
 fit start time More...
 
Double_t fFitEndTime
 fit end time More...
 
PDoubleVector fFuncValues
 is keeping the values of the functions from the FUNCTIONS block More...
 
std::unique_ptr< PTheoryfTheory
 theory needed to calculate chi-square More...
 
PDoubleVector fKaiserFilter
 stores the Kaiser filter vector (needed for the RRF). More...
 

Detailed Description

Class handling the non-muSR fit type

Definition at line 39 of file PRunNonMusr.h.

Constructor & Destructor Documentation

◆ PRunNonMusr() [1/2]

PRunNonMusr::PRunNonMusr ( )

Constructor.

Definition at line 40 of file PRunNonMusr.cpp.

References fEndTimeBin, PRunBase::fHandleTag, fNoOfFitBins, fPacking, fRawRunData, fStartTimeBin, and kEmpty.

◆ PRunNonMusr() [2/2]

PRunNonMusr::PRunNonMusr ( PMsrHandler msrInfo,
PRunDataHandler rawData,
UInt_t  runNo,
EPMusrHandleTag  tag,
Bool_t  theoAsData 
)

Constructor

Parameters
msrInfopointer to the msr-file handler
rawDataraw run data
runNonumber of the run within the msr-file
tagtag showing what shall be done: kFit == fitting, kView == viewing

Definition at line 63 of file PRunNonMusr.cpp.

References PRunBase::fRawData, fRawRunData, PRunBase::fRunInfo, PRunBase::fValid, PRunDataHandler::GetRunData(), PMsrRunBlock::GetRunName(), and PrepareData().

◆ ~PRunNonMusr()

PRunNonMusr::~PRunNonMusr ( )
virtual

Destructor

Definition at line 85 of file PRunNonMusr.cpp.

Member Function Documentation

◆ CalcChiSquare()

Double_t PRunNonMusr::CalcChiSquare ( const std::vector< Double_t > &  par)
virtual

◆ CalcChiSquareExpected()

Double_t PRunNonMusr::CalcChiSquareExpected ( const std::vector< Double_t > &  par)
virtual

Calculate expected chi-square. Currently not implemented since not clear what to be done.

return:

  • chisq value == 0.0
Parameters
parparameter vector iterated by minuit2

Definition at line 132 of file PRunNonMusr.cpp.

◆ CalcMaxLikelihood()

Double_t PRunNonMusr::CalcMaxLikelihood ( const std::vector< Double_t > &  par)
virtual

Calculate log maximum-likelihood. Currently not implemented since not clear what to be done.

return:

  • log maximum-likelihood value == 1.0
Parameters
parparameter vector iterated by minuit2

Implements PRunBase.

Definition at line 150 of file PRunNonMusr.cpp.

◆ CalcTheory()

void PRunNonMusr::CalcTheory ( )
virtual

Calculate theory for a given set of fit-parameters.

Implements PRunBase.

Definition at line 163 of file PRunNonMusr.cpp.

◆ GetNoOfFitBins()

UInt_t PRunNonMusr::GetNoOfFitBins ( )
virtual

Calculate the number of fitted bins for the current fit range.

return: number of fitted bins.

Definition at line 175 of file PRunNonMusr.cpp.

References PRunBase::fData, PRunBase::fFitEndTime, PRunBase::fFitStartTime, fNoOfFitBins, PRunData::GetValue(), and PRunData::GetX().

◆ GetXIndex()

UInt_t PRunNonMusr::GetXIndex ( )
virtual

◆ GetYIndex()

UInt_t PRunNonMusr::GetYIndex ( )
virtual

◆ PrepareData()

◆ PrepareFitData()

◆ PrepareViewData()

◆ SetFitRangeBin()

virtual void PRunNonMusr::SetFitRangeBin ( const TString  fitRange)
inlinevirtual

Definition at line 53 of file PRunNonMusr.h.

Member Data Documentation

◆ fEndTimeBin

Int_t PRunNonMusr::fEndTimeBin
private

bin at which the fit ends

Definition at line 71 of file PRunNonMusr.h.

Referenced by CalcChiSquare(), PrepareFitData(), and PRunNonMusr().

◆ fNoOfFitBins

UInt_t PRunNonMusr::fNoOfFitBins
private

number of bins to be be fitted

Definition at line 66 of file PRunNonMusr.h.

Referenced by GetNoOfFitBins(), PrepareFitData(), PrepareViewData(), and PRunNonMusr().

◆ fPacking

Int_t PRunNonMusr::fPacking
private

packing for this particular run. Either given in the RUN- or GLOBAL-block.

Definition at line 67 of file PRunNonMusr.h.

Referenced by PrepareData(), PrepareFitData(), PrepareViewData(), and PRunNonMusr().

◆ fRawRunData

PRawRunData* PRunNonMusr::fRawRunData
private

raw run data handler

Definition at line 64 of file PRunNonMusr.h.

Referenced by GetXIndex(), GetYIndex(), PrepareFitData(), PrepareViewData(), and PRunNonMusr().

◆ fStartTimeBin

Int_t PRunNonMusr::fStartTimeBin
private

bin at which the fit starts

Definition at line 70 of file PRunNonMusr.h.

Referenced by CalcChiSquare(), PrepareFitData(), and PRunNonMusr().

◆ fTheoAsData

Bool_t PRunNonMusr::fTheoAsData
private

true=only calculate the theory points at the data points, false=calculate more points for the theory as compared to data are calculated which lead to 'nicer' Fouriers

Definition at line 68 of file PRunNonMusr.h.

Referenced by PrepareViewData().


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