Logo ROOT   6.10/09
Reference Guide
Namespaces | Macros | Variables
TFormula_v5.cxx File Reference
#include <cmath>
#include "Riostream.h"
#include "TROOT.h"
#include "TClass.h"
#include "v5/TFormula.h"
#include "TMath.h"
#include "TRandom.h"
#include "TFunction.h"
#include "TMethodCall.h"
#include "TObjString.h"
#include "TError.h"
#include "v5/TFormulaPrimitive.h"
#include "TInterpreter.h"
#include "TVirtualMutex.h"
Include dependency graph for TFormula_v5.cxx:

Namespaces

 ROOT
 Namespace for new ROOT classes and functions.
 
 ROOT::v5
 

Macros

#define R__EXPO(var)
 
#define R__EXPO(var)
 
#define R__GAUS(var)
 
#define R__GAUS(var)
 
#define R__LANDAU(var)
 
#define R__LANDAU(var)
 
#define R__POLY(var)
 
#define R__POLY(var)
 

Variables

static Int_t gMAXCONST =1000
 
static Int_t gMAXOP =1000
 
static Int_t gMAXPAR =1000
 
const Int_t gMAXSTRINGFOUND = 10
 
const UInt_t kOptimizationError = BIT(19)
 

Macro Definition Documentation

◆ R__EXPO [1/2]

#define R__EXPO (   var)
Value:
{ \
pos++; int param = (oper & kTFOperMask); \
tab[pos-1] = TMath::Exp(params[param]+params[param+1]*x[var]); \
continue; \
}
const Int_t kTFOperMask
Definition: TFormula.h:32
Double_t x[n]
Definition: legend1.C:17
Double_t Exp(Double_t x)
Definition: TMath.h:622

◆ R__EXPO [2/2]

#define R__EXPO (   var)
Value:
{ \
pos++; int param = (oper & kTFOperMask); \
tab[pos-1] = TMath::Exp(params[param]+params[param+1]*x[var]); \
continue; \
}
const Int_t kTFOperMask
Definition: TFormula.h:32
Double_t x[n]
Definition: legend1.C:17
Double_t Exp(Double_t x)
Definition: TMath.h:622

◆ R__GAUS [1/2]

#define R__GAUS (   var)
Value:
{ \
pos++; int param = (oper & kTFOperMask); \
tab[pos-1] = params[param]*TMath::Gaus(x[var],params[param+1],params[param+2],IsNormalized()); \
continue; \
}
const Int_t kTFOperMask
Definition: TFormula.h:32
Double_t x[n]
Definition: legend1.C:17
Double_t Gaus(Double_t x, Double_t mean=0, Double_t sigma=1, Bool_t norm=kFALSE)
Calculate a gaussian function with mean and sigma.
Definition: TMath.cxx:452

◆ R__GAUS [2/2]

#define R__GAUS (   var)
Value:
{ \
pos++; int param = (oper & kTFOperMask); \
tab[pos-1] = params[param]*TMath::Gaus(x[var],params[param+1], \
params[param+2],IsNormalized()); \
continue; \
}
const Int_t kTFOperMask
Definition: TFormula.h:32
Double_t x[n]
Definition: legend1.C:17
Double_t Gaus(Double_t x, Double_t mean=0, Double_t sigma=1, Bool_t norm=kFALSE)
Calculate a gaussian function with mean and sigma.
Definition: TMath.cxx:452

◆ R__LANDAU [1/2]

#define R__LANDAU (   var)
Value:
{ \
pos++; const int param = (oper & kTFOperMask); \
tab[pos-1] = params[param]*TMath::Landau(x[var],params[param+1],params[param+2],IsNormalized()); \
continue; \
}
Double_t Landau(Double_t x, Double_t mpv=0, Double_t sigma=1, Bool_t norm=kFALSE)
The LANDAU function.
Definition: TMath.cxx:472
const Int_t kTFOperMask
Definition: TFormula.h:32
Double_t x[n]
Definition: legend1.C:17

◆ R__LANDAU [2/2]

#define R__LANDAU (   var)
Value:
{ \
pos++; const int param = (oper & kTFOperMask); \
tab[pos-1] = params[param]*TMath::Landau(x[var],params[param+1],params[param+2],IsNormalized()); \
continue; \
}
Double_t Landau(Double_t x, Double_t mpv=0, Double_t sigma=1, Bool_t norm=kFALSE)
The LANDAU function.
Definition: TMath.cxx:472
const Int_t kTFOperMask
Definition: TFormula.h:32
Double_t x[n]
Definition: legend1.C:17

◆ R__POLY [1/2]

#define R__POLY (   var)
Value:
{ \
pos++; int param = (oper & kTFOperMask); \
tab[pos-1] = 0; Double_t intermede = 1; \
Int_t inter = param/100; /* arrondit */ \
Int_t int1= param-inter*100-1; /* aucune simplification ! (sic) */ \
for (j=0 ;j<inter+1;j++) { \
tab[pos-1] += intermede*params[j+int1]; \
intermede *= x[var]; \
} \
continue; \
}
const Int_t kTFOperMask
Definition: TFormula.h:32
Double_t x[n]
Definition: legend1.C:17
double Double_t
Definition: RtypesCore.h:55

◆ R__POLY [2/2]

#define R__POLY (   var)
Value:
{ \
pos++; int param = (oper & kTFOperMask); \
tab[pos-1] = 0; Double_t intermede = 1; \
Int_t inter = param/100; /* arrondit */ \
Int_t int1= param-inter*100-1; /* aucune simplification ! (sic) */ \
for (j=0 ;j<inter+1;j++) { \
tab[pos-1] += intermede*params[j+int1]; \
intermede *= x[var]; \
} \
continue; \
}
const Int_t kTFOperMask
Definition: TFormula.h:32
Double_t x[n]
Definition: legend1.C:17
double Double_t
Definition: RtypesCore.h:55

Variable Documentation

◆ gMAXCONST

Int_t gMAXCONST =1000
static

Definition at line 32 of file TFormula_v5.cxx.

◆ gMAXOP

Int_t gMAXOP =1000
static

Definition at line 32 of file TFormula_v5.cxx.

◆ gMAXPAR

Int_t gMAXPAR =1000
static

Definition at line 32 of file TFormula_v5.cxx.

◆ gMAXSTRINGFOUND

const Int_t gMAXSTRINGFOUND = 10

Definition at line 33 of file TFormula_v5.cxx.

◆ kOptimizationError

const UInt_t kOptimizationError = BIT(19)

Definition at line 34 of file TFormula_v5.cxx.