yoda is hosted by Hepforge, IPPP Durham
YODA - Yet more Objects for Data Analysis  1.9.0
Bin.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // This file is part of YODA -- Yet more Objects for Data Analysis
4 // Copyright (C) 2008-2021 The YODA collaboration (see AUTHORS for details)
5 //
6 #ifndef YODA_Bin_h
7 #define YODA_Bin_h
8 
9 #include <string>
10 #include <utility>
11 
12 namespace YODA {
13 
14 
20  class Bin {
21  public:
22 
24  virtual ~Bin() { }
25 
28 
30  virtual void reset() = 0;
31 
33 
34 
37 
41  virtual size_t dim() = 0;
42 
44  virtual size_t fillDim() = 0;
45 
47 
48 
51 
53  virtual double numEntries() const = 0;
54 
56  virtual double effNumEntries() const = 0;
57 
59  virtual double sumW() const = 0;
60 
62  virtual double sumW2() const = 0;
63 
65 
66 
68 
69 
70  };
71 
72 
73 }
74 
75 
76 
77 #endif
virtual double numEntries() const =0
The number of entries (fractional fills are possible)
Base class for bins in 1D and 2D histograms.
Definition: Bin.h:20
virtual void reset()=0
Reset this bin.
virtual size_t fillDim()=0
Dimension of the fill space.
virtual double effNumEntries() const =0
The effective number of entries.
virtual ~Bin()
Virtual destructor for inheritance.
Definition: Bin.h:24
virtual double sumW() const =0
The sum of weights.
virtual size_t dim()=0
virtual double sumW2() const =0
The sum of weights squared.