If I define a function in a C macro, for example:
double myfunction(double val = 0)
{
...
return something;
}
then the following works in PyRoot:
gROOT.ProcessLineSync('.L Cfunction.C')
tree.Draw("myfunction(evt)")
Is it possible for me to do this with a function defined in python instead of C?
Thanks.