Belle II Software  release-06-00-14
PCmsLabTransform.cc
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 
9 #include <analysis/utility/PCmsLabTransform.h>
10 
11 using namespace Belle2;
12 
13 TLorentzVector PCmsLabTransform::labToCms(const TLorentzVector& vector)
14 {
16  return T.rotateLabToCms() * vector;
17 }
18 
19 TLorentzVector PCmsLabTransform::cmsToLab(const TLorentzVector& vector)
20 {
22  return T.rotateCmsToLab() * vector;
23 }
24 
26 
27 
Class to hold Lorentz transformations from/to CMS and boost vector.
const TLorentzRotation rotateLabToCms() const
Returns Lorentz transformation from Lab to CMS.
PCmsLabTransform()
Constructor.
static TLorentzVector cmsToLab(const TLorentzVector &vec)
Transforms Lorentz vector into Laboratory System.
const TLorentzRotation rotateCmsToLab() const
Returns Lorentz transformation from CMS to Lab.
static TLorentzVector labToCms(const TLorentzVector &vec)
Transforms Lorentz vector into CM System.
Abstract base class for different kinds of events.