16 arg1 = (x[0] - par[1]) / par[2]
17 arg2 = (0.01 * 0.39894228) / par[2]
18 arg3 = par[0] / (1 + par[3])
20 gauss = arg3 * arg2 *
math.exp(-0.5 * arg1 * arg1)
27tpygaus =
ROOT.TF1(
"pygaus", pygaus, -4, 4, 4)
34 global tpygaus, window
40 def __init__(self, parent, width, height):
48 self.DrawButton.Connect(
"Clicked()", MyDraw)
52 self.ExitButton.SetCommand(
'TPython::Exec( "raise SystemExit" )')
57 self.SetWindowName(
"My first GUI")
59 self.Resize(self.GetDefaultSize())
66if __name__ ==
"__main__":
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.