musrfit
1.9.2
|
#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_data > | fRawData |
std::vector< PDoubleVector > | fData |
Int_t | fBkgRange [2] |
PDoubleVector | fBkg |
Int_t | fPacking |
Little helper class to prepare time-domain data for Fourier transform, without theory, etc.
Definition at line 60 of file PPrepFourier.h.
PPrepFourier::PPrepFourier | ( | ) |
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().
|
virtual |
|
virtual |
add a data-set (time domain data + meta information) to the internal data vector.
data | set to be added |
Definition at line 158 of file PPrepFourier.cpp.
References fRawData.
|
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().
|
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.
fudge | rescaling factor for the estimated N0. Should be around 1 |
Definition at line 265 of file PPrepFourier.cpp.
References fData, fRawData, InitData(), and PMUON_LIFETIME.
|
virtual |
Rebin (pack) the internal data.
Definition at line 226 of file PPrepFourier.cpp.
References fData, fPacking, fRawData, and InitData().
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.
TH1F * PPrepFourier::GetData | ( | const UInt_t | idx | ) |
Creates the requested TH1F object and returns it. The ownership is with the caller.
idx | index of the requested histogram |
Definition at line 410 of file PPrepFourier.cpp.
Int_t PPrepFourier::GetDataSetTag | ( | const UInt_t | idx | ) |
Returns the data set tag of the object
idx | index of the object |
Definition at line 324 of file PPrepFourier.cpp.
References fRawData.
TString PPrepFourier::GetInfo | ( | const UInt_t | idx | ) |
Returns the meta information of a data set.
idx | index of the object |
Definition at line 306 of file PPrepFourier.cpp.
References fRawData.
|
inline |
Definition at line 76 of file PPrepFourier.h.
References fRawData.
|
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().
|
virtual |
set the background values for all the histos.
bkg | vector |
Definition at line 126 of file PPrepFourier.cpp.
References fBkg.
Referenced by PPrepFourier().
|
virtual |
set the background range.
bkgRange | array with background range |
Definition at line 80 of file PPrepFourier.cpp.
References fBkgRange.
Referenced by PPrepFourier().
|
virtual |
set the packing for the histograms.
packing | number to be used. |
Definition at line 140 of file PPrepFourier.cpp.
References fPacking.
|
private |
Definition at line 84 of file PPrepFourier.h.
Referenced by DoBkgCorrection(), and SetBkg().
|
private |
Definition at line 83 of file PPrepFourier.h.
Referenced by DoBkgCorrection(), PPrepFourier(), and SetBkgRange().
|
private |
Definition at line 82 of file PPrepFourier.h.
Referenced by DoBkgCorrection(), DoLifeTimeCorrection(), DoPacking(), GetData(), InitData(), and ~PPrepFourier().
|
private |
Definition at line 85 of file PPrepFourier.h.
Referenced by DoPacking(), GetData(), PPrepFourier(), and SetPacking().
|
private |
Definition at line 81 of file PPrepFourier.h.
Referenced by AddData(), DoBkgCorrection(), DoLifeTimeCorrection(), DoPacking(), GetData(), GetDataSetTag(), GetInfo(), GetNoOfData(), InitData(), and ~PPrepFourier().