Belle II Software development
ParticleWeightingBinLimits.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#include <framework/logging/Logger.h>
11
12namespace Belle2 {
22 double m_lowerLimit;
23 double m_upperLimit;
24 public:
25
30
36 ParticleWeightingBinLimits(double ul, double ll)
37 {
38 if (ul > ll) {
39 m_upperLimit = ul;
40 m_lowerLimit = ll;
41 } else if (ul < ll) {
42 m_upperLimit = ll;
43 m_lowerLimit = ul;
44
45 } else {
46 B2FATAL("Trying to create bin with equal limits");
47 }
48 }
49
54 double first() const
55 {
56 return m_lowerLimit;
57 }
58
63 double second() const
64 {
65 return m_upperLimit;
66 }
67 };
69} // Belle2 namespace
Just pair of numbers - min and max values of bin border.
ParticleWeightingBinLimits(double ul, double ll)
Constructor.
double second() const
Highest bin border.
double first() const
Lowest bin border.
Abstract base class for different kinds of events.