musrfit  1.9.2
PMsrGlobalBlock Class Reference

#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< PDoubleVectorfAddT0
 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...
 

Detailed Description

Handles the information of the GLOBAL section

Definition at line 570 of file PMusr.h.

Constructor & Destructor Documentation

◆ PMsrGlobalBlock()

PMsrGlobalBlock::PMsrGlobalBlock ( )

Constructor

Definition at line 735 of file PMusr.cpp.

References PMUSR_UNDEFINED, RRF_FREQ_UNDEF, and RRF_UNIT_UNDEF.

◆ ~PMsrGlobalBlock()

virtual PMsrGlobalBlock::~PMsrGlobalBlock ( )
inlinevirtual

Definition at line 573 of file PMusr.h.

Member Function Documentation

◆ GetAddT0Bin()

Double_t PMsrGlobalBlock::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 1001 of file PMusr.cpp.

Referenced by PMsrHandler::WriteMsrFile(), and PMsrHandler::WriteMsrLogFile().

◆ GetAddT0BinEntries()

virtual UInt_t PMsrGlobalBlock::GetAddT0BinEntries ( )
inlinevirtual

Definition at line 585 of file PMusr.h.

References fAddT0.

Referenced by PMsrHandler::WriteMsrFile().

◆ GetAddT0BinSize()

Int_t PMsrGlobalBlock::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 977 of file PMusr.cpp.

Referenced by PMsrHandler::WriteMsrFile(), and PMsrHandler::WriteMsrLogFile().

◆ GetDataRange()

Int_t PMsrGlobalBlock::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 895 of file PMusr.cpp.

Referenced by PRunMuMinus::GetProperDataRange(), PRunSingleHistoRRF::GetProperDataRange(), PRunAsymmetryRRF::GetProperDataRange(), PRunSingleHisto::GetProperDataRange(), PRunAsymmetry::GetProperDataRange(), PMsrHandler::WriteMsrFile(), and PMsrHandler::WriteMsrLogFile().

◆ GetEstimatedAlpha()

virtual Double_t PMsrGlobalBlock::GetEstimatedAlpha ( )
inlinevirtual

Definition at line 592 of file PMusr.h.

References fAlpha.

◆ GetFitRange()

Double_t PMsrGlobalBlock::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 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().

◆ GetFitRangeOffset()

Int_t PMsrGlobalBlock::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 1088 of file PMusr.cpp.

Referenced by PRunMuMinus::GetProperFitRange(), PRunSingleHistoRRF::GetProperFitRange(), PRunAsymmetryRRF::GetProperFitRange(), PRunSingleHisto::GetProperFitRange(), PRunAsymmetry::GetProperFitRange(), PMsrHandler::WriteMsrFile(), and PMsrHandler::WriteMsrLogFile().

◆ GetFitType()

◆ GetPacking()

◆ GetRRFFreq()

Double_t PMsrGlobalBlock::GetRRFFreq ( const char *  unit)
virtual

get RRF frequency value in specific units. If units is unknown, RRF_UNDEF_FREQ will be returned.

Parameters
unitunit 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().

◆ GetRRFPacking()

◆ GetRRFPhase()

◆ GetRRFUnit()

TString PMsrGlobalBlock::GetRRFUnit ( )
virtual

◆ GetRRFUnitTag()

virtual Int_t PMsrGlobalBlock::GetRRFUnitTag ( )
inlinevirtual

Definition at line 578 of file PMusr.h.

References fRRFUnitTag.

Referenced by PMsrHandler::CheckRunBlockIntegrity(), and PMusrCanvas::SetMsrHandler().

◆ GetT0Bin()

Double_t PMsrGlobalBlock::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 935 of file PMusr.cpp.

Referenced by PRunMuMinus::GetProperT0(), PRunSingleHistoRRF::GetProperT0(), PRunAsymmetryRRF::GetProperT0(), PRunSingleHisto::GetProperT0(), PRunAsymmetry::GetProperT0(), PMsrHandler::WriteMsrFile(), and PMsrHandler::WriteMsrLogFile().

◆ GetT0BinSize()

◆ IsFitRangeInBin()

◆ IsPresent()

virtual Bool_t PMsrGlobalBlock::IsPresent ( )
inlinevirtual

Definition at line 575 of file PMusr.h.

References fGlobalPresent.

Referenced by PRunSingleHistoRRF::PRunSingleHistoRRF(), and PMsrHandler::WriteMsrFile().

◆ SetAddT0Bin()

void PMsrGlobalBlock::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 1028 of file PMusr.cpp.

Referenced by PMsrHandler::HandleGlobalEntry().

◆ SetDataRange()

void PMsrGlobalBlock::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.

Definition at line 912 of file PMusr.cpp.

Referenced by PMsrHandler::HandleGlobalEntry().

◆ SetFitRange()

void PMsrGlobalBlock::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 1068 of file PMusr.cpp.

Referenced by PRunMuMinus::GetProperFitRange(), PRunAsymmetryRRF::GetProperFitRange(), PRunSingleHisto::GetProperFitRange(), PRunSingleHistoRRF::GetProperFitRange(), PRunAsymmetry::GetProperFitRange(), and PMsrHandler::HandleGlobalEntry().

◆ SetFitRangeInBins()

virtual void PMsrGlobalBlock::SetFitRangeInBins ( Bool_t  bval)
inlinevirtual

Definition at line 602 of file PMusr.h.

References fFitRangeInBins.

Referenced by PMsrHandler::HandleGlobalEntry().

◆ SetFitRangeOffset()

void PMsrGlobalBlock::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 1105 of file PMusr.cpp.

Referenced by PMsrHandler::HandleGlobalEntry().

◆ SetFitType()

virtual void PMsrGlobalBlock::SetFitType ( Int_t  ival)
inlinevirtual

Definition at line 598 of file PMusr.h.

References fFitType.

Referenced by PMsrHandler::HandleGlobalEntry().

◆ SetGlobalPresent()

virtual void PMsrGlobalBlock::SetGlobalPresent ( Bool_t  bval)
inlinevirtual

Definition at line 594 of file PMusr.h.

References fGlobalPresent.

Referenced by PMsrHandler::HandleGlobalEntry().

◆ SetPacking()

virtual void PMsrGlobalBlock::SetPacking ( Int_t  ival)
inlinevirtual

Definition at line 605 of file PMusr.h.

References fPacking.

Referenced by PMsrHandler::HandleGlobalEntry().

◆ SetRRFFreq()

void PMsrGlobalBlock::SetRRFFreq ( Double_t  freq,
const char *  unit 
)
virtual

set RRF frequency value in specific units. If units is unknown, 0.0 will be set.

Parameters
RRFfrequency value
unitunit 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().

◆ SetRRFPacking()

void PMsrGlobalBlock::SetRRFPacking ( Int_t  pack)
virtual

set RRF packing.

Parameters
RRFpacking

Definition at line 873 of file PMusr.cpp.

Referenced by PMsrHandler::CheckRRFSettings(), and PMsrHandler::HandleGlobalEntry().

◆ SetRRFPhase()

virtual void PMsrGlobalBlock::SetRRFPhase ( Double_t  phase)
inlinevirtual

Definition at line 596 of file PMusr.h.

References fRRFPhase.

Referenced by PMsrHandler::CheckRRFSettings(), and PMsrHandler::HandleGlobalEntry().

◆ SetT0Bin()

void PMsrGlobalBlock::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 952 of file PMusr.cpp.

Referenced by PMsrHandler::HandleGlobalEntry().

Member Data Documentation

◆ fAddT0

std::vector<PDoubleVector> PMsrGlobalBlock::fAddT0
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().

◆ fAlpha

Double_t PMsrGlobalBlock::fAlpha
private

estimated alpha value from F/B counts

Definition at line 621 of file PMusr.h.

Referenced by GetEstimatedAlpha().

◆ fDataRange

Int_t PMsrGlobalBlock::fDataRange[4]
private

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

Definition at line 614 of file PMusr.h.

◆ fFitRange

Double_t PMsrGlobalBlock::fFitRange[2]
private

fit range in (us)

Definition at line 618 of file PMusr.h.

◆ fFitRangeInBins

Bool_t PMsrGlobalBlock::fFitRangeInBins
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().

◆ fFitRangeOffset

Int_t PMsrGlobalBlock::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 619 of file PMusr.h.

◆ fFitType

Int_t PMsrGlobalBlock::fFitType
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().

◆ fGlobalPresent

Bool_t PMsrGlobalBlock::fGlobalPresent
private

flag showing if a GLOBAL block is present at all.

Definition at line 608 of file PMusr.h.

Referenced by IsPresent(), and SetGlobalPresent().

◆ fPacking

Int_t PMsrGlobalBlock::fPacking
private

packing/rebinning

Definition at line 620 of file PMusr.h.

Referenced by GetPacking(), and SetPacking().

◆ fRRFFreq

Double_t PMsrGlobalBlock::fRRFFreq
private

RRF frequency given in units of (MHz, Mc, T)

Definition at line 609 of file PMusr.h.

◆ fRRFPacking

Int_t PMsrGlobalBlock::fRRFPacking
private

RRF packing.

Definition at line 612 of file PMusr.h.

Referenced by GetRRFPacking().

◆ fRRFPhase

Double_t PMsrGlobalBlock::fRRFPhase
private

RRF phase in (°)

Definition at line 611 of file PMusr.h.

Referenced by GetRRFPhase(), and SetRRFPhase().

◆ fRRFUnitTag

Int_t PMsrGlobalBlock::fRRFUnitTag
private

RRF unit tag.

Definition at line 610 of file PMusr.h.

Referenced by GetRRFUnitTag().

◆ fT0

PDoubleVector PMsrGlobalBlock::fT0
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().


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