[ROOT] function with TLorentzVector

From: Perfetto Francesco (Francesco.Perfetto@na.infn.it)
Date: Tue Sep 24 2002 - 18:55:09 MEST


Hi,
Which is the rigth mode to pass the spatial components of a TLorentzVector
variable to a function that I defined ?

I do this, but it don't work(give me a error) :
...
Double_t delta_egamma(TVector3 x, TVector3 y)
{
  ...
  return Norm1(x+y);

}

Int_t Main()
{
...
TLorentzVector p4datetasys_pip,p4datetasys_pim;

pluto2 = delta_egamma(p4datetasys_pip.Vect(),p4datetasys_pim.Vect());
..
}

					Thanks All
					Francesco.



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:11 MET