# Boost to rest frame with TLorentzVector made with SetPtPhiEtaM

**URL:** <https://root-forum.cern.ch/t/boost-to-rest-frame-with-tlorentzvector-made-with-setptphietam/33924>\
**Category:** Newbie\
**Created:** [May 6, 2019, 7:48pm UTC](https://root-forum.cern.ch/t/boost-to-rest-frame-with-tlorentzvector-made-with-setptphietam/33924 "2019-05-06T19:48:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![trenta\_coollime](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/trenta_coollime/32/19159_2.png) [@trenta\_coollime](https://root-forum.cern.ch/u/trenta_coollime)\
**Post date:** [May 6, 2019, 7:48pm UTC](https://root-forum.cern.ch/t/boost-to-rest-frame-with-tlorentzvector-made-with-setptphietam/33924/1 "2019-05-06T19:48:23Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [May 7, 2019, 6:23pm UTC](https://root-forum.cern.ch/t/boost-to-rest-frame-with-tlorentzvector-made-with-setptphietam/33924/2 "2019-05-07T18:23:38Z")

</div>

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](https://root.cern.ch/doc/master/LorentzVectorPage.html) for an answer to your question.

Cheers,  
D

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [May 21, 2019, 6:23pm UTC](https://root-forum.cern.ch/t/boost-to-rest-frame-with-tlorentzvector-made-with-setptphietam/33924/3 "2019-05-21T18:23:43Z")

</div>

Closed on May 21, 2019, 6:23pm UTC

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