Hello,
In my TTree I have two branches (formed from a two different classes, derived from TObject). In each branch I have a TLorentzVector objects: ‘lv1’ -in the first branch and ‘lv2’ in the second. Now I want to call TTree::Draw() with a function which accepts
the two vectors, something like this:
tree->Draw(“f(lv1,lv2)”)
Where the function ‘f’ is defined in one of my classes (I failed to use the TFormula-derived ‘f’ object).
The error message is:
Error: Failed to evaluate lv1
*** Interpreter error recovered ***
Error: class,struct,union or type (unknown) not defined (tmpfile):1:
What do I miss? After reading the documentation about TTree:Draw() function I thought that this is possible.
Please, give me an advice!
Alexander.