Belle II Software
light-2406-ragdoll
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
ROOT::Math::PxPyPzMVector
PCmsLabTransform::labToCms
(
const
ROOT::Math::PxPyPzMVector& vector)
14
{
15
PCmsLabTransform
T;
16
return
T.
rotateLabToCms
() * vector;
17
}
18
19
ROOT::Math::PxPyPzMVector
PCmsLabTransform::cmsToLab
(
const
ROOT::Math::PxPyPzMVector& vector)
20
{
21
PCmsLabTransform
T;
22
return
T.
rotateCmsToLab
() * vector;
23
}
24
25
ROOT::Math::PxPyPzEVector
PCmsLabTransform::labToCms
(
const
ROOT::Math::PxPyPzEVector& vector)
26
{
27
PCmsLabTransform
T;
28
return
T.
rotateLabToCms
() * vector;
29
}
30
31
ROOT::Math::PxPyPzEVector
PCmsLabTransform::cmsToLab
(
const
ROOT::Math::PxPyPzEVector& vector)
32
{
33
PCmsLabTransform
T;
34
return
T.
rotateCmsToLab
() * vector;
35
}
36
37
PCmsLabTransform::PCmsLabTransform
() =
default
;
38
39
Belle2::PCmsLabTransform
Class to hold Lorentz transformations from/to CMS and boost vector.
Definition:
PCmsLabTransform.h:30
Belle2::PCmsLabTransform::labToCms
static ROOT::Math::PxPyPzMVector labToCms(const ROOT::Math::PxPyPzMVector &vec)
Transforms Lorentz vector into CM System.
Definition:
PCmsLabTransform.cc:13
Belle2::PCmsLabTransform::rotateLabToCms
const ROOT::Math::LorentzRotation rotateLabToCms() const
Returns Lorentz transformation from Lab to CMS.
Definition:
PCmsLabTransform.h:67
Belle2::PCmsLabTransform::PCmsLabTransform
PCmsLabTransform()
Constructor.
Belle2::PCmsLabTransform::cmsToLab
static ROOT::Math::PxPyPzMVector cmsToLab(const ROOT::Math::PxPyPzMVector &vec)
Transforms Lorentz vector into Laboratory System.
Definition:
PCmsLabTransform.cc:19
Belle2::PCmsLabTransform::rotateCmsToLab
const ROOT::Math::LorentzRotation rotateCmsToLab() const
Returns Lorentz transformation from CMS to Lab.
Definition:
PCmsLabTransform.h:76
Belle2
Abstract base class for different kinds of events.
Definition:
ClusterUtils.h:24
analysis
utility
src
PCmsLabTransform.cc
Generated on Tue Jul 9 2024 23:27:37 for Belle II Software by
1.9.6