8from __future__
import print_function
15 arg1 = (x[0]-par[1])/par[2]
16 arg2 = (0.01*0.39894228)/par[2]
17 arg3 = par[0]/(1+par[3])
19 gauss = arg3*arg2*
math.exp(-0.5*arg1*arg1)
25tpygaus =
ROOT.TF1(
'pygaus', pygaus, -4, 4, 4 )
31 global tpygaus, window
39 def __init__( self, parent, width, height ):
47 self.DrawButton.Connect(
'Clicked()',
"TPyDispatcher", m,
'Dispatch()' )
51 self.ExitButton.SetCommand(
'TPython::Exec( "raise SystemExit" )' )
56 self.SetWindowName(
'My first GUI' )
58 self.Resize( self.GetDefaultSize() )
65if __name__ ==
'__main__':
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.