Thank you, It worked! Rafo On 06/18/2014 07:06 PM, McCormick, Jeremy I. wrote: > Thanks. > > I think this is the specific method you want to use… > > http://java.freehep.org/freehep-physics/apidocs/hep/physics/vec/VecOp.html#add%28hep.physics.vec.HepLorentzVector,%20hep.physics.vec.HepLorentzVector%29 > > On Jun 18, 2014, at 11:03 AM, Sho Uemura <[log in to unmask]> wrote: > >> http://java.freehep.org/freehep-physics/apidocs/hep/physics/vec/VecOp.html >> >> On Wed, 18 Jun 2014, McCormick, Jeremy I. wrote: >> >>> Anyone have a good answer for this? >>> >>> On Jun 18, 2014, at 10:25 AM, Rafayel Paremuzyan <[log in to unmask]> wrote: >>> >>>> Dear jeremy, >>>> >>>> I am running a very simple code over Mock Data, >>>> and now I am trying to get Lorentz Vectors of two MCParticles, and >>>> reconstruct their invariant mass. >>>> >>>> In the following documentation >>>> http://www.lcsim.org/sites/lcsim/apidocs/index.html >>>> I found a method "asFourVector" which returns "HepLorentzVector" type >>>> object, >>>> however looks like "HepLorentzVector" has very limited methods, and in >>>> particular I didn't >>>> find a way to sum two "HepLorentzVector"s. >>>> >>>> There is also another class "Lorentz4Vector" which has much more methods >>>> including the sum. >>>> Now I am not sure how to get Lorentz4Vector from MCParticle. >>>> >>>> Is there a simple way of doing that? >>>> >>>> Rafayel >>>> >>> ######################################################################## >>> Use REPLY-ALL to reply to list >>> >>> To unsubscribe from the HPS-SOFTWARE list, click the following link: >>> https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=HPS-SOFTWARE&A=1 >>> > ######################################################################## > Use REPLY-ALL to reply to list > > To unsubscribe from the HPS-SOFTWARE list, click the following link: > https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=HPS-SOFTWARE&A=1 ######################################################################## Use REPLY-ALL to reply to list To unsubscribe from the HPS-SOFTWARE list, click the following link: https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=HPS-SOFTWARE&A=1