Boost to rest frame with TLorentzVector made with SetPtPhiEtaM

If I have a TLorentzVector(ip->pt(),ip->eta(),ip->phi(),ip->mass())
where ip is the generator level particle.

How can I boost this vector to the rest frame of its own particle?

Thank you.


TLorentzVector is a legacy class: it’s better to have a look at ROOT::Math::LorentzVector for an answer to your question.


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.