Belle II Software
light-2406-ragdoll
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
12
namespace
Belle2
{
21
class
ParticleWeightingBinLimits
{
22
double
m_lowerLimit
;
23
double
m_upperLimit
;
24
public
:
25
29
ParticleWeightingBinLimits
() {};
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
Belle2::ParticleWeightingBinLimits
Just pair of numbers - min and max values of bin border.
Definition:
ParticleWeightingBinLimits.h:21
Belle2::ParticleWeightingBinLimits::ParticleWeightingBinLimits
ParticleWeightingBinLimits()
Constructor.
Definition:
ParticleWeightingBinLimits.h:29
Belle2::ParticleWeightingBinLimits::m_upperLimit
double m_upperLimit
upper limit
Definition:
ParticleWeightingBinLimits.h:23
Belle2::ParticleWeightingBinLimits::m_lowerLimit
double m_lowerLimit
lower limit
Definition:
ParticleWeightingBinLimits.h:22
Belle2::ParticleWeightingBinLimits::ParticleWeightingBinLimits
ParticleWeightingBinLimits(double ul, double ll)
Constructor.
Definition:
ParticleWeightingBinLimits.h:36
Belle2::ParticleWeightingBinLimits::second
double second() const
Highest bin border.
Definition:
ParticleWeightingBinLimits.h:63
Belle2::ParticleWeightingBinLimits::first
double first() const
Lowest bin border.
Definition:
ParticleWeightingBinLimits.h:54
Belle2
Abstract base class for different kinds of events.
Definition:
ClusterUtils.h:24
analysis
dbobjects
include
ParticleWeightingBinLimits.h
Generated on Tue Jul 9 2024 23:26:14 for Belle II Software by
1.9.6