Belle II Software development
CollisionBoostVector.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 <TMatrixDSym.h>
12#include <TVector3.h>
13
14namespace Belle2 {
23 class CollisionBoostVector: public TObject {
24 public:
25
27 bool operator==(const CollisionBoostVector& other) const
28 {
29 return other.m_boost == m_boost && other.m_boostCovariance == m_boostCovariance;
30 }
31
36 void setBoost(const TVector3& boost, const TMatrixDSym& covariance)
37 {
38 m_boost = boost;
39 m_boostCovariance = covariance;
40 }
41
43 const TVector3& getBoost() const
44 {
45 return m_boost;
46 }
47
49 const TMatrixDSym& getBoostCovariance() const
50 {
51 return m_boostCovariance;
52 }
53
54 private:
55
57 TVector3 m_boost;
58
60 TMatrixDSym m_boostCovariance{3};
61
63 };
64
66} //Belle2 namespace
This class contains the measured average boost vector vec(beta) = (beta_x, beta_y,...
const TMatrixDSym & getBoostCovariance() const
Get the error matrix of the measured average boost vector.
TMatrixDSym m_boostCovariance
Covariance matrix of the boost vector.
TVector3 m_boost
Average boost vector of the center-of-mass system in the lab frame.
const TVector3 & getBoost() const
Get the measured average boost vector.
void setBoost(const TVector3 &boost, const TMatrixDSym &covariance)
Set the boost vector and its error matrix.
ClassDef(CollisionBoostVector, 1)
Measured average boost vector of CMS in lab frame and its uncertainty.
bool operator==(const CollisionBoostVector &other) const
equality operator
Abstract base class for different kinds of events.