Belle II Software light-2406-ragdoll
CollisionInvariantMass.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 <TObject.h>
12
13namespace Belle2 {
21 class CollisionInvariantMass: public TObject {
22 public:
23
25 bool operator==(const CollisionInvariantMass& other) const
26 {
27 return other.m_mass == m_mass && other.m_massError == m_massError;
28 }
29
35 void setMass(double mass, double error, double spread)
36 {
37 m_mass = mass;
38 m_massError = error;
39 m_massSpread = spread;
40 }
41
43 double getMass() const
44 {
45 return m_mass;
46 }
47
49 double getMassError() const
50 {
51 return m_massError;
52 }
53
55 double getMassSpread() const
56 {
57 return m_massSpread;
58 }
59
60 private:
61
63 Double32_t m_mass{0};
64
66 Double32_t m_massError{0};
67
69 Double32_t m_massSpread{0};
70
72 };
73
75} //Belle2 namespace
This class contains the measured average center-of-mass energy, which is equal to the invariant mass ...
Double32_t m_massSpread
Width of the distribution of the center-of-mass energy / invariant mass of the colliding beams.
Double32_t m_mass
Average center-of-mass energy = invariant mass of the colliding beams.
void setMass(double mass, double error, double spread)
Set the CMS energy and its uncertainty.
double getMassError() const
Get the uncertainty of the measured average CMS energy.
ClassDef(CollisionInvariantMass, 1)
Measured average invariant mass of the colliding beams and its uncertainty.
Double32_t m_massError
Uncertainty of the average center-of-mass energy / invariant mass of the colliding beams.
double getMassSpread() const
Get the spread of the measured CMS energy.
bool operator==(const CollisionInvariantMass &other) const
equality operator
double getMass() const
Get the measured average CMS energy.
Abstract base class for different kinds of events.
Definition: ClusterUtils.h:24