DstarDmFitterSpecial_I
class description - source file - inheritance tree
This is an abstract class, constructors will not be documented.
Look at the header to check for available constructors.
protected:
virtual void AddBackgrToHist()
virtual Double_t DetermBackgrStartParam()
virtual Double_t DetermNDstarStart(Double_t backgrNormStart)
TString GetSimpleFitOption(const char* opt) const
Bool_t IsEquivalentOpt(const TString& optOrig, const TString& opt2) const
Int_t MultiplyFreeParams(TF1* func, Double_t factor) const
Int_t RealFit(TH1* histToFit, TF1* func) const
Int_t RealFit(TH1* histToFit, TF1* func, const char* fitOpt) const
virtual void SetHistReal(TH1* hist, TH1* hWc, Bool_t defaultFitValues)
Bool_t TreatZeroErrorBins(TH1* hist) const
Int_t UseLikelihoodOption(TH1* hist) const
public:
virtual ~DstarDmFitterSpecial_I()
virtual void AddFitOption(const char* option)
virtual void AddFitOption(char option)
static TClass* Class()
virtual TH1* CreateMergedHist(const TH1* h, const TH1* hWc, Double_t& shiftWc) const
virtual Bool_t Fit(Int_t mode)
virtual Double_t GetBackgrExp() const
static const Double_t GetBackgrExpDefault() const
virtual Double_t GetBackgrNorm() const
virtual Double_t GetBackgrNormErr() const
virtual Double_t GetBackgrSqr() const
static const Double_t GetBackgrSqrDefault() const
const char* GetFitOption() const
virtual TF1* GetFittedBackgrFunc() const
virtual TF1* GetFittedFunc() const
virtual Double_t GetHistBinSize() const
virtual const char* GetHistName() const
TH1* GetHistPtr() const
TH1* GetHistWcPtr() const
static const Double_t GetLowerBackgrExpDefault() const
static const Double_t GetLowerBackgrSqrDefault() const
virtual Double_t GetMean() const
static const Double_t GetMeanDefault() const
virtual Double_t GetNDstar() const
virtual Double_t GetNDstarErr() const
virtual Double_t GetSigma() const
static const Double_t GetSigmaDefault() const
virtual Double_t GetSignalBack() const
virtual Double_t GetUpFitLimit() const
static const Double_t GetUpFitLimitDefault() const
static const Double_t GetUpperBackgrExpDefault() const
static const Double_t GetUpperBackgrSqrDefault() const
virtual Double_t GetWcBackgrNormScale() const
Bool_t HistIsMC() const
virtual TClass* IsA() const
Bool_t IsDetectIsMC() const
virtual void SetBackgrExp()
virtual void SetBackgrExp(Double_t e)
static void SetBackgrExpDefault(Double_t e)
virtual void SetBackgrSqr()
virtual void SetBackgrSqr(Double_t s)
static void SetBackgrSqrDefault(Double_t e)
static void SetDebug(Bool_t d)
void SetDetectIsMC(Bool_t set = kTRUE)
virtual void SetFitOption(const char* option)
virtual void SetHist(TH1* h)
virtual void SetHist(TH1* h, TH1* hWc)
virtual void SetHist(TH1* h, Bool_t defaultSigmaMeanBackgrExp)
virtual void SetHist(TH1* h, TH1* hWc, Bool_t defaultSigMeanBgrExp)
virtual void SetMean()
virtual void SetMean(Double_t m)
static void SetMeanDefault(Double_t m)
virtual void SetSigma()
virtual void SetSigma(Double_t s)
static void SetSigmaDefault(Double_t s)
virtual void SetUpFitLimit()
virtual void SetUpFitLimit(Double_t lim)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
protected:
static Double_t fgSigmaDefault default sigma of signal
static Double_t fgMeanDefault default mean of signal
static Double_t fgBackgrExpDefault default backgr. exponent
static Double_t fgBackgrSqrDefault default backgr. sqr fact.
static Double_t fgUpperBackgrSqrDefault default upper limit for backgr. sqr fact.
static Double_t fgLowerBackgrSqrDefault default lower limit for backgr. sqr fact.
static Double_t fgUpperBackgrExpDefault default upper limit for backgr. exponent
static Double_t fgLowerBackgrExpDefault default lower limit for backgr. exponent
static const Double_t fgUpFitLimitDefault default upper fit limit
static const Double_t fgMassPion pion mass
TH1* fHist
TH1* fHistWc
Double_t fUpFitLimit
Bool_t fIsMC
Bool_t fDetectIsMC if true: fIsMC never set to true
TString fFitOption stores root's fitoption
static Double_t fgBinSize
static Double_t fgUpFitLimit for normalisation of background func
static Double_t fgShiftWcHist for fit with WC background as help
static Double_t fgEndRightCharge dito
public:
static const Double_t kSqrtOf2Pi sqrt(2*pi)
static Bool_t fgDebug more output?
See also
-
DstarDmFitterMeSiExSq, DstarDmFitterMeSiSq, DstarDmFitterUnsmart
last change: $Date: 2005/11/26 20:04:56 $
by : $author$
ABC for special fitting ('helper') classes
to fit the Delta-m distribution for D* analysis
Use DstarDmFitter to do these fits!
const char* GetHistName() const
returns name of the histogram that should be fitted
Double_t GetWcBackgrNormScale() const
should be implemented in derived classes:
if fitted with WC hist gives the ratio between the background normalisations: U_n,wc/U_n
Double_t GetHistBinSize() const
evaluates the bin size of the histogram (and -if existing- of WC hist)
and prints warnings if it's not constant
TH1* CreateMergedHist(const TH1* h, const TH1* hWc,
Double_t& shiftWc) const
creates a hist with the bins of h, followed by an empty bin and then come the bins
of hWc. shiftWc is filled with the value that the bins egdes of hWc are shifted
void SetHist(TH1* hist, Bool_t defaultSigmaMeanExpSq)
for backward comp.
void SetHist(TH1* hist, TH1* hWc, Bool_t defaultSigmaMeanExpSq)
interface to set a TH1* hist (may not be a TH2* or TH3*!) and WC background hist
if defaultSigmaMeanExpSq is kTRUE (it's default is kFALSE),
default values are set
for Sigma, Mean, BackgrExp, BackgrSqr
else they are taken as they are (e.g. from the last fit)
Double_t DetermBackgrStartParam()
determines start parameter for background fit
and checks whether fHist is backgroundless MC (but fNoIsMC == true): no MC assumption!
(for data determines only normalisation)
Int_t UseLikelihoodOption(TH1* hist) const
determine use of likelihood option in fit, dependent on given option and
hists with weights:
2 if fitoption contains LL
0 if fitoption does not contain any L
or if exact one L, but filled with weights
1 else
Bool_t TreatZeroErrorBins(TH1* hist) const
Assign an error to all bins with error = 0. to keep them, in the fit also for chi^2-fit.
The error is set to 1. if no squares of weights are stored with the hist, otherwise
to the mean of the errors of the first bin on the left and on the right that have
error != 0. Only bins in the fitrange (m(pi) -> upfitlimit) are used for that.
False if no hist given or all bins in range have error == 0.
TString GetSimpleFitOption(const char* opt) const
Bool_t IsEquivalentOpt(const TString& optOrig,
const TString& opt2) const
Int_t RealFit(TH1* histToFit, TF1* func) const
calling histToFit->Fit(func, option) where option first is a simple version
of fFitOption and then increasing (L, I, E, M) when given/needed
return result of histToFit->Fit(func, fFitOption) or the first failing of prior tries.
If likelihood method is NOT used, call TreatZeroErrorBins for fHist and fHistWc,
if there is a problem, return -10 and don't fit.
Int_t RealFit(TH1* histToFit, TF1* func, const char* fitOpt) const
fit hist with func and option
first time displaces start parameter by factor 0.98, if no sucess tries several times
if no success, func's params are reset to old values
return fit result of last attempt
Int_t MultiplyFreeParams(TF1* func, Double_t factor) const
multiply all non-fixed parameters of func by factor, returns number of non-free params
Inline Functions
void SetHist(TH1* h, Bool_t defaultSigmaMeanBackgrExp)
void SetHist(TH1* h, TH1* hWc, Bool_t defaultSigMeanBgrExp)
void SetSigma()
void SetSigma(Double_t s)
void SetMean()
void SetMean(Double_t m)
void SetBackgrExp()
void SetBackgrExp(Double_t e)
void SetBackgrSqr()
void SetBackgrSqr(Double_t s)
void SetUpFitLimit()
void SetUpFitLimit(Double_t lim)
void SetFitOption(const char* option)
void AddFitOption(const char* option)
void AddFitOption(char option)
Double_t GetNDstar() const
Double_t GetNDstarErr() const
Double_t GetBackgrNorm() const
Double_t GetBackgrNormErr() const
Double_t GetSigma() const
Double_t GetMean() const
Double_t GetBackgrExp() const
Double_t GetBackgrSqr() const
Double_t GetSignalBack() const
Double_t GetUpFitLimit() const
const char* GetFitOption() const
TF1* GetFittedFunc() const
TF1* GetFittedBackgrFunc() const
Bool_t Fit(Int_t mode)
const Double_t GetSigmaDefault() const
const Double_t GetMeanDefault() const
const Double_t GetBackgrExpDefault() const
const Double_t GetBackgrSqrDefault() const
const Double_t GetUpperBackgrSqrDefault() const
const Double_t GetLowerBackgrSqrDefault() const
const Double_t GetUpperBackgrExpDefault() const
const Double_t GetLowerBackgrExpDefault() const
const Double_t GetUpFitLimitDefault() const
void SetSigmaDefault(Double_t s)
void SetMeanDefault(Double_t m)
void SetBackgrExpDefault(Double_t e)
void SetBackgrSqrDefault(Double_t e)
TH1* GetHistPtr() const
TH1* GetHistWcPtr() const
Bool_t HistIsMC() const
Bool_t IsDetectIsMC() const
void SetDetectIsMC(Bool_t set = kTRUE)
void SetDebug(Bool_t d)
void SetHistReal(TH1* hist, TH1* hWc, Bool_t defaultFitValues)
Double_t DetermNDstarStart(Double_t backgrNormStart)
void AddBackgrToHist()
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
void ~DstarDmFitterSpecial_I()
Author: Gero Flucke
Last update: Wed Jan 11 14:05:44 2006
ROOT page - Class index - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.