Belle II Software development
PCmsLabTransform.h
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#pragma once
10
11#include <mdst/dbobjects/CollisionBoostVector.h>
12#include <mdst/dbobjects/CollisionInvariantMass.h>
13#include <mdst/dbobjects/CollisionAxisCMS.h>
14#include <framework/database/DBObjPtr.h>
15#include <framework/utilities/LabToCms.h>
16
17#include <Math/LorentzRotation.h>
18#include <Math/Vector4D.h>
19
20namespace Belle2 {
25
35
36 public:
37
42
46 static ROOT::Math::XYZVector getBoostVector();
47
51 static double getCMSEnergy();
52
56 static ROOT::Math::PxPyPzEVector getBeamFourMomentum();
57
62 static const ROOT::Math::LorentzRotation rotateLabToCms();
63
68 static const ROOT::Math::LorentzRotation rotateCmsToLab();
69
75 static ROOT::Math::PxPyPzMVector labToCms(const ROOT::Math::PxPyPzMVector& vec);
76
82 static ROOT::Math::PxPyPzMVector cmsToLab(const ROOT::Math::PxPyPzMVector& vec);
83
89 static ROOT::Math::PxPyPzEVector labToCms(const ROOT::Math::PxPyPzEVector& vec);
90
96 static ROOT::Math::PxPyPzEVector cmsToLab(const ROOT::Math::PxPyPzEVector& vec);
97
98 };
99
101} // Belle2 namespace
102
103
104
105
static const ROOT::Math::LorentzRotation rotateCmsToLab()
Returns Lorentz transformation from CMS to Lab.
static ROOT::Math::PxPyPzMVector labToCms(const ROOT::Math::PxPyPzMVector &vec)
Transforms Lorentz vector into CM System.
PCmsLabTransform()
Constructor.
static ROOT::Math::PxPyPzMVector cmsToLab(const ROOT::Math::PxPyPzMVector &vec)
Transforms Lorentz vector into Laboratory System.
static const ROOT::Math::LorentzRotation rotateLabToCms()
Returns Lorentz transformation from Lab to CMS.
static ROOT::Math::PxPyPzEVector getBeamFourMomentum()
Returns LAB four-momentum of e+e-, i.e.
static double getCMSEnergy()
Returns CMS energy of e+e- (aka.
static ROOT::Math::XYZVector getBoostVector()
Returns boost vector (beta=p/E)
Abstract base class for different kinds of events.