My question is:
AFAIU I’m able to call only main() function when I’m using CINT. No other function to be called. Actaully that is the problem, Is there any way to call other function with some specific parameters. Of if not it might be somebody having the similar problems before wrote somewhat of the dispatcher function by the means of the which would be possible to call other function then the main() one.
For instance, let CINT file looks like this:
TROOT::ProcessLine and TInterpreter::ProcessLine are not equivalent.
TROOT::ProcessLine adds several features before calling TInterpreter::ProcessLine.
If you are using pure Cint and want to call an interpreted function without using main(), you can do that in several different ways. That shouldn’t be so tricky. Cint calls main() if it finds one, but if there isn’t, interactive command interface is invoked. Then you can call it using ‘p function(0)’ or ‘{ function(0); }’.
Alternatively, you can use Cint APIs. Please read cint/doc/ref.txt. I guess G__calc() and G__loadfile() are of your interest.