musrfit  1.9.2
PPrepFourier Class Reference

#include <PPrepFourier.h>

Public Member Functions

 PPrepFourier ()
 
 PPrepFourier (const Int_t packing, const Int_t *bkgRange, PDoubleVector bkg)
 
virtual ~PPrepFourier ()
 
virtual void SetBkgRange (const Int_t *bkgRange)
 
virtual void SetBkg (PDoubleVector bkg)
 
virtual void SetPacking (const Int_t packing)
 
virtual void AddData (musrFT_data &data)
 
virtual void DoBkgCorrection ()
 
virtual void DoPacking ()
 
virtual void DoLifeTimeCorrection (Double_t fudge)
 
TString GetInfo (const UInt_t idx)
 
Int_t GetDataSetTag (const UInt_t idx)
 
UInt_t GetNoOfData ()
 
std::vector< TH1F * > GetData ()
 
TH1F * GetData (const UInt_t idx)
 

Private Member Functions

virtual void InitData ()
 

Private Attributes

std::vector< musrFT_datafRawData
 
std::vector< PDoubleVectorfData
 
Int_t fBkgRange [2]
 
PDoubleVector fBkg
 
Int_t fPacking
 

Detailed Description

Little helper class to prepare time-domain data for Fourier transform, without theory, etc.

Definition at line 60 of file PPrepFourier.h.

Constructor & Destructor Documentation

◆ PPrepFourier() [1/2]

PPrepFourier::PPrepFourier ( )

Constructor.

Definition at line 40 of file PPrepFourier.cpp.

References fBkgRange, and fPacking.

◆ PPrepFourier() [2/2]

PPrepFourier::PPrepFourier ( const Int_t  packing,
const Int_t *  bkgRange,
PDoubleVector  bkg 
)

Constructor.

Definition at line 53 of file PPrepFourier.cpp.

References SetBkg(), and SetBkgRange().

◆ ~PPrepFourier()

PPrepFourier::~PPrepFourier ( )
virtual

Destructor.

Definition at line 66 of file PPrepFourier.cpp.

References fData, and fRawData.

Member Function Documentation

◆ AddData()

void PPrepFourier::AddData ( musrFT_data data)
virtual

add a data-set (time domain data + meta information) to the internal data vector.

Parameters
dataset to be added

Definition at line 158 of file PPrepFourier.cpp.

References fRawData.

◆ DoBkgCorrection()

void PPrepFourier::DoBkgCorrection ( )
virtual

Correct the internal data sets according to a background interval given.

Definition at line 169 of file PPrepFourier.cpp.

References fBkg, fBkgRange, fData, fRawData, and InitData().

◆ DoLifeTimeCorrection()

void PPrepFourier::DoLifeTimeCorrection ( Double_t  fudge)
virtual

Try to do a muon life time correction. The idea is to estimate N0 without any theory. This will be OK for high fields (> couple kGauss) but not so good for low fields.

Parameters
fudgerescaling factor for the estimated N0. Should be around 1

Definition at line 265 of file PPrepFourier.cpp.

References fData, fRawData, InitData(), and PMUON_LIFETIME.

◆ DoPacking()

void PPrepFourier::DoPacking ( )
virtual

Rebin (pack) the internal data.

Definition at line 226 of file PPrepFourier.cpp.

References fData, fPacking, fRawData, and InitData().

◆ GetData() [1/2]

std::vector< TH1F * > PPrepFourier::GetData ( )

Creates the requested TH1F objects and returns them. The ownership is with the caller.

Definition at line 341 of file PPrepFourier.cpp.

References fData, fPacking, and fRawData.

◆ GetData() [2/2]

TH1F * PPrepFourier::GetData ( const UInt_t  idx)

Creates the requested TH1F object and returns it. The ownership is with the caller.

Parameters
idxindex of the requested histogram

Definition at line 410 of file PPrepFourier.cpp.

References fData, fPacking, and fRawData.

◆ GetDataSetTag()

Int_t PPrepFourier::GetDataSetTag ( const UInt_t  idx)

Returns the data set tag of the object

Parameters
idxindex of the object

Definition at line 324 of file PPrepFourier.cpp.

References fRawData.

◆ GetInfo()

TString PPrepFourier::GetInfo ( const UInt_t  idx)

Returns the meta information of a data set.

Parameters
idxindex of the object

Definition at line 306 of file PPrepFourier.cpp.

References fRawData.

◆ GetNoOfData()

UInt_t PPrepFourier::GetNoOfData ( )
inline

Definition at line 76 of file PPrepFourier.h.

References fRawData.

◆ InitData()

void PPrepFourier::InitData ( )
privatevirtual

Copy raw-data to internal data from t0 to the size of raw-data.

Definition at line 463 of file PPrepFourier.cpp.

References fData, and fRawData.

Referenced by DoBkgCorrection(), DoLifeTimeCorrection(), and DoPacking().

◆ SetBkg()

void PPrepFourier::SetBkg ( PDoubleVector  bkg)
virtual

set the background values for all the histos.

Parameters
bkgvector

Definition at line 126 of file PPrepFourier.cpp.

References fBkg.

Referenced by PPrepFourier().

◆ SetBkgRange()

void PPrepFourier::SetBkgRange ( const Int_t *  bkgRange)
virtual

set the background range.

Parameters
bkgRangearray with background range

Definition at line 80 of file PPrepFourier.cpp.

References fBkgRange.

Referenced by PPrepFourier().

◆ SetPacking()

void PPrepFourier::SetPacking ( const Int_t  packing)
virtual

set the packing for the histograms.

Parameters
packingnumber to be used.

Definition at line 140 of file PPrepFourier.cpp.

References fPacking.

Member Data Documentation

◆ fBkg

PDoubleVector PPrepFourier::fBkg
private

Definition at line 84 of file PPrepFourier.h.

Referenced by DoBkgCorrection(), and SetBkg().

◆ fBkgRange

Int_t PPrepFourier::fBkgRange[2]
private

Definition at line 83 of file PPrepFourier.h.

Referenced by DoBkgCorrection(), PPrepFourier(), and SetBkgRange().

◆ fData

std::vector<PDoubleVector> PPrepFourier::fData
private

◆ fPacking

Int_t PPrepFourier::fPacking
private

Definition at line 85 of file PPrepFourier.h.

Referenced by DoPacking(), GetData(), PPrepFourier(), and SetPacking().

◆ fRawData

std::vector<musrFT_data> PPrepFourier::fRawData
private

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