herwig
is hosted by
Hepforge
,
IPPP Durham
Herwig
7.3.0
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
f
g
h
i
l
m
o
p
r
s
t
u
w
z
Variables
Typedefs
a
b
c
d
h
i
j
k
l
m
o
p
s
t
v
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
c
d
e
h
i
m
o
p
r
s
t
u
v
w
x
Enumerations
Enumerator
Related Functions
b
c
d
e
f
g
h
k
m
o
p
s
t
Files
File List
File Members
All
Functions
Variables
Macros
Utilities
Statistics
Bin.h
1
// -*- C++ -*-
2
//
3
// Bin.hpp is a part of myStatistics
4
// Copyright (C) 2012-2019 Simon Platzer, The Herwig Collaboration
5
//
6
// myStatistics is licenced under version 3 of the GPL, see COPYING for details.
7
//
8
#ifndef MYSTATISTICS_Bin_hpp_included
9
#define MYSTATISTICS_Bin_hpp_included
10
11
#include <utility>
12
#include <cfloat>
13
14
#include "Counter.h"
15
16
namespace
Statistics {
17
22
class
Bin
23
:
public
Counter
{
24
25
public
:
26
30
explicit
Bin
(
const
std::pair<double,double>& newBoundaries =
31
std::make_pair(-DBL_MAX,DBL_MAX));
32
36
virtual
~Bin
();
37
41
const
std::pair<double,double>&
boundaries
()
const
{
return
theBoundaries
; }
42
43
public
:
44
48
Bin
&
operator+=
(
const
Bin
& other);
49
53
Bin
&
operator-=
(
const
Bin
& other);
54
55
public
:
56
60
void
fromXML
(
const
XML::Element
&);
61
65
XML::Element
toXML
()
const
;
66
67
private
:
68
72
std::pair<double,double>
theBoundaries
;
73
74
};
75
76
}
77
78
#endif
// MYSTATISTICS_Bin_hpp_included
Statistics::Bin
A bin in a (one dimensional) histogram.
Definition:
Bin.h:23
Statistics::Bin::operator+=
Bin & operator+=(const Bin &other)
Add a bin to this bin.
Statistics::Bin::~Bin
virtual ~Bin()
Destruct a bin.
Statistics::Bin::operator-=
Bin & operator-=(const Bin &other)
Subtract a bin from this bin.
Statistics::Bin::fromXML
void fromXML(const XML::Element &)
Fill bin data from an XML element.
Statistics::Bin::toXML
XML::Element toXML() const
Return an XML element for the data of this bin.
Statistics::Bin::boundaries
const std::pair< double, double > & boundaries() const
Return the bin boundaries.
Definition:
Bin.h:41
Statistics::Bin::Bin
Bin(const std::pair< double, double > &newBoundaries=std::make_pair(-DBL_MAX, DBL_MAX))
Construct a bin given boundaries.
Statistics::Bin::theBoundaries
std::pair< double, double > theBoundaries
The bin boundaries.
Definition:
Bin.h:72
Statistics::Counter
A (weighted) counter.
Definition:
Counter.h:19
XML::Element
Element represents a (tree of) XML elements.
Definition:
Element.h:56
Generated on Thu Jun 20 2024 17:50:53 for Herwig by
1.9.6