Logo ROOT  
Reference Guide
TFormula_v5.cxx File Reference
#include <cmath>
#include "Riostream.h"
#include "TROOT.h"
#include "TClass.h"
#include "TBuffer.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

namespace  ROOT
 tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tbb::task_arena without forward declaring tbb::interface7
 
namespace  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; \
}
Double_t x[n]
Definition: legend1.C:17
Double_t Exp(Double_t x)
Definition: TMath.h:717
const Int_t kTFOperMask
Definition: TFormula.h:32

◆ 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; \
}

◆ 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; \
}
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:448

◆ 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; \
}

◆ 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:469

◆ 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; \
}

◆ 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; \
}
double Double_t
Definition: RtypesCore.h:57

◆ 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; \
}

Variable Documentation

◆ gMAXCONST

Int_t gMAXCONST =1000
static

Definition at line 33 of file TFormula_v5.cxx.

◆ gMAXOP

Int_t gMAXOP =1000
static

Definition at line 33 of file TFormula_v5.cxx.

◆ gMAXPAR

Int_t gMAXPAR =1000
static

Definition at line 33 of file TFormula_v5.cxx.

◆ gMAXSTRINGFOUND

const Int_t gMAXSTRINGFOUND = 10

Definition at line 34 of file TFormula_v5.cxx.

◆ kOptimizationError

const UInt_t kOptimizationError = BIT(19)

Definition at line 35 of file TFormula_v5.cxx.