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.

Hi,

TLorentzVector is a legacy class: it’s better to have a look at ROOT::Math::LorentzVector https://root.cern.ch/doc/master/LorentzVectorPage.html for an answer to your question.

Cheers,
D

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