Definition at line 74 of file RemoveMathFromGDML.py.
def RemoveMathFromGDML.GDMLexpressionRemover.__init__ |
( |
|
self, |
|
|
|
options = None |
|
) |
| |
Definition at line 75 of file RemoveMathFromGDML.py.
79 if not self.options.NoROOTformula:
81 self.
formula = self.ROOT.TFormula(
"GDMLexpressionRemoverFormula",
"0");
def purify_ROOT(self, expression)
def __init__(self, options=None)
def purify_native(self, expression)
def RemoveMathFromGDML.GDMLexpressionRemover.initROOT |
( |
|
self | ) |
|
Definition at line 91 of file RemoveMathFromGDML.py.
95 raise ConfigurationError \
96 (
"Can't load ROOT module: I can't use ROOT to evaluate formulas.")
97 ROOT.gErrorIgnoreLevel = ROOT.kFatal
98 f = ROOT.TFormula(
"FTest",
"1/2*2");
101 """This script won't work with ROOT version (%s);\n""" 102 """Please set upa recent version 5.\n""" 103 """(quick test: 'TFormula("F", "1/2*2").Eval(0.)' should return 1)""" 104 % ROOT.gROOT.GetVersion()
def RemoveMathFromGDML.GDMLexpressionRemover.pass_floats |
( |
|
self, |
|
|
|
expression |
|
) |
| |
def RemoveMathFromGDML.GDMLexpressionRemover.purify_native |
( |
|
self, |
|
|
|
expression |
|
) |
| |
Definition at line 114 of file RemoveMathFromGDML.py.
116 except ValueError:
pass 120 sanitized = self.
sanitize(expression)
def purify_native(self, expression)
def pass_floats(self, expression)
def RemoveMathFromGDML.GDMLexpressionRemover.purify_ROOT |
( |
|
self, |
|
|
|
expression |
|
) |
| |
Definition at line 126 of file RemoveMathFromGDML.py.
128 except ValueError:
pass 131 if self.formula.Compile(expression) == 0:
132 return str(self.formula.Eval(0.))
def purify_ROOT(self, expression)
def pass_floats(self, expression)
def RemoveMathFromGDML.GDMLexpressionRemover.sanitize |
( |
|
s | ) |
|
|
static |
RemoveMathFromGDML.GDMLexpressionRemover.constants |
RemoveMathFromGDML.GDMLexpressionRemover.environment |
RemoveMathFromGDML.GDMLexpressionRemover.formula |
RemoveMathFromGDML.GDMLexpressionRemover.options |
RemoveMathFromGDML.GDMLexpressionRemover.purify |
RemoveMathFromGDML.GDMLexpressionRemover.ROOT |
The documentation for this class was generated from the following file: