Dear all,
I’m trying to convert a c++ -root code to pyroot and I get an error at the TApplication section.
The code in c++ is below:
int main(int argc, char **argv)
{
TApplication app(“app”,&argc,argv);
Function(1);
//return 0;
app.Run();
}
How can i write this in python? I thought :
def main():
app = ROOT.TApplication(“app”, 0, 0)
Function(1)
app.Run()
but i get a TypeError:could not convert argument 2!
Thanx