ROOT  6.06/09
Reference Guide
Macros | Functions | Variables
TFormula_v5.cxx File Reference
#include <math.h>
#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:

Go to the source code of this file.

Macros

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

Functions

 ClassImp (ROOT::v5::TFormula) namespace ROOT
 

Variables

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

Macro Definition Documentation

#define R__EXPO (   var)
Value:
{ \
pos++; int param = (oper & kTFOperMask); \
tab[pos-1] = TMath::Exp(params[param]+params[param+1]*x[var]); \
}
const Int_t kTFOperMask
Definition: TFormula.h:38
Double_t x[n]
Definition: legend1.C:17
if on multiple lines(like in C++).**The" * configuration fragment. * * The "import myobject continue
Parses the configuration file.
Definition: HLFactory.cxx:368
Double_t Exp(Double_t x)
Definition: TMath.h:495

Referenced by ClassImp().

#define R__EXPO (   var)
Value:
{ \
pos++; int param = (oper & kTFOperMask); \
tab[pos-1] = TMath::Exp(params[param]+params[param+1]*x[var]); \
}
const Int_t kTFOperMask
Definition: TFormula.h:38
Double_t x[n]
Definition: legend1.C:17
if on multiple lines(like in C++).**The" * configuration fragment. * * The "import myobject continue
Parses the configuration file.
Definition: HLFactory.cxx:368
Double_t Exp(Double_t x)
Definition: TMath.h:495
#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()); \
}
const Int_t kTFOperMask
Definition: TFormula.h:38
Double_t x[n]
Definition: legend1.C:17
if on multiple lines(like in C++).**The" * configuration fragment. * * The "import myobject continue
Parses the configuration file.
Definition: HLFactory.cxx:368
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:453

Referenced by ClassImp().

#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()); \
}
const Int_t kTFOperMask
Definition: TFormula.h:38
Double_t x[n]
Definition: legend1.C:17
if on multiple lines(like in C++).**The" * configuration fragment. * * The "import myobject continue
Parses the configuration file.
Definition: HLFactory.cxx:368
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:453
#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()); \
}
Double_t Landau(Double_t x, Double_t mpv=0, Double_t sigma=1, Bool_t norm=kFALSE)
The LANDAU function.
Definition: TMath.cxx:473
const Int_t kTFOperMask
Definition: TFormula.h:38
Double_t x[n]
Definition: legend1.C:17
if on multiple lines(like in C++).**The" * configuration fragment. * * The "import myobject continue
Parses the configuration file.
Definition: HLFactory.cxx:368

Referenced by ClassImp().

#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()); \
}
Double_t Landau(Double_t x, Double_t mpv=0, Double_t sigma=1, Bool_t norm=kFALSE)
The LANDAU function.
Definition: TMath.cxx:473
const Int_t kTFOperMask
Definition: TFormula.h:38
Double_t x[n]
Definition: legend1.C:17
if on multiple lines(like in C++).**The" * configuration fragment. * * The "import myobject continue
Parses the configuration file.
Definition: HLFactory.cxx:368
#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]; \
} \
}
for(Int_t i=0;i< n;i++)
Definition: legend1.C:18
int Int_t
Definition: RtypesCore.h:41
const Int_t kTFOperMask
Definition: TFormula.h:38
Double_t x[n]
Definition: legend1.C:17
if on multiple lines(like in C++).**The" * configuration fragment. * * The "import myobject continue
Parses the configuration file.
Definition: HLFactory.cxx:368
double Double_t
Definition: RtypesCore.h:55

Referenced by ClassImp().

#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]; \
} \
}
for(Int_t i=0;i< n;i++)
Definition: legend1.C:18
int Int_t
Definition: RtypesCore.h:41
const Int_t kTFOperMask
Definition: TFormula.h:38
Double_t x[n]
Definition: legend1.C:17
if on multiple lines(like in C++).**The" * configuration fragment. * * The "import myobject continue
Parses the configuration file.
Definition: HLFactory.cxx:368
double Double_t
Definition: RtypesCore.h:55

Function Documentation

ClassImp ( ROOT::v5::TFormula  )

Definition at line 36 of file TFormula_v5.cxx.

Variable Documentation

Int_t gMAXCONST =1000
static

Definition at line 32 of file TFormula_v5.cxx.

Referenced by ClassImp().

Int_t gMAXOP =1000
static

Definition at line 32 of file TFormula_v5.cxx.

Referenced by ClassImp().

Int_t gMAXPAR =1000
static

Definition at line 32 of file TFormula_v5.cxx.

Referenced by ClassImp().

const Int_t gMAXSTRINGFOUND = 10

Definition at line 33 of file TFormula_v5.cxx.

Referenced by ClassImp().

const UInt_t kOptimizationError = BIT(19)

Definition at line 34 of file TFormula_v5.cxx.

Referenced by ClassImp().