Logo ROOT  
Reference Guide
TFormulaPrimitive_v5.cxx
Go to the documentation of this file.
1// @(#)root/hist:$Id$
2// Author: Marian Ivanov, 2005
3
4/*************************************************************************
5* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6* All rights reserved. *
7* *
8* For the licensing terms see $ROOTSYS/LICENSE. *
9* For the list of contributors see $ROOTSYS/README/CREDITS. *
10*************************************************************************/
11
13
14#include "TMath.h"
15#include "TNamed.h"
16#include "TObjArray.h"
17#include "TVirtualMutex.h"
18
19#include <math.h>
20
21#ifdef WIN32
22#pragma optimize("",off)
23#endif
24
26
27
29
30namespace ROOT {
31 namespace v5 {
32
34
35/** \class TFormulaPrimitive TFormulaPrimitive.h "inc/v5/TFormulaPrimitive.h"
36 \ingroup Hist
37The Formula Primitive class
38
39Helper class for TFormula to speed up TFormula evaluation
40TFormula can use all functions registered in the list of TFormulaPrimitives
41User can add new function to the list of primitives
42if FormulaPrimitive with given name is already defined new primitive is ignored
43
44Example:
45
46~~~ {.cpp}
47 TFormulaPrimitive::AddFormula(new TFormulaPrimitive("Pow2","Pow2",TFastFun::Pow2));
48 TF1 f1("f1","Pow2(x)");
49~~~
50
51 - TFormulaPrimitive is used to get direct acces to the function pointers
52 - GenFunc - pointers to the static function
53 - TFunc - pointers to the data member functions
54
55The following sufixes are currently used, to describe function arguments:
56
57 - G - generic layout - pointer to double (arguments), pointer to double (parameters)
58 - 10 - double
59 - 110 - double, double
60 - 1110 - double, double, double
61*/
62
63//______________________________________________________________________________
64// TFormula primitive
65//
67#ifdef R__COMPLETE_MEM_TERMINATION
68namespace {
69 class TFormulaPrimitiveCleanup {
70 TObjArray **fListOfFunctions;
71 public:
72 TFormulaPrimitiveCleanup(TObjArray **functions) : fListOfFunctions(functions) {}
73 ~TFormulaPrimitiveCleanup() {
74 delete *fListOfFunctions;
75 }
76 };
77
78}
79#endif
80
81////////////////////////////////////////////////////////////////////////////////
82/// Default constructor.
83
85 fFuncG(0),
86 fType(0),fNArguments(0),fNParameters(0),fIsStatic(kTRUE)
87{
88}
89
90////////////////////////////////////////////////////////////////////////////////
91/// Constructor.
92
93TFormulaPrimitive::TFormulaPrimitive(const char *name,const char *formula,
94 GenFunc0 fpointer) : TNamed(name,formula),
95 fFunc0(fpointer),
96 fType(0),fNArguments(0),fNParameters(0),fIsStatic(kTRUE)
97{
98}
99
100////////////////////////////////////////////////////////////////////////////////
101/// Constructor.
102
103TFormulaPrimitive::TFormulaPrimitive(const char *name,const char *formula,
104 GenFunc10 fpointer) : TNamed(name,formula),
105 fFunc10(fpointer),
106 fType(10),fNArguments(1),fNParameters(0),fIsStatic(kTRUE)
107{
108}
109
110////////////////////////////////////////////////////////////////////////////////
111/// Constructor.
112
113TFormulaPrimitive::TFormulaPrimitive(const char *name,const char *formula,
114 GenFunc110 fpointer) : TNamed(name,formula),
115 fFunc110(fpointer),
116 fType(110),fNArguments(2),fNParameters(0),fIsStatic(kTRUE)
117{
118}
119
120////////////////////////////////////////////////////////////////////////////////
121/// Constructor.
122
123TFormulaPrimitive::TFormulaPrimitive(const char *name,const char *formula,
124 GenFunc1110 fpointer) : TNamed(name,formula),
125 fFunc1110(fpointer),
126 fType(1110),fNArguments(3),fNParameters(0),fIsStatic(kTRUE)
127{
128}
129
130////////////////////////////////////////////////////////////////////////////////
131/// Constructor.
132
133TFormulaPrimitive::TFormulaPrimitive(const char *name,const char *formula,
134 GenFuncG fpointer,Int_t npar) : TNamed(name,formula),
135 fFuncG(fpointer),
136 fType(-1),fNArguments(2),fNParameters(npar),fIsStatic(kTRUE)
137{
138}
139
140////////////////////////////////////////////////////////////////////////////////
141/// Constructor.
142
143TFormulaPrimitive::TFormulaPrimitive(const char *name,const char *formula,
144 TFuncG fpointer) : TNamed(name,formula),
145 fTFuncG(fpointer),
146 fType(0),fNArguments(0),fNParameters(0),fIsStatic(kFALSE)
147{
148}
149
150////////////////////////////////////////////////////////////////////////////////
151/// Constructor.
152
153TFormulaPrimitive::TFormulaPrimitive(const char *name,const char *formula,
154 TFunc0 fpointer) : TNamed(name,formula),
155 fTFunc0(fpointer),
156 fType(0),fNArguments(0),fNParameters(0),fIsStatic(kFALSE)
157{
158}
159
160////////////////////////////////////////////////////////////////////////////////
161/// Constructor.
162
163TFormulaPrimitive::TFormulaPrimitive(const char *name,const char *formula,
164 TFunc10 fpointer) : TNamed(name,formula),
165 fTFunc10(fpointer),
166 fType(-10),fNArguments(1),fNParameters(0),fIsStatic(kFALSE)
167{
168}
169
170////////////////////////////////////////////////////////////////////////////////
171/// Constructor.
172
173TFormulaPrimitive::TFormulaPrimitive(const char *name,const char *formula,
174 TFunc110 fpointer) : TNamed(name,formula),
175 fTFunc110(fpointer),
176 fType(-110),fNArguments(2),fNParameters(0),fIsStatic(kFALSE)
177{
178}
179
180////////////////////////////////////////////////////////////////////////////////
181/// Constructor.
182
183TFormulaPrimitive::TFormulaPrimitive(const char *name,const char *formula,
184 TFunc1110 fpointer) :TNamed(name,formula),
185 fTFunc1110(fpointer),
186 fType(-1110),fNArguments(3),fNParameters(0),fIsStatic(kFALSE)
187{
188}
189
190////////////////////////////////////////////////////////////////////////////////
191/// Add formula to the list of primitive formulas.
192/// If primitive formula already defined do nothing.
193
195{
198 if (FindFormula(formula->GetName(),formula->fNArguments)){
199 delete formula;
200 return 0;
201 }
202 fgListOfFunction->AddLast(formula);
203 return 1;
204}
205
206////////////////////////////////////////////////////////////////////////////////
207/// Eval primitive function at point x.
208
210{
211 if (fIsStatic == kFALSE) return 0;
212
213 if (fType==0) return fFunc0();
214 if (fType==10) {
215 return fFunc10(x[0]);
216 }
217 if (fType==110) {
218 return fFunc110(x[0],x[1]);
219 }
220 if (fType==1110) {
221 return fFunc1110(x[0],x[1],x[2]);
222 }
223 return 0;
224}
225
226////////////////////////////////////////////////////////////////////////////////
227/// Eval member function of object o at point x.
228
230{
231 if (fIsStatic == kTRUE) return 0;
232 if (fType== 0) return (*o.*fTFunc0)();
233 if (fType==-10) return (*o.*fTFunc10)(*x);
234 if (fType==-110) return (*o.*fTFunc110)(x[0],x[1]);
235 if (fType==-1110) return (*o.*fTFunc1110)(x[0],x[1],x[2]);
236 return 0;
237}
238
239////////////////////////////////////////////////////////////////////////////////
240/// Eval primitive parametric function.
241
243{
244 return fFuncG(x,param);
245}
246
247#define RTFastFun__POLY(var) \
248{ \
249 Double_t res= param[var-1]+param[var]*x[0]; \
250 for (Int_t j=var-1 ;j>0;j--) res = param[j-1]+x[0]*res; \
251 return res; \
252}
253
254namespace TFastFun {
255 //
256 // Namespace with basic primitive functions registered by TFormulaPrimitive
257 // all function registered by TFormulaPrimitive can be used in TFormula
258 //
263 inline Double_t FPoln(Double_t *x, Double_t *param, Int_t npar);
264 Double_t FPol0(Double_t * /*x*/, Double_t *param){ return param[0];}
265 Double_t FPol1(Double_t *x, Double_t *param){ return param[0]+param[1]*x[0];}
266 Double_t FPol2(Double_t *x, Double_t *param){ return param[0]+x[0]*(param[1]+param[2]*x[0]);}
267 Double_t FPol3(Double_t *x, Double_t *param){ return param[0]+x[0]*(param[1]+x[0]*(param[2]+param[3]*x[0]));}
275 //
276 //
289 Double_t Sqrt(Double_t x) {return x>0?sqrt(x):0;}
290 //
291 Double_t Sign(Double_t x){return (x<0)? -1:1;}
294 //logical
295 Double_t XandY(Double_t x, Double_t y){ return (x*y>0.1);}
296 Double_t XorY(Double_t x, Double_t y) { return (x+y>0.1);}
303 Double_t XNot(Double_t x){ return (x<0.1);}
304};
305
306////////////////////////////////////////////////////////////////////////////////
307/// Find the formula in the list of formulas.
308
310{
312 if (!fgListOfFunction) {
314 }
315 Int_t nobjects = fgListOfFunction->GetEntries();
316 for (Int_t i = 0; i < nobjects; ++i) {
318 if (formula && 0==strcmp(name, formula->GetName())) return formula;
319 }
320 return 0;
321}
322
323////////////////////////////////////////////////////////////////////////////////
324/// Find the formula in the list of formulas.
325
327{
329 if (!fgListOfFunction) {
331 }
332 Int_t nobjects = fgListOfFunction->GetEntries();
333 for (Int_t i = 0; i < nobjects; ++i) {
335 if (prim) {
336 bool match = ( ((UInt_t)prim->fNArguments) == nargs );
337 if (match && 0==strcmp(name, prim->GetName())) return prim;
338 }
339 }
340 return 0;
341}
342
343////////////////////////////////////////////////////////////////////////////////
344/// Find the formula in the list of formulas.
345
347{
348 // let's count the argument(s)
349 if (args) {
350 Int_t nargs = 0;
351 if (args[0]!=')') {
352 nargs = 1;
353 int nest = 0;
354 for(UInt_t c = 0; c < strlen(args); ++c ) {
355 switch (args[c]) {
356 case '(': ++nest; break;
357 case ')': --nest; break;
358 case '<': ++nest; break;
359 case '>': --nest; break;
360 case ',': nargs += (nest==0); break;
361 }
362 }
363 }
364 return FindFormula(name,nargs);
365 } else {
366 return FindFormula(name);
367 }
368 return 0;
369}
370
371////////////////////////////////////////////////////////////////////////////////
372/// FPoln.
373
375{
376 Double_t res = 0; Double_t temp=1;
377 for (Int_t j=npar ;j>=0;j--) {
378 res += temp*param[j];
379 temp *= *x;
380 }
381 return res;
382}
383
384////////////////////////////////////////////////////////////////////////////////
385/// Gauss.
386
388{
389 if (sigma == 0) return 1.e30;
390 Double_t arg = (x-mean)/sigma;
391 return TMath::Exp(-0.5*arg*arg);
392}
393
394////////////////////////////////////////////////////////////////////////////////
395/// Normalize gauss.
396
398{
399 if (sigma == 0) return 0;
400 Double_t arg = (x-mean)/sigma;
401 return TMath::Exp(-0.5*arg*arg)/(2.50662827463100024*sigma); //sqrt(2*Pi)=2.50662827463100024
402}
403
404////////////////////////////////////////////////////////////////////////////////
405/// Built-in functions.
406
408{
410 if (fgListOfFunction==0) {
411 fgListOfFunction = new TObjArray(1000);
413 }
414#ifdef R__COMPLETE_MEM_TERMINATION
415 static TFormulaPrimitiveCleanup gCleanup(&fgListOfFunction);
416#endif
417
418 //
419 // logical
420 //
421 AddFormula(new TFormulaPrimitive("XandY","XandY",TFastFun::XandY));
422 AddFormula(new TFormulaPrimitive("XorY","XorY",TFastFun::XorY));
423 AddFormula(new TFormulaPrimitive("XNot","XNot",TFastFun::XNot));
425 AddFormula(new TFormulaPrimitive("XleY","XleY",TFastFun::XleY));
427 AddFormula(new TFormulaPrimitive("XgeY","XgeY",TFastFun::XgeY));
429 AddFormula(new TFormulaPrimitive("XneY","XneY",TFastFun::XneY));
430 // addition + multiplication
431 AddFormula(new TFormulaPrimitive("PlusXY","PlusXY",TFastFun::PlusXY));
432 AddFormula(new TFormulaPrimitive("MinusXY","MinusXY",TFastFun::MinusXY));
433 AddFormula(new TFormulaPrimitive("MultXY","MultXY",TFastFun::MultXY));
434 AddFormula(new TFormulaPrimitive("DivXY","DivXY",TFastFun::DivXY));
435 AddFormula(new TFormulaPrimitive("XpYpZ","XpYpZ",TFastFun::XpYpZ));
436 AddFormula(new TFormulaPrimitive("XxYxZ","XxYxZ",TFastFun::XxYxZ));
437 AddFormula(new TFormulaPrimitive("XxYpZ","XxYpZ",TFastFun::XxYpZ));
438 AddFormula(new TFormulaPrimitive("XpYxZ","XpYxZ",TFastFun::XpYxZ));
439 //
440 //
441 AddFormula(new TFormulaPrimitive("Gaus","Gaus",TFastFun::Gaus));
442 AddFormula(new TFormulaPrimitive("Gausn","Gausn",TFastFun::Gausn));
443 AddFormula(new TFormulaPrimitive("Landau","Landau",TFastFun::Landau));
444 AddFormula(new TFormulaPrimitive("Landaun","Landaun",TFastFun::Landaun));
445 //
446 //
447 // polynoms
448 //
449 //
460 AddFormula(new TFormulaPrimitive("Pol10","Pol10",(GenFuncG)TFastFun::FPol10,11));
461 //
462 // pows
463 AddFormula(new TFormulaPrimitive("Pow2","Pow2",TFastFun::Pow2));
464 AddFormula(new TFormulaPrimitive("Pow3","Pow3",TFastFun::Pow3));
465 AddFormula(new TFormulaPrimitive("Pow4","Pow4",TFastFun::Pow4));
466 AddFormula(new TFormulaPrimitive("Pow5","Pow5",TFastFun::Pow5));
467 //
468 //
469 AddFormula(new TFormulaPrimitive("TMath::Cos","TMath::Cos",cos)); // 10
470 AddFormula(new TFormulaPrimitive("cos","cos",cos)); // 10
471 AddFormula(new TFormulaPrimitive("TMath::Sin","TMath::Sin",sin)); // 11
472 AddFormula(new TFormulaPrimitive("sin","sin",sin)); // 11
473 AddFormula(new TFormulaPrimitive("TMath::Tan","TMath::Tan",tan)); // 12
474 AddFormula(new TFormulaPrimitive("tan","tan",tan)); // 12
475 AddFormula(new TFormulaPrimitive("TMath::ACos","TMath::ACos",acos)); // 13
476 AddFormula(new TFormulaPrimitive("acos","acos",acos)); // 13
477 AddFormula(new TFormulaPrimitive("TMath::ASin","TMath::ASin",asin)); // 14
478 AddFormula(new TFormulaPrimitive("asin","asin",asin)); // 14
479 AddFormula(new TFormulaPrimitive("TMath::ATan","TMath::ATan",atan)); // 15
480 AddFormula(new TFormulaPrimitive("atan","atan",atan)); // 15
481 AddFormula(new TFormulaPrimitive("TMath::ATan2","TMath::ATan2",atan2)); // 16
482 AddFormula(new TFormulaPrimitive("atan2","atan2",atan2)); // 16
483 // kpow = 20, ksq = 21, ksqrt = 22,
484 AddFormula(new TFormulaPrimitive("pow","pow",TMath::Power)); //20
485 AddFormula(new TFormulaPrimitive("sq","sq",TFastFun::Pow2)); //21
486 AddFormula(new TFormulaPrimitive("sqrt","sqrt",TFastFun::Sqrt)); //22
487 // kmin = 24, kmax = 25,
488 AddFormula(new TFormulaPrimitive("min","min",(GenFunc110)TMath::Min)); //24
489 AddFormula(new TFormulaPrimitive("max","max",(GenFunc110)TMath::Max)); //25
490 // klog = 30, kexp = 31, klog10 = 32,
491 AddFormula(new TFormulaPrimitive("log","log",TMath::Log)); //30
492 AddFormula(new TFormulaPrimitive("exp","exp",TMath::Exp)); //31
493 AddFormula(new TFormulaPrimitive("log10","log10",TMath::Log10)); //32
494 //
495 // cosh 70 acosh 73
496 // sinh 71 asinh 74
497 // tanh 72 atanh 75
498 //
499 AddFormula(new TFormulaPrimitive("TMath::CosH","TMath::Cosh",cosh)); // 70
500 AddFormula(new TFormulaPrimitive("cosh","cosh",cosh)); // 70
501 AddFormula(new TFormulaPrimitive("TMath::SinH","TMath::SinH",sinh)); // 71
502 AddFormula(new TFormulaPrimitive("sinh","sinh",sinh)); // 71
503 AddFormula(new TFormulaPrimitive("TMath::TanH","TMath::Tanh",tanh)); // 72
504 AddFormula(new TFormulaPrimitive("tanh","tanh",tanh)); // 72
505 AddFormula(new TFormulaPrimitive("TMath::ACosH","TMath::ACosh",TMath::ACosH)); // 73
506 AddFormula(new TFormulaPrimitive("acosh","acosH",TMath::ACosH)); // 73
507 AddFormula(new TFormulaPrimitive("TMath::ASinH","TMath::ASinh",TMath::ASinH)); // 74
508 AddFormula(new TFormulaPrimitive("acosh","acosH",TMath::ASinH)); // 74
509 AddFormula(new TFormulaPrimitive("TMath::ATanH","TMath::ATanh",TMath::ATanH)); // 75
510 AddFormula(new TFormulaPrimitive("atanh","atanh",TMath::ATanH)); // 75
511 //
512 AddFormula(new TFormulaPrimitive("TMath::Abs","TMath::Abs",TMath::Abs));
513 AddFormula(new TFormulaPrimitive("TMath::BreitWigner","TMath::BreitWigner",TMath::BreitWigner));
514
515 //Disable direct access to TMath::Landau for now because of the default parameter.
516 //AddFormula(new TFormulaPrimitive("TMath::Landau","TMath::Landau",(TFormulaPrimitive::GenFunc1110)TMath::Landau));
517
519 return 1;
520}
521
522 } // end namespace v5
523
524} // end namespace ROOT
PyObject * fType
#define c(i)
Definition: RSha256.hxx:101
int Int_t
Definition: RtypesCore.h:41
unsigned int UInt_t
Definition: RtypesCore.h:42
const Bool_t kFALSE
Definition: RtypesCore.h:88
double Double_t
Definition: RtypesCore.h:55
const Bool_t kTRUE
Definition: RtypesCore.h:87
#define ClassImp(name)
Definition: Rtypes.h:365
static TVirtualMutex * gTFormulaPrimativeListMutex
#define RTFastFun__POLY(var)
char name[80]
Definition: TGX11.cxx:109
double atan2(double, double)
double tanh(double)
double cosh(double)
double acos(double)
double sinh(double)
double cos(double)
double atan(double)
double tan(double)
double sqrt(double)
double sin(double)
double asin(double)
#define R__LOCKGUARD2(mutex)
The Formula Primitive class.
GenFunc1110 fFunc1110
pointer to the function
static Int_t AddFormula(TFormulaPrimitive *formula)
Add formula to the list of primitive formulas.
Double_t(* GenFuncG)(const Double_t *, const Double_t *)
TFormulaPrimitive()
Default constructor.
TFunc110 fTFunc110
pointer to member function
GenFunc10 fFunc10
pointer to the function
static TFormulaPrimitive * FindFormula(const char *name)
Find the formula in the list of formulas.
TFunc10 fTFunc10
pointer to member function
GenFunc110 fFunc110
pointer to the function
TFunc0 fTFunc0
pointer to the TFormula generic function
static Int_t BuildBasicFormulas()
list of global primitive formulas
GenFunc0 fFunc0
pointer to the TFormula generic function
Double_t Eval(Double_t *x)
Eval primitive function at point x.
Double_t(* GenFunc110)(Double_t, Double_t)
TFunc1110 fTFunc1110
pointer to member function
static TObjArray * fgListOfFunction
virtual void SetOwner(Bool_t enable=kTRUE)
Set whether this collection is the owner (enable==true) of its content.
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:29
virtual const char * GetName() const
Returns name of object.
Definition: TNamed.h:47
An array of TObjects.
Definition: TObjArray.h:37
virtual void AddLast(TObject *obj)
Add object in the next empty slot in the array.
Definition: TObjArray.cxx:177
Int_t GetEntries() const
Return the number of objects in array (i.e.
Definition: TObjArray.cxx:522
TObject * At(Int_t idx) const
Definition: TObjArray.h:166
Mother of all ROOT objects.
Definition: TObject.h:37
This class implements a mutex interface.
Definition: TVirtualMutex.h:34
const Double_t sigma
Double_t y[n]
Definition: legend1.C:17
Double_t x[n]
Definition: legend1.C:17
Double_t Landau(Double_t x, Double_t mean, Double_t sigma)
Double_t Pow3(Double_t x)
Double_t XorY(Double_t x, Double_t y)
Double_t Abs(Double_t x)
Double_t XpYpZ(Double_t x, Double_t y, Double_t z)
Double_t Pow4(Double_t x)
Double_t FPol7(Double_t *x, Double_t *param)
Double_t XneY(Double_t x, Double_t y)
Double_t Pow2(Double_t x)
Double_t FPol0(Double_t *, Double_t *param)
Double_t XlY(Double_t x, Double_t y)
Double_t XxYpZ(Double_t x, Double_t y, Double_t z)
Double_t FPoln(Double_t *x, Double_t *param, Int_t npar)
FPoln.
Double_t XNot(Double_t x)
Double_t XxYxZ(Double_t x, Double_t y, Double_t z)
Double_t FPol1(Double_t *x, Double_t *param)
Double_t Nint(Double_t x)
Double_t XgeY(Double_t x, Double_t y)
Double_t XpYxZ(Double_t x, Double_t y, Double_t z)
Double_t Gausn(Double_t x, Double_t mean, Double_t sigma)
Normalize gauss.
Double_t PlusXY(Double_t x, Double_t y)
Double_t Gaus(Double_t x, Double_t mean, Double_t sigma)
Gauss.
Double_t MinusXY(Double_t x, Double_t y)
Double_t Landaun(Double_t x, Double_t mean, Double_t sigma)
Double_t FPol4(Double_t *x, Double_t *param)
Double_t XandY(Double_t x, Double_t y)
Double_t XeY(Double_t x, Double_t y)
Double_t XleY(Double_t x, Double_t y)
Double_t Sqrt(Double_t x)
Double_t FPol9(Double_t *x, Double_t *param)
Double_t FPol6(Double_t *x, Double_t *param)
Double_t FPol10(Double_t *x, Double_t *param)
Double_t DivXY(Double_t x, Double_t y)
Double_t FPol3(Double_t *x, Double_t *param)
Double_t XgY(Double_t x, Double_t y)
Double_t Pow5(Double_t x)
Double_t FPol2(Double_t *x, Double_t *param)
Double_t FPol8(Double_t *x, Double_t *param)
Double_t Sign(Double_t x)
Double_t FPol5(Double_t *x, Double_t *param)
Double_t MultXY(Double_t x, Double_t y)
void TMath_GenerInterface()
VSD Structures.
Definition: StringConv.hxx:21
Int_t Nint(T x)
Round to nearest integer. Rounds half integers to the nearest even integer.
Definition: TMath.h:703
Short_t Max(Short_t a, Short_t b)
Definition: TMathBase.h:212
Double_t Exp(Double_t x)
Definition: TMath.h:717
Double_t ASinH(Double_t)
Definition: TMath.cxx:64
Double_t BreitWigner(Double_t x, Double_t mean=0, Double_t gamma=1)
Calculate a Breit Wigner function with mean and gamma.
Definition: TMath.cxx:437
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
Double_t ACosH(Double_t)
Definition: TMath.cxx:77
Double_t Log(Double_t x)
Definition: TMath.h:750
LongDouble_t Power(LongDouble_t x, LongDouble_t y)
Definition: TMath.h:725
Short_t Min(Short_t a, Short_t b)
Definition: TMathBase.h:180
Double_t ATanH(Double_t)
Definition: TMath.cxx:90
Double_t Log10(Double_t x)
Definition: TMath.h:754
Short_t Abs(Short_t d)
Definition: TMathBase.h:120