[ROOT] how draw the .M() of the sum of TLorentzVector

From: Francesco Perfetto (francesco.perfetto@na.infn.it)
Date: Tue Jun 15 2004 - 17:45:14 MEST


Hi all,

I would like add 2 or more TLorentzVector for then take the .M().
After I open my root file with TBrowser in which there are the
TLorentzVector I do at command line:

root [1] .L $ROOTSYS/lib/libPhysics.so
root [2] res->Draw("(p4_pi1_eta_rec_fit + p4_pi2_eta_rec_fit).M()")

(WHERE p4_pi1_eta_rec_fit. and p4_pi2_eta_rec_fit. are 2 my
TLorentzVector)

but I have the following error:

*ERROR 30 :
 Bad numerical expression :"(p4_pi1_eta_rec_fit+p4_pi2_eta_rec_fit).M()"
root [3]

There is anyone that can help me?

Thanks in advance.
Francesco.



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:08 MET