GFFitHistFrac
class description - source file - inheritance tree
private:
static Double_t FitFunc1D(Double_t* x, Double_t* par)
protected:
Bool_t CheckConsistency()
public:
GFFitHistFrac()
GFFitHistFrac(const TH1* dataHist, const TObjArray* mcHists)
GFFitHistFrac(const GFFitHistFrac&)
virtual ~GFFitHistFrac()
static TClass* Class()
TArrayD Fit()
TArrayD Fit(const TH1* dataHist, const TObjArray* mcHists)
TArrayD GetFactorErrors() const
TArrayD GetFactors() const
TArrayD GetFractionErrors() const
TArrayD GetFractions() const
Double_t GetScaleData() const
TArrayD GetScalesMc() const
virtual TClass* IsA() const
Bool_t SetHistData(const TH1* hist)
Bool_t SetHistDataMc(const TH1* histData, const TObjArray* histsMc)
Bool_t SetHistsMc(const TObjArray* hists)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
private:
static TObjArray* fgMcHists 'global' pointer to Mc hists for fitting fct.
TH1* fHistDataNorm
TObjArray* fHistsMcNorm
Double_t fScaleData
TArrayD fScalesMc
TArrayD fFractions
TArrayD fFractionErrors
Author: Gero Flucke <mailto:flucke@mail.desy.de>
____________________________________
GFFitHistFrac
Author: Gero Flucke
Date: Sept 19th, 2002
last update: $Date: 2002/10/29 14:59:09 $
by: $Author: flucke $
This class performs fits to get the best fractions of different
MC-contributions.
Limitations: Error propagation is not 100% valid in case of more than
two MC-contributions
Double_t FitFunc1D(Double_t* x, Double_t* par)
p[0] factor in front of fgMcHists->At(1),
p[1] factor in front of fgMcHists->At(2) etc.
(1. - p[1] - p[2] - ...) factor in front of fgMcHists->At(0)
GFFitHistFrac() :
fHistDataNorm(NULL), fHistsMcNorm(NULL),
fScalesMc(0), fFractions(0), fFractionErrors(0)
GFFitHistFrac(const TH1* histData, const TObjArray* histsMc) :
fHistDataNorm(NULL), fHistsMcNorm(NULL),
fScalesMc(0), fFractions(0), fFractionErrors(0)
~GFFitHistFrac()
Bool_t SetHistData(const TH1* hist)
Bool_t SetHistsMc(const TObjArray* hists)
Bool_t SetHistDataMc(const TH1* histData, const TObjArray* histsMc)
Bool_t CheckConsistency()
checks whether we have data and MC histograms
and whether they have the same binning
TArrayD Fit()
performs the fit, returns an array with a fraction for each MC-hist
each fraction shows how much the MC hist contributes to the shape(!)
of the data histogram
TArrayD Fit(const TH1* dataHist, const TObjArray* mcHists)
setting histograms and then Fit()
TArrayD GetFactors() const
after Fit() returning array of factors each MC-histogram has to be
multiplied with to get the best agreement with data
TArrayD GetFactorErrors() const
returns array of errors belonging to array from GetFractions()
FIXME: assuming fractions of the others were independend!! ???
(is fine in case of just fitting 2 MC hists to data!)
Inline Functions
TArrayD GetFractions() const
TArrayD GetFractionErrors() const
TArrayD GetScalesMc() const
Double_t GetScaleData() const
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
GFFitHistFrac GFFitHistFrac(const GFFitHistFrac&)
Author: Gero Flucke
Last update: Wed Jan 11 14:07:43 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.