# Lorentz Boost

**URL:** <https://root-forum.cern.ch/t/lorentz-boost/53072>\
**Category:** Newbie\
**Created:** [January 12, 2023, 5:30pm UTC](https://root-forum.cern.ch/t/lorentz-boost/53072 "2023-01-12T17:30:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vkireyeu](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/v/a8b319/32.png) [@vkireyeu](https://root-forum.cern.ch/u/vkireyeu)\
**Post date:** [January 12, 2023, 5:30pm UTC](https://root-forum.cern.ch/t/lorentz-boost/53072/1 "2023-01-12T17:30:14Z")

</div>

If I remember well, a good class TLorentzVector was previously in ROOT. Using it one could easily do boosts to some other frames like:

```auto
TLorentzVector v;
v.Boost(bx, by, bz);

```

Now instead of this user-friendly class the Reference Guide suggest to use two independent classes ROOT::Math::PxPyPzEVector and ROOT::Math::Boost with zero information on how to use them together. Moreover, the ROOT::Math::Boost class seems to be broken.

```auto
ROOT::Math::Boost b(bx, by, bz);
$ undefined reference to `ROOT::Math::Boost::SetComponents(double, double, double)'

```

So, what is now the procedure of boosts to another frame? If there is a working method or it’s better to still use the old TLorentzVector class?

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [January 12, 2023, 5:56pm UTC](https://root-forum.cern.ch/t/lorentz-boost/53072/2 "2023-01-12T17:56:20Z")

</div>

You need to link your utility against: `-lGenVector`

---

<div class="post-metadata">

**Author:** ![vkireyeu](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/v/a8b319/32.png) [@vkireyeu](https://root-forum.cern.ch/u/vkireyeu)\
**Post date:** [January 13, 2023, 10:48am UTC](https://root-forum.cern.ch/t/lorentz-boost/53072/3 "2023-01-13T10:48:00Z")

</div>

Thank you, but the main question was about boosts.  
So now with the new ROOT::Math::LorentzVector and ROOT::Math::Boost classes it’s obsolete and one should use the old TLorentzVector class (or to write it’s own functions)?

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [January 13, 2023, 10:50am UTC](https://root-forum.cern.ch/t/lorentz-boost/53072/4 "2023-01-13T10:50:44Z")

</div>

[TLorentzVector](https://root.cern/doc/master/classTLorentzVector.html)

---

<div class="post-metadata">

**Author:** ![vkireyeu](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/v/a8b319/32.png) [@vkireyeu](https://root-forum.cern.ch/u/vkireyeu)\
**Post date:** [January 13, 2023, 11:24am UTC](https://root-forum.cern.ch/t/lorentz-boost/53072/5 "2023-01-13T11:24:02Z")

</div>

Actually, I found this by myself.  
One needs to construct another vector:

```auto
      ROOT::Math::PxPyPzEVector p(px, py, pz, e);
      ROOT::Math::Boost b(bx, by, bz);
      ROOT::Math::PxPyPzEVector p2=b(p);

```

Better to have it in the ref. guide.
