-
Notifications
You must be signed in to change notification settings - Fork 29
I Want To . . .
nsoblath edited this page Apr 29, 2014
·
3 revisions
<geometry>
...
</geometry>
Variables must first be defined:
<define name="my_variable" value="0.510"/>
And then they can be used by giving the variable name in square brackets:
<define name="z_length" value="[trap_length]"/>
The variable defined in the first line is used in the function provided on the second line.
<define name="trap_length" value="3.35e-3"/>
<define name="r_length" value="{[trap_length] / sqrt(2.)}"/>
Any function that can be evaluated in ROOT's TFormula class can be understood by Kassiopeia's function evaluation.