30 #ifndef _PRUNSINGLEHISTORRF_H_ 31 #define _PRUNSINGLEHISTORRF_H_ 45 virtual Double_t
CalcChiSquare(
const std::vector<Double_t>& par);
88 virtual Double_t
EstimateN0(Double_t &errN0, Double_t freqMax);
92 #endif // _PRUNSINGLEHISTORRF_H_ Int_t fGoodBins[2]
keep first/last good bins. 0=fgb, 1=lgb
virtual void GetProperFitRange(PMsrGlobalBlock *globalBlock)
virtual Int_t GetEndTimeBin()
virtual Double_t CalcMaxLikelihood(const std::vector< Double_t > &par)
virtual Double_t EstimateN0(Double_t &errN0, Double_t freqMax)
PDoubleVector fMerr
vector holding the error of M(t): M_err = exp(+t/tau) sqrt(N(t)).
Double_t fN0EstimateEndTime
end time in (us) over which N0 is estimated.
virtual Double_t CalcChiSquare(const std::vector< Double_t > &par)
Double_t fBkgErr
estimate error on the estimated background
virtual UInt_t GetNoOfFitBins()
virtual Bool_t GetProperDataRange()
virtual Bool_t GetProperT0(PRawRunData *runData, PMsrGlobalBlock *globalBlock, PUIntVector &histoNo)
Int_t fEndTimeBin
bin at which the fit ends
PDoubleVector fM
vector holding M(t) = [N(t)-N_bkg] exp(+t/tau). Needed to estimate N0.
PDoubleVector fAerr
vector holding the errors of estimated A(t)
virtual void CalcTheory()
PDoubleVector fForward
forward histo data
virtual Double_t GetMainFrequency(PDoubleVector &data)
virtual Bool_t EstimateBkg(UInt_t histoNo)
UInt_t fNoOfFitBins
number of bins to be fitted
std::vector< UInt_t > PUIntVector
std::vector< Double_t > PDoubleVector
virtual Int_t GetStartTimeBin()
virtual Bool_t PrepareData()
virtual Bool_t PrepareViewData(PRawRunData *runData, const UInt_t histoNo)
Int_t fStartTimeBin
bin at which the fit starts
virtual Bool_t PrepareFitData(PRawRunData *runData, const UInt_t histoNo)
virtual void SetFitRangeBin(const TString fitRange)
PDoubleVector fW
vector holding the weight needed to estimate N0, and errN0.
Bool_t fTheoAsData
true=only calculate the theory points at the data points, false=calculate more points for the theory ...
virtual ~PRunSingleHistoRRF()
Double_t fBackground
needed if background range is given (units: 1/bin)
Int_t fRRFPacking
RRF packing for this particular run. Given in the GLOBAL-block.
virtual void CalcNoOfFitBins()
virtual Double_t CalcChiSquareExpected(const std::vector< Double_t > &par)