JG ROOT Tools libraries
version 5.0 - august 2014
|
#include <RFitDecay.hh>
Public Member Functions | |
RFitDecay (TH1 *hptr, TH1 *herr=NULL) | |
RFitDecay (TH1 *hptr, const RFitDataDecay &fit_data) | |
RFitDecay (TH1 *hptr, TH1 *herr, const RFitDataDecay &fit_data) | |
RFitDecay (const RFitDecay &original) | |
virtual | ~RFitDecay () |
virtual void | SetOption (const UInt_t opt, const bool b=true) |
virtual void | InitMode () |
virtual void | SetBgType (const Int_t bg) |
virtual Int_t | GetBgParNumber () const |
virtual Int_t | GetBgParIndex (const Int_t p) |
virtual Int_t | GetDecayParIndex (const Int_t p) |
virtual Int_t | GetProdParIndex (const Int_t p) |
virtual void | SetProdTime (const Double_t val) |
virtual void | SetDecayTime (const Double_t val) |
virtual Double_t | GetStaticProdTime () const |
virtual Double_t | GetStaticDecayTime () const |
virtual Int_t | CheckTimes (const bool warn=false) |
virtual void | SetEfficiency (const Int_t n, const Double_t val) |
virtual Double_t | GetStaticEfficiency (const Int_t n) |
virtual void | SetBgPar (const Int_t p, const Double_t val) |
virtual void | SetDecayPar (const Int_t n, const Double_t val) |
virtual void | SetProdPar (const Int_t n, const Double_t val) |
virtual void | SetHalfLife (const Int_t n, const Double_t val) |
virtual void | SetLambda (const Int_t n, const Double_t val) |
virtual void | SetDecayRate (const Int_t n, const Double_t val) |
virtual void | SetInitNumber (const Int_t n, const Double_t val) |
virtual void | SetProdRate (const Int_t n, const Double_t val) |
virtual Double_t | GetHalfLife (const Int_t n) const |
virtual Double_t | GetLambda (const Int_t n) const |
virtual Double_t | GetBgPar (const Int_t p) const |
virtual Double_t | GetDecayPar (const Int_t n) const |
virtual Double_t | GetProdPar (const Int_t n) const |
virtual Double_t | GetBgParError (const Int_t p) const |
virtual Double_t | GetDecayParError (const Int_t n) const |
virtual Double_t | GetProdParError (const Int_t n) const |
virtual void | FixBgParameter (const Int_t p, const bool b=true) |
virtual void | FixDecayParameter (const Int_t n, const bool b=true) |
virtual void | FixProdParameter (const Int_t n, const bool b=true) |
virtual bool | IsFixBgParameter (const Int_t p) const |
virtual bool | IsFixDecayParameter (const Int_t n) const |
virtual bool | IsFixProdParameter (const Int_t n) const |
virtual void | SetCalcAll () |
virtual void | SetCalcNone () |
virtual void | SetFunction () |
virtual void | ScaleFunction (const Double_t s) |
virtual void | DrawDecay (const Int_t n, const Int_t fil, const bool bg=true, const char *opts="") |
virtual void | DrawBg (const char *opts="") |
virtual void | DrawFctResult (TVirtualPad *pad, const ROptionString &opts="") |
virtual TH1 * | GetDecayHisto (const char *name, const Int_t n, const Int_t fil, const bool bg=true) |
virtual TH1 * | GetBgHisto (const char *name) |
virtual void | Preset () |
virtual void | Preset (const Double_t t0, const Double_t t1=0., const Double_t t2=0.) |
virtual void | PresetBg () |
virtual Double_t | Fit (const char *opts="") |
virtual string | GetFitText () const |
virtual RFitData1D * | CreateFitData () |
virtual RFitData1D * | GetFitData () |
virtual void | SetFitData (const RFitData1D *fit_data) |
virtual Int_t | LoadFitData (const string &fname) |
ClassDef (RFitDecay, 0) | |
![]() | |
RFitDataDecay () | |
RFitDataDecay (const RFitDataDecay &original) | |
RFitDataDecay & | operator= (const RFitDataDecay &original) |
virtual | ~RFitDataDecay () |
virtual Int_t | GetDecayNumber () const |
virtual Int_t | GetProdNumber () const |
virtual Double_t | GetProdTime () const |
virtual Double_t | GetDecayTime () const |
virtual Int_t | GetBgType () const |
virtual Double_t | GetEfficiency (const Int_t n) const |
virtual Int_t | SaveFitData (const string &fname) const |
ClassDef (RFitDataDecay, 0) | |
![]() | |
RFitData1D () | |
RFitData1D (const RFitData1D &original) | |
RFitData1D & | operator= (const RFitData1D &original) |
virtual | ~RFitData1D () |
virtual void | GetFitLimits (Double_t &x1, Double_t &x2) const |
virtual Double_t | GetFitXmin () const |
virtual Double_t | GetFitXmax () const |
virtual void | SetPlotLimits (Double_t x1, Double_t x2) |
virtual void | GetPlotLimits (Double_t &x1, Double_t &x2) const |
virtual Double_t | GetPlotXmin () const |
virtual Double_t | GetPlotXmax () const |
virtual Bool_t | IsLogX () const |
virtual Bool_t | IsLogY () const |
ClassDef (RFitData1D, 0) | |
![]() | |
RFitDataBase () | |
RFitDataBase (const RFitDataBase &original) | |
RFitDataBase & | operator= (const RFitDataBase &original) |
virtual | ~RFitDataBase () |
virtual UInt_t | GetFitOptions () const |
virtual Int_t | GetFitMode () const |
virtual Int_t | GetParNumber () const |
virtual Int_t | GetFixNumber () const |
virtual Double_t | GetParValue (const Int_t p) const |
virtual Double_t | GetParError (const Int_t p) const |
virtual Double_t | GetCovariance (const Int_t p, const Int_t q) const |
virtual bool | IsFixParameter (const Int_t p) const |
virtual Int_t | GetFitResult () const |
virtual Double_t | GetFitChi2 () const |
virtual Int_t | GetFitNDF () const |
virtual Double_t | GetFitFCN () const |
virtual Double_t | GetFitEDM () const |
virtual Double_t | GetFitErrDef () const |
ClassDef (RFitDataBase, 0) | |
![]() | |
RFitBase1D () | |
RFitBase1D (TH1 *hptr, TH1 *herr=NULL) | |
RFitBase1D (TH1 *hptr, const RFitData1D &fit_data) | |
RFitBase1D (TH1 *hptr, TH1 *herr, const RFitData1D &fit_data) | |
RFitBase1D (const RFitBase1D &original) | |
virtual | ~RFitBase1D () |
virtual void | Reset () |
virtual void | SetOptions (const UInt_t opts) |
virtual void | SetFitMode (const Int_t mode) |
virtual void | SetFitLimits (const Double_t x1, const Double_t x2) |
virtual void | SetParValue (const Int_t p, const Double_t val) |
virtual string | GetParName (const Int_t p) const |
virtual void | FixParameter (const Int_t p, const bool b=true) |
TF1 * | GetFitFunction () |
virtual void | NormaliseFunction (const Double_t nor=1.) |
virtual void | DrawHisto (const Double_t yinf=0., const Double_t ysup=0.) |
virtual void | DrawFunction (const char *opts="") |
virtual int | CalcIntegral (double &val, double &err, const double x1, const double x2, const int npts=1000, const double frac=0.1) |
virtual void | DrawDifResult (TVirtualPad *pad, const ROptionString &opts="") |
virtual void | DrawFitResult (TVirtualPad *pad, const ROptionString &opts="") |
virtual void | FillFunctionHisto (TH1 *hptr) |
virtual TH1 * | GetFunctionHisto (const char *name) |
virtual TH1 * | GetDifferenceHisto (const char *name) |
virtual TH1 * | GetSqrtHisto (const char *name) |
virtual TH1 * | GetSqrtPosHisto (const char *name) |
virtual TH1 * | GetSqrtNegHisto (const char *name) |
virtual Double_t | Eval (const Double_t x) |
virtual Double_t | GetRandom () |
virtual TH1 * | GetRandomHisto (const char *name, const Int_t n) |
virtual void | FillRandomHisto (TH1 *hptr, const Int_t n) |
virtual bool | PrintFit (const string &fname) const |
virtual bool | PrintFit (FILE *fptr=stdout) const |
virtual bool | WriteParam (const string &fname) const |
virtual bool | WriteParam (FILE *fptr=stdout) const |
virtual bool | WriteOutput (const string &fname) const |
virtual bool | WriteOutput (FILE *fptr=stdout) const |
ClassDef (RFitBase1D, 0) | |
Static Public Member Functions | |
static Int_t | GetStaticDecayNumber () |
static Int_t | GetStaticProdNumber () |
static Int_t | GetStaticBgType () |
static Int_t | GetStaticBgParNumber () |
static Int_t | GetBgParNumber (const Int_t bg) |
static void | SetBgLineAtt (const TAttLine att) |
static void | SetBgLineAtt (const Color_t c, const Style_t s, const Width_t w) |
![]() | |
static bool | Zero (const Double_t val) |
static UInt_t | GetStaticOptions () |
static bool | GetStaticOption (const UInt_t opt) |
static Int_t | GetStaticParNumber () |
static void | SetFctLineAtt (const TAttLine att) |
static void | SetFctLineAtt (const Color_t c, const Style_t s, const Width_t w) |
Static Protected Attributes | |
static UInt_t | bg_type = RFitDecay::bgNone |
Type de fond (statique pour être vue dans la fonction de fit) | |
static UInt_t | bg_par_number [3] = { 0, 1, 2 } |
Table du nombre de paramètres selon le type de fond. | |
static Int_t | decay_number = 1 |
Nombre de contributions (durée de vie) | |
static Int_t | prod_number = 1 |
Nombre de contributions (production directe) | |
static Int_t | index_tprod = -1 |
Index du paramètre de temps de début de production. | |
static Int_t | index_tdec = -1 |
Index du paramètre de temps de début de décroissance. | |
static Int_t | index_prod [3] = { -1, -1, -1 } |
Index des productions (initiale ou taux) | |
static Int_t | index_dec [3] = { -1, -1, -1 } |
Index des durées de vies. | |
static Int_t | index_eff [3] = { -1, -1, -1 } |
Index des efficacités relatives de détection. | |
static Int_t | index_bg [2] = { -1, -1 } |
Index des paramètres de fond dans la table des paramètres. | |
static bool | calc_prod [3] = { true, true, true } |
Indique les composantes de production directe à calculer. | |
static bool | calc_fil1 [3] = { true, true, true } |
Indique les composantes de première filiation. | |
static bool | calc_fil2 [3] = { true, true, true } |
Indique les composantes de seconde filiation. | |
static bool | calc_bg = true |
Indique s'il faut calculer le fond. | |
static Double_t | time_prod = 0. |
Temps de début de production (hors paramètre) | |
static Double_t | time_dec = 0. |
Temps de début de décroissance (hors paramètre) | |
static Double_t | rel_eff [3] = { 1., 1., 1. } |
Efficacités relatives d'observation des composantes. | |
static TAttLine | latt_dec [3] |
Attributs de lignes pour tracé des composantes de décroissance. More... | |
static TAttLine | latt_bg = TAttLine ( 3, 1, 1 ) |
Attributs de lignes pour tracé du fond. | |
![]() | |
static Double_t | epsilon = 1.e-12 |
Check for null values. | |
static UInt_t | fit_options = 0 |
Options pour le fit (statique pour être vue dans la fonction de fit) | |
static Int_t | fit_mode = RFitModes::fitChi2 |
Mode de fit (Chi2 ou Log-likelyhood) | |
static Int_t | par_number = 0 |
Nombre de paramètres pour le fit. | |
static Double_t | histo_bin_x = 1. |
Largeur de bin de l'histogramme (pour calcul avec la surface comme paramètre) | |
static TAttLine | latt_histo = TAttLine ( 1, 1, 2 ) |
Attributs de lignes pour tracé de l'histogramme. | |
static TAttLine | latt_error = TAttLine ( 17, 1, 0 ) |
Attributs de lignes pour tracé de l'erreur. | |
static TAttFill | fatt_error = TAttFill ( 17, 1000 ) |
Attributs de remplissage pour tracé de l'erreur. | |
static TAttLine | latt_fct = TAttLine ( 2, 1, 2 ) |
Attributs de lignes pour tracé de la fonction globale. | |
static TAttLine | latt_zero = TAttLine ( 4, 1, 2 ) |
Attributs de lignes pour tracé central différences. | |
Private Types | |
enum | BgType { bgNone = 0, bgConst = 1, bgLin = 2 } |
! Background types identifiers | |
Private Member Functions | |
GObject (RFitDecay) | |
Friends | |
Double_t | RFitDecayFunction (Double_t *, Double_t *) |
Additional Inherited Members | |
![]() | |
virtual RFitDataDecay * | ReadFitData (const string &fname) |
![]() | |
virtual Int_t | WriteData (FILE *fp) const |
![]() | |
virtual bool | SetHisto (TH1 *hptr, TH1 *herr=NULL) |
![]() | |
static Int_t | ReadData (FILE *fp, RFitData1D &fdata) |
![]() | |
static Int_t | ReadData (FILE *fp, RFitDataBase &fdata) |
![]() | |
Double_t | time_prod |
Production start time (if not defined as parameter) | |
Double_t | time_dec |
Deacy start time (if not defined as parameter) | |
Double_t | rel_eff [3] |
Components relative detection efficiency. | |
Int_t | decay_number |
Number of decay components. | |
Int_t | prod_number |
Number of components with direct production. | |
UInt_t | bg_type |
Background type. | |
![]() | |
Double_t | fit_xmin |
Fit limit. | |
Double_t | fit_xmax |
Fit limit. | |
Double_t | plot_xmin |
Plot limit. | |
Double_t | plot_xmax |
Plot limit. | |
Bool_t | plot_logx |
Log scale for plot. | |
Bool_t | plot_logy |
Log scale for plot. | |
![]() | |
UInt_t | fit_options |
Fit options. | |
Int_t | fit_mode |
Fit mode (Chi2 or Log-likelyhood) | |
Int_t | fit_result |
Fit result. | |
Double_t | fit_chi2 |
Chi2. | |
Int_t | fit_ndf |
Number of degrees of freedom. | |
Double_t | fit_fcn |
Minimized function value (FCN) | |
Double_t | fit_edm |
Estimated distance to minimum. | |
Double_t | fit_err_def |
Error matrix status. | |
Int_t | par_number |
Number of fit parameters (total) | |
Double_t | par_val [50] |
Parameters values. | |
Double_t | par_err [50] |
Uncertainties values. | |
bool | par_fix [50] |
Fix parameters. | |
Double_t | par_cov [50][50] |
Covariance matrix. | |
![]() | |
TH1 * | histo_ptr |
Pointeur sur l'histogramme à fitter. | |
TH1 * | herr1_ptr |
Pointeur sur l'histogramme d'erreur négatif. | |
TH1 * | herr2_ptr |
Pointeur sur l'histogramme d'erreur positif. | |
bool | histo_err |
Indique si l'histo est fitté avec une erreur. | |
string | par_name [50] |
tableau des noms de paramètres | |
Int_t | ix_min |
Borne inférieure du fit en canaux de l'histogramme. | |
Int_t | ix_max |
Borne supérieure du fit en canaux de l'histogramme. | |
Int_t | nx_bin |
Nombre de bins de la zone de fit. | |
TF1 * | fct_ptr |
Pointeur sur la fonction de fit. | |
Class for radioactive decay fits (see also RFitBase1D).
The decay can include up to 3 components, that can be defined as parent, daugther and grand-daughter, and/or produced directly (the production rate is assumed to be constant).
It is possible to include production phase (grow-in) and/or decay phase.
The detection efficiency can be different for the 3 components. Then a relative coefficient for number of counts (scale factor) can be defined for contributions of the second and the third component to take it into account. These relative efficiencies are defined as new fit parameters.
The fit options are defined in RFitOptions namespace, and the fit modes (chi2 minimisation or maximum likelyhood) in the RFitModes namespace.
The options must be defined before presetting of fixing parameters.
Fit modes:
Global fit options:
Specific fit options:
Background types:
RFitDecay::RFitDecay | ( | TH1 * | hptr, |
TH1 * | herr = NULL |
||
) |
Constructor
hptr | pointer to histogram to fit |
herr | pointer to uncertainty histogram (or NULL) |
References bg_type, RFitData1D::fit_xmin, RFitBase1D::histo_ptr, InitMode(), RFitBase1D::SetFitLimits(), RFitBase1D::SetHisto(), time_dec, and time_prod.
RFitDecay::RFitDecay | ( | TH1 * | hptr, |
const RFitDataDecay & | fit_data | ||
) |
Constructor with fit data initialization.
hptr | pointer to histogram to fit |
fit_data | initialisation data |
References RFitBase1D::histo_ptr, SetFitData(), RFitBase1D::SetFitLimits(), and RFitBase1D::SetHisto().
RFitDecay::RFitDecay | ( | TH1 * | hptr, |
TH1 * | herr, | ||
const RFitDataDecay & | fit_data | ||
) |
Constructor with error histogram and fit data initialization.
hptr | pointer to histogram to fit |
herr | pointer to uncertainty histogram (or NULL) |
fit_data | initialisation data |
References RFitBase1D::histo_ptr, SetFitData(), RFitBase1D::SetFitLimits(), and RFitBase1D::SetHisto().
RFitDecay::RFitDecay | ( | const RFitDecay & | original | ) |
Copy constructor (not implemented).
original | object to copy |
|
virtual |
Destructor.
|
private |
Macro from GCpp library that defines the following functions:
|
virtual |
Valide ou invalide une option.
opt | masque binaire de l'option |
b | état demandé pour l'option |
Reimplemented from RFitBase1D.
Reimplemented in RGFitDecay.
References RFitOptions::doubleFiliation, RFitBase1D::fit_options, RFitOptions::fitDecay, RFitOptions::fitGrowing, RFitOptions::fitGrowingAndDecay, RFitOptions::fitProd, RFitBase1D::GetStaticOption(), InitMode(), RFitOptions::modeProdSecond, RFitOptions::modeProdThird, RFitOptions::singleFiliation, RFitOptions::varDecayTime, and RFitOptions::varProdTime.
Referenced by RGFitDecay::OptDoubleFiliationToggled(), RGFitDecay::OptEffToggled(), RGFitDecay::OptErrToggled(), RGFitDecay::OptProdSecondToggled(), RGFitDecay::OptProdThirdToggled(), RGFitDecay::OptSingleFiliationToggled(), and RGFitDecay::SetOption().
|
virtual |
Fonction qui initialise l'ensemble des champs, statiques ou non, lorsque les options de fit sont modifiées.
Reimplemented from RFitBase1D.
References bg_par_number, RFitDataDecay::bg_type, bg_type, RFitDataDecay::decay_number, decay_number, RFitOptions::doubleFiliation, RFitDataBase::fit_chi2, RFitDataBase::fit_mode, RFitBase1D::fit_mode, RFitDataBase::fit_options, RFitBase1D::fit_options, RFitOptions::fitDecay, RFitOptions::fitGrowing, RFitOptions::fitLambda, RFitOptions::fitNumber, RFitOptions::fitProd, RFitBase1D::histo_bin_x, RFitBase1D::histo_ptr, index_bg, index_dec, index_eff, index_prod, index_tdec, index_tprod, RFitOptions::modeProdSecond, RFitOptions::modeProdThird, RFitDataBase::par_err, RFitDataBase::par_fix, RFitBase1D::par_name, RFitBase1D::par_number, RFitDataBase::par_number, RFitDataBase::par_val, RFitDataDecay::prod_number, prod_number, RDECAY_MAX, RDECAY_MAX_BG_PAR, RFitDataDecay::rel_eff, rel_eff, RFIT_MAX_PAR, RFitOptions::singleFiliation, RFitDataDecay::time_dec, time_dec, RFitDataDecay::time_prod, time_prod, RFitOptions::varDecayTime, and RFitOptions::varProdTime.
Referenced by RFitDecay(), SetBgType(), and SetOption().
|
inlinestatic |
Get the number of decay components (nuclei) in the fit function. The function returns the static value for fit functions.
References decay_number.
|
inlinestatic |
Get the number of decay components (nuclei) with direct production in the fit function. The function returns the static value for fit functions.
References prod_number.
|
inlinevirtual |
Set the background type.
bg | selected background |
Reimplemented in RGFitDecay.
References bg_type, InitMode(), and RDECAY_BG_MAX.
Referenced by RGFitDecay::BgTypeSelected(), and SetFitData().
|
inlinestatic |
|
inlinestatic |
Get the number of background parameters. The function returns the static value for fit functions.
References bg_par_number, and bg_type.
Referenced by GetBgParNumber().
|
inlinestatic |
Get the number of parameters for a background type.
bg | background type |
References bg_par_number.
|
inlinevirtual |
Redefinition of RFitDataDecay function, to avoid compilation warning due to -Woverloaded-virtual option.
Reimplemented from RFitDataDecay.
References GetStaticBgParNumber().
Referenced by RFitDataDecay::GetBgParNumber().
|
inlinevirtual |
Get the fit parameter number of a background parameter. The function returns -1 if the parameter is not defined.
p | background parameter number |
References index_bg.
|
inlinevirtual |
Get the fit parameter number of a decay parameter (half-life or decay constant). The function returns -1 if the parameter is not defined.
n | component number |
References index_dec.
|
inlinevirtual |
Get the fit parameter number of a production parameter (rate or number of nuclei). The function returns -1 if the parameter is not defined.
n | component number |
References index_prod.
|
virtual |
Fonction qui définit la valeur du début de la phase de production. Cette fonction n'est utile que s'il y a fit de cette phase (option RFitOptions::fitGrowing). Dans le cas où cette donnée est considérée comme un paramètre, la valeur du paramètre est prédéfinie.
val | instant du début de phase de production |
Reimplemented in RGFitDecay.
References RFitOptions::fitGrowing, RFitBase1D::GetStaticOption(), index_tprod, RFitBase1D::SetParValue(), RFitDataDecay::time_prod, time_prod, and RFitOptions::varProdTime.
Referenced by CheckTimes(), SetFitData(), and RGFitDecay::SetProdTime().
|
virtual |
Fonction qui définit la valeur du début de la phase de décroissance. Cette fonction n'est utile que s'il y a fit de cette phase (option RFitOptions::fitDecay). Dans le cas où cette donnée est considérée comme un paramètre, la valeur du paramètre est prédéfinie.
val | instant du début de phase de décroissance |
Reimplemented in RGFitDecay.
References RFitOptions::fitDecay, RFitOptions::fitProd, RFitBase1D::GetStaticOption(), index_tdec, RFitBase1D::SetParValue(), RFitDataDecay::time_dec, time_dec, and RFitOptions::varDecayTime.
Referenced by CheckTimes(), RGFitDecay::SetDecayTime(), and SetFitData().
|
virtual |
Fonction qui renvoit la valeur du début de la phase de production. La valeur retournée est soit la valeur du paramètre si ce temps est défini comme paramètre (options RFitOptions::fitGrowing et RFitOptions::varProdTime), soit la valeur statique si ce temps n'est pas un paramètre.
References RFitOptions::fitGrowing, RFitDataBase::GetParValue(), RFitBase1D::GetStaticOption(), index_tprod, time_prod, and RFitOptions::varProdTime.
Referenced by RGFitDecay::CheckTimes(), CheckTimes(), GetFitText(), RGFitDecay::GuiFit(), RGFitDecay::GuiPreset(), RGFitDecay::ParamToPointTimes(), RGFitDecay::ParamToWidgetTimes(), Preset(), PresetBg(), SetDecayRate(), SetInitNumber(), and SetProdRate().
|
virtual |
Fonction qui renvoit la valeur du début de la phase de décroissance. La valeur retournée est soit la valeur du paramètre si ce temps est défini comme paramètre (options RFitOptions::fitGrowing et RFitOptions::fitDecay et RFitOptions::varDecayTime), soit la valeur statique si ce temps n'est pas un paramètre.
References RFitOptions::fitDecay, RFitOptions::fitGrowing, RFitDataBase::GetParValue(), RFitBase1D::GetStaticOption(), index_tdec, time_dec, and RFitOptions::varDecayTime.
Referenced by RGFitDecay::CheckTimes(), CheckTimes(), GetFitText(), RGFitDecay::GuiFit(), RGFitDecay::GuiPreset(), RGFitDecay::ParamToPointTimes(), RGFitDecay::ParamToWidgetTimes(), Preset(), SetDecayRate(), SetInitNumber(), and SetProdRate().
|
virtual |
Fonction qui vérifie que les temps de début de production et de début de décroissance sont compatible avec un fit. La fonction retourne une valeur négative si des modifications ont été nécesaire, et une valeur positive si les conditions de fit ne sont pas correctes.
warn | indique s'il faut envoyer des messages en cas de problème |
Reimplemented in RGFitDecay.
References RFitData1D::fit_xmax, RFitOptions::fitDecay, RFitOptions::fitGrowing, GetStaticDecayTime(), RFitBase1D::GetStaticOption(), GetStaticProdTime(), SetDecayTime(), SetProdTime(), and RFitBase1D::Zero().
Referenced by RGFitDecay::CheckTimes(), Fit(), and Preset().
|
virtual |
Fonction qui définit l'efficacicté de détection relative d'une composante par rapport à la première (composante 0). Il s'agit d'un facteur multiplicatif sur l'amplitude des composantes liées à ce noyau.
n | numéro de noyau qui décroît (composante): 1 ou 2 (0 exclus) |
val | valeur de l'efficacité |
References RFitDataDecay::rel_eff, and rel_eff.
Referenced by SetFitData(), and RGFitDecay::WidgetsToParamDecays().
|
inlinevirtual |
Get the relative detection efficiency (with respect to decay component 0). This is a scale factor for amplitudes of the component. The function returns the static value for fit functions.
n | component number: 1 ou 2 (0 excluded) |
References rel_eff.
|
virtual |
Prédéfinit un paramètre du fond. L'erreur associée au paramètre est mise à 0.
p | numéro de paramètre de fond |
val | valeur du paramètre |
References index_bg, RFitDataBase::par_err, and RFitDataBase::par_val.
Referenced by RGFitDecay::WidgetsToParamBg().
|
virtual |
Prédéfinition d'un paramètre de décroissance (durée de vie ou constante de décroissance, selon options).
n | numéro de noyau qui décroît |
val | valeur du paramètre |
References index_dec, RFitDataBase::par_err, and RFitDataBase::par_val.
Referenced by SetHalfLife(), and SetLambda().
|
virtual |
Prédéfinition d'un paramètre de production (taux de décroissance ou nombre de noyaux présents en début de phase de décroissance, ou taux de production pendant la phase de production, selon options).
n | numéro de noyau |
val | valeur du paramètre |
References index_prod, RFitDataBase::par_err, and RFitDataBase::par_val.
Referenced by SetDecayRate(), SetInitNumber(), and SetProdRate().
|
virtual |
Prédéfinition d'un paramètre de décroissance à partir de la durée de vie.
n | numéro de noyau qui décroît |
val | valeur du paramètre |
References RFitOptions::fitLambda, RFitBase1D::GetStaticOption(), index_dec, RDECAY_LN2, SetDecayPar(), and RFitBase1D::Zero().
Referenced by Preset().
|
virtual |
Prédéfinition d'un paramètre de décroissance à partir de la constante de décroissance.
n | numéro de noyau qui décroît |
val | valeur du paramètre |
References RFitOptions::fitLambda, RFitBase1D::GetStaticOption(), index_dec, RDECAY_LN2, SetDecayPar(), and RFitBase1D::Zero().
|
virtual |
Prédéfinition d'un paramètre de production à partir du taux de décroissance de cette composante (hors filiation) au début de la phase de décroissance. Si le paramètre de fit n'est pas le taux de décroissance initial, le paramètre de décroissance (durée de vie ou constante de décroissance) doit être défini, et la durée de la pahse de production également si le paramètre de fit est le taux de production.
n | numéro de noyau |
val | valeur du paramètre |
References RFitOptions::fitNumber, RFitOptions::fitProd, GetDecayPar(), GetLambda(), GetStaticDecayTime(), RFitBase1D::GetStaticOption(), GetStaticProdTime(), index_prod, SetProdPar(), and RFitBase1D::Zero().
Referenced by Preset().
|
virtual |
Prédéfinition d'un paramètre de production à partir du nombre de noyaux de cette composante (hors filiation) présents au début de la phase de décroissance. Si le paramètre de fit n'est pas le nombre de noyaux initial, le paramètre de décroissance (durée de vie ou constante de décroissance) doit être défini, et la durée de la pahse de production également si le paramètre de fit est le taux de production.
n | numéro de noyau |
val | valeur du paramètre |
References RFitOptions::fitNumber, RFitOptions::fitProd, GetDecayPar(), GetLambda(), GetStaticDecayTime(), RFitBase1D::GetStaticOption(), GetStaticProdTime(), index_prod, SetProdPar(), and RFitBase1D::Zero().
|
virtual |
Prédéfinition d'un paramètre de production à partir du taux de production de ce noyau pendant la phase de production.
n | numéro de noyau |
val | valeur du paramètre |
References RFitOptions::fitGrowing, RFitOptions::fitNumber, RFitOptions::fitProd, GetDecayPar(), GetLambda(), GetStaticDecayTime(), RFitBase1D::GetStaticOption(), GetStaticProdTime(), index_prod, SetProdPar(), and RFitBase1D::Zero().
|
virtual |
Retourne la durée de vie d'un noyau.
n | numéro de noyau qui décroît |
References RFitOptions::fitLambda, RFitBase1D::GetStaticOption(), index_dec, RFitDataBase::par_val, RDECAY_LN2, and RFitBase1D::Zero().
Referenced by Preset().
|
virtual |
Retourne la constante de décroissance d'un noyau.
n | numéro de noyau qui décroît |
References RFitOptions::fitLambda, RFitBase1D::GetStaticOption(), index_dec, RFitDataBase::par_val, RDECAY_LN2, and RFitBase1D::Zero().
Referenced by SetDecayRate(), SetInitNumber(), and SetProdRate().
|
virtual |
Retourne la valeur d'un paramètre de fond.
p | numéro du paramètre de fond |
References index_bg, and RFitDataBase::par_val.
Referenced by GetFitText().
|
virtual |
Retourne la valeur d'un paramètre de décroissance (durée de vie ou constante de décroissance, selon options).
n | numéro de noyau qui décroît |
References index_dec, and RFitDataBase::par_val.
Referenced by Fit(), GetFitText(), Preset(), SetDecayRate(), SetInitNumber(), and SetProdRate().
|
virtual |
Retourne la valeur d'un paramètre de production (taux de décroissance ou nombre de noyaux présents en début de phase de décroissance, ou taux de production pendant la phase de production, selon options).
n | numéro de noyau |
References index_prod, and RFitDataBase::par_val.
Referenced by GetFitText(), and Preset().
|
virtual |
Retourne l'erreur sur un paramètre de fond.
p | numéro du paramètre de fond |
References index_bg, and RFitDataBase::par_err.
Referenced by GetFitText().
|
virtual |
Retourne l'erreur sur un paramètre de décroissance (durée de vie ou constante de décroissance, selon options).
n | numéro de noyau qui décroît |
References index_dec, and RFitDataBase::par_err.
Referenced by GetFitText().
|
virtual |
Retourne l'erreur sur un paramètre de production (taux de décroissance ou nombre de noyaux présents en début de phase de décroissance, ou taux de production pendant la phase de production, selon options).
n | numéro de noyau |
References index_prod, and RFitDataBase::par_err.
Referenced by GetFitText().
|
virtual |
Fonction qui fixe ou libère un paramètre de fond.
p | numéro de paramètre de fond |
b | fixe (vrai) ou libre (faux) |
References index_bg, and RFitDataBase::par_fix.
|
virtual |
Fonction qui fixe ou libère un paramètre de décroissance (durée de vie ou constante de décroissance, selon options).
n | numéro de noyau |
b | fixe (vrai) ou libre (faux) |
References index_dec, and RFitDataBase::par_fix.
|
virtual |
Fonction qui fixe ou libère un paramètre de production (taux de décroissance ou nombre de noyaux présents en début de phase de décroissance, ou taux de production pendant la phase de production, selon options).
n | numéro de noyau |
b | fixe (vrai) ou libre (faux) |
References index_prod, and RFitDataBase::par_fix.
|
virtual |
Fonction qui indique si un paramètre de fond est fixé.
p | numéro de paramètre de fond |
References index_bg, and RFitDataBase::par_fix.
|
virtual |
Fonction qui indique si un paramètre de décroissance est fixé.
n | numéro de noyau |
References index_dec, and RFitDataBase::par_fix.
Referenced by Preset().
|
virtual |
Fonction qui indique si un paramètre de production est fixé.
n | numéro de noyau |
References index_prod, and RFitDataBase::par_fix.
|
inlinestatic |
|
inlinestatic |
|
virtual |
Initialisation des termes calculés pour la fonction: tous termes inclus.
Implements RFitBase1D.
|
virtual |
Initialisation des termes calculés pour la fonction: tous termes exclus.
Implements RFitBase1D.
References calc_bg, calc_fil1, calc_fil2, and calc_prod.
Referenced by GetBgHisto(), and GetDecayHisto().
|
virtual |
Initialisation de la fonction et des paramètres.
Implements RFitBase1D.
References RFitBase1D::fct_ptr, RFitData1D::fit_xmax, RFitData1D::fit_xmin, RFitDataBase::par_fix, RFitBase1D::par_name, RFitBase1D::par_number, RFitDataBase::par_val, and RFitDecayFunction.
Referenced by GetBgHisto(), and GetDecayHisto().
|
virtual |
Fonction qui recalcule les paramètres pour obtenir un facteur d'échelle sur la fonction.
s | facteur d'échelle à appliquer |
Implements RFitBase1D.
References bg_par_number, bg_type, index_bg, index_prod, RFitDataBase::par_err, and RFitDataBase::par_val.
|
virtual |
Tracé d'une composante de la fonction. Pour la composante 0 (noyau parent), seule la composante de production directe (fil = 0) est valide. Pour la composante 1 (noyau fils ou seconde production), les niveaux de filiation 0 (production directe) et 1 (composante du noyaux fils résultant de la filiation) sont valides. Pour la composante 2 (noyau petit-fils ou 3e production), tous les niveaux de filiation sont possibles : 0 pour production directe, 1 pour filiation issue de la production directe du 2e noyau, et 2 pour la composante issue de la 2e filiation du noyau parent. Le pointeur alloué n'est pas détruit par la classe RFitDecay.
n | numéro de noyau (0: père, 1: fils, 2: petit-fils) |
fil | niveau de filiation |
bg | indique si on trace la composante au dessus du fond |
opts | options de tracé |
References GetDecayHisto().
Referenced by DrawFctResult().
|
virtual |
Tracé du fond.
opts | options de tracé (voir classe TF1 de ROOT) |
References GetBgHisto().
Referenced by DrawFctResult().
|
virtual |
Fonction qui trace l'histogramme, la fonction de fit et ses composantes, dans un pad déjà existant.
Les options de tracé sont les suivantes:
pad | pointeur sur le TPad où faire le tracé |
opts | options de tracé des résultats |
Reimplemented from RFitBase1D.
References bg_type, decay_number, RFitOptions::doubleFiliation, DrawBg(), DrawDecay(), RFitBase1D::DrawFunction(), RFitBase1D::DrawHisto(), RFitData1D::fit_xmax, RFitData1D::fit_xmin, RFitBase1D::GetStaticOption(), RFitBase1D::histo_bin_x, RFitBase1D::histo_ptr, index_dec, RFitOptions::modeProdSecond, RFitOptions::modeProdThird, and RFitOptions::singleFiliation.
|
virtual |
Alloue et retourne un pointeur sur un histogramme pour une composante de décroissance de la fonction. Pour la composante 0 (noyau parent), seule la composante de production directe (fil = 0) est valide. Pour la composante 1 (noyau fils ou seconde production), les niveaux de filiation 0 (production directe) et 1 (composante du noyaux fils résultant de la filiation) sont valides. Pour la composante 2 (noyau petit-fils ou 3e production), tous les niveaux de filiation sont possibles : 0 pour production directe, 1 pour filiation issue de la production directe du 2e noyau, et 2 pour la composante issue de la 2e filiation du noyau parent. Le pointeur alloué n'est pas détruit par la classe RFitDecay.
name | nom de l'histogramme |
n | numéro de noyau (0: père, 1: fils, 2: petit-fils) |
fil | niveau de filiation |
bg | indique si on trace la composante au dessus du fond |
References calc_bg, calc_fil1, calc_fil2, calc_prod, decay_number, RFitOptions::doubleFiliation, RFitBase1D::FillFunctionHisto(), RFitData1D::fit_xmax, RFitData1D::fit_xmin, RFitBase1D::GetStaticOption(), latt_dec, RFitOptions::modeProdSecond, RFitOptions::modeProdThird, RFitBase1D::nx_bin, SetCalcNone(), SetFunction(), and RFitOptions::singleFiliation.
Referenced by RGFitDecay::CalcFunctions(), and DrawDecay().
|
virtual |
Alloue et retourne un pointeur sur un histogramme du fond. Le pointeur alloué n'est pas détruit par la classe RFitDecay.
name | nom de l'histogramme |
References calc_bg, RFitBase1D::FillFunctionHisto(), RFitData1D::fit_xmax, RFitData1D::fit_xmin, latt_bg, RFitBase1D::nx_bin, SetCalcNone(), and SetFunction().
Referenced by RGFitDecay::CalcFunctions(), and DrawBg().
|
virtual |
Préinitialisation des paramètres. Les paramètres fixes et non nuls ne sont pas redéfinis.
Reimplemented from RFitBase1D.
References PresetBg().
Referenced by Fit(), and RGFitDecay::GuiPreset().
|
virtual |
Préinitialisation des paramètres. Les paramètres fixes et non nuls ne sont pas redéfinis.
References CheckTimes(), RFitOptions::doubleFiliation, RFitData1D::fit_xmax, RFitData1D::fit_xmin, RFitOptions::fitDecay, GetDecayPar(), GetHalfLife(), GetProdPar(), GetStaticDecayTime(), RFitBase1D::GetStaticOption(), GetStaticProdTime(), RFitBase1D::histo_bin_x, RFitBase1D::histo_ptr, index_dec, IsFixDecayParameter(), RFitBase1D::ix_max, SetDecayRate(), SetHalfLife(), RFitOptions::singleFiliation, and RFitBase1D::Zero().
|
virtual |
Préinitialisation des paramètres du fond. Les paramètres fixes et non nuls ne sont pas redéfinis.
References bg_type, RFitOptions::fitGrowing, RFitBase1D::GetStaticOption(), GetStaticProdTime(), RFitBase1D::histo_ptr, index_bg, RFitBase1D::ix_max, and RFitDataBase::par_val.
Referenced by RGFitDecay::BgPreset(), and Preset().
|
virtual |
Fonction surchargée de la classe de base, afin d'assurer que les durées de vie initiales ne soient pas nulles.
opts | options de fit (elles sont prioritaires sur les options internes, en particulier le mode de fit) |
Reimplemented from RFitBase1D.
References CheckTimes(), RFitBase1D::Fit(), RFitDataBase::fit_result, GetDecayPar(), Preset(), and RFitBase1D::Zero().
Referenced by RGFitDecay::GuiFit().
|
virtual |
Fonction qui écrit le résultat de fit dans une chaine de caractères.
Implements RFitBase1D.
References bg_par_number, bg_type, RFitOptions::doubleFiliation, RFitDataBase::fit_chi2, RFitData1D::fit_xmax, RFitData1D::fit_xmin, RFitOptions::fitDecay, RFitOptions::fitGrowing, RFitOptions::fitLambda, RFitOptions::fitNumber, RFitOptions::fitProd, GetBgPar(), GetBgParError(), GetDecayPar(), GetDecayParError(), RFitDataBase::GetParError(), RFitBase1D::GetParName(), GetProdPar(), GetProdParError(), GetStaticDecayTime(), RFitBase1D::GetStaticOption(), GetStaticProdTime(), index_bg, index_dec, index_prod, index_tdec, index_tprod, RFitOptions::modeErrNorm, RFitOptions::modeProdSecond, RFitOptions::modeProdThird, RFitDataBase::par_fix, rDecayBgName, and RFitOptions::singleFiliation.
|
virtual |
Fonction qui alloue une nouvelle structure de données relatives au fit. Le pointeur en retour est alloué et doit être libéré par le programme appelant.
Implements RFitBase1D.
Reimplemented in RGFitDecay.
References GetFitData(), and RFitDataDecay::RFitDataDecay().
|
virtual |
Fonction qui renvoit le pointeur sur les données de fit de la classe.
Reimplemented from RFitBase1D.
Reimplemented in RGFitDecay.
References RFitDataBase::fit_mode, RFitDataBase::fit_options, RFitDataBase::par_number, RFitDataDecay::rel_eff, rel_eff, RFitDataDecay::time_dec, time_dec, RFitDataDecay::time_prod, and time_prod.
Referenced by CreateFitData(), and RGFitDecay::GetFitData().
|
virtual |
Fonction qui initialise les données du fit à partir de données récupérées d'un fit précédent.
fit_data | données pour initialisation |
Reimplemented from RFitBase1D.
Reimplemented in RGFitDecay.
References RFitDataDecay::bg_type, RFitDataDecay::rel_eff, SetBgType(), SetDecayTime(), SetEfficiency(), RFitBase1D::SetFitData(), SetProdTime(), RFitDataDecay::time_dec, and RFitDataDecay::time_prod.
Referenced by LoadFitData(), RFitDecay(), and RGFitDecay::SetFitData().
|
virtual |
Lecture des données de fit dans un fichier. La fonction retourne 0 si la lecture s'est bien passée.
fname | nom du fichier |
Reimplemented from RFitDataDecay.
References RFitDataDecay::ReadFitData(), and SetFitData().
RFitDecay::ClassDef | ( | RFitDecay | , |
0 | |||
) |
For ROOT dictionary.
|
friend |
Fit function for decay fitter RFitDecay. To identify fit options, it uses the static functions from the fit class.
x | coordinates array (only x[0] is used) |
p | parameters array |
Referenced by SetFunction().
|
staticprotected |
Referenced by GetDecayHisto().