yoda is hosted by Hepforge, IPPP Durham
YODA - Yet more Objects for Data Analysis 2.0.0
Fillable.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-2023 The YODA collaboration (see AUTHORS for details)
5//
6#ifndef YODA_Fillable_h
7#define YODA_Fillable_h
8
9namespace YODA {
10
11
13 class Fillable {
14 public:
15
17
18
20 virtual ~Fillable() = default;
21
22
24
26
27
29 virtual void reset() = 0;
30
32 virtual void scaleW(double scalefactor) = 0;
33
35
37
38
40 virtual size_t fillDim() const noexcept = 0;
41
43 virtual double numEntries(const bool includeoverflows=true) const = 0;
44
46 virtual double effNumEntries(const bool includeoverflows=true) const = 0;
47
49 virtual double sumW(const bool includeoverflows=true) const = 0;
50
52 virtual double sumW2(const bool includeoverflows=true) const = 0;
53
55
56 };
57
58
59}
60
61#endif
A base class for all fillable objects.
Definition Fillable.h:13
virtual double sumW(const bool includeoverflows=true) const =0
Get sum of weights in histo.
virtual double effNumEntries(const bool includeoverflows=true) const =0
Get the effective number of fills.
virtual ~Fillable()=default
Virtual destructor for inheritance.
virtual void scaleW(double scalefactor)=0
Rescale as if all fill weights had been different by factor scalefactor.
virtual double sumW2(const bool includeoverflows=true) const =0
Get sum of squared weights in histo.
virtual double numEntries(const bool includeoverflows=true) const =0
Get the number of fills.
virtual void reset()=0
Reset.
virtual size_t fillDim() const noexcept=0
Fill-dimension of this data object.
Anonymous namespace to limit visibility.