ROOT   Reference Guide
TFormula_v5.cxx File Reference
#include <cmath>
#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 "strlcpy.h"
#include "snprintf.h"
Include dependency graph for TFormula_v5.cxx:

## Namespaces

namespace  ROOT
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.

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 = (1ULL << ( 19 ))

## ◆ 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)
Returns the base-e exponential function of x, which is e raised to the power x.
Definition: TMath.h:707
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)
Calculates a gaussian function with mean and sigma.
Definition: TMath.cxx:471

## ◆ 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:492

## ◆ 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:59

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

## ◆ gMAXCONST

 Int_t gMAXCONST =1000
static

Definition at line 34 of file TFormula_v5.cxx.

## ◆ gMAXOP

 Int_t gMAXOP =1000
static

Definition at line 34 of file TFormula_v5.cxx.

## ◆ gMAXPAR

 Int_t gMAXPAR =1000
static

Definition at line 34 of file TFormula_v5.cxx.

## ◆ gMAXSTRINGFOUND

 const Int_t gMAXSTRINGFOUND = 10

Definition at line 35 of file TFormula_v5.cxx.

## ◆ kOptimizationError

 const UInt_t kOptimizationError = (1ULL << ( 19 ))

Definition at line 36 of file TFormula_v5.cxx.