# Usage of Beta and Gamma factor in TLorentzVector

**URL:** <https://root-forum.cern.ch/t/usage-of-beta-and-gamma-factor-in-tlorentzvector/33942>\
**Category:** ROOT\
**Created:** [May 7, 2019, 2:18pm UTC](https://root-forum.cern.ch/t/usage-of-beta-and-gamma-factor-in-tlorentzvector/33942 "2019-05-07T14:18:44Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [May 7, 2019, 2:23pm UTC](https://root-forum.cern.ch/t/usage-of-beta-and-gamma-factor-in-tlorentzvector/33942/2 "2019-05-07T14:23:46Z")

</div>

Try:

```auto
TLorentzVector scalar;
scalar.SetPtEtaPhiM(ip->pt(), ip->eta(), ip->phi(), ip->mass());

```

See also:

> [@Boost to rest frame with TLorentzVector made with SetPtPhiEtaM](https://root-forum.cern.ch/t/boost-to-rest-frame-with-tlorentzvector-made-with-setptphietam/33924/2):
>
> 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

---

_[View the full topic](https://root-forum.cern.ch/t/usage-of-beta-and-gamma-factor-in-tlorentzvector/33942)._
