Does anyone know if a method has been implemented to allow for the overloading of operators in TTree->Draw(). For instance, if I have two branches in a TTree that are TLorentzVectors V1 and V2, I would like to make an invariant mass plot of the vector sum of these as:
tree->Draw("(V1+V2).M()")
This call currently returns
Error in TTreeFormula::Compile: Bad numerical expression : “(V1+V2).Pt()”
And I was wondering if there is a way around (other than writing the formula by hand) or if there are plans in a near future realease to implement this?
Thankyou