Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooDataHistSliceIter.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Project: RooFit *
3 * Package: RooFitCore *
4 * File: $Id$
5 * Authors: *
6 * WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu *
7 * DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
8 * *
9 * Copyright (c) 2000-2005, Regents of the University of California *
10 * and Stanford University. All rights reserved. *
11 * *
12 * Redistribution and use in source and binary forms, *
13 * with or without modification, are permitted according to the terms *
14 * listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
15 *****************************************************************************/
16#ifndef ROO_DATA_HIST_SLICE_ITER
17#define ROO_DATA_HIST_SLICE_ITER
18
19#include "TIterator.h"
20#include "RooArgSet.h"
21
22class RooDataHist;
23
25
27public:
28 // Constructors, assignment etc.
30 ~RooDataHistSliceIter() override ;
31
32 // Iterator implementation
33 const TCollection* GetCollection() const override ;
34 TObject* Next() override ;
35 void Reset() override ;
36 bool operator!=(const TIterator &aIter) const override ;
37 TObject *operator*() const override ;
38protected:
39
40 friend class RooDataHist ;
42
49
50 /// Prohibit iterator assignment
51 TIterator& operator=(const TIterator&) override {
52 return *this ;
53 }
54
55 ClassDefOverride(RooDataHistSliceIter,0) // Iterator over a one-dimensional slice of a RooDataHist
56};
57
58#endif
TIterator * pTIterator
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
Common abstract base class for objects that represent a value and a "shape" in RooFit.
Definition RooAbsArg.h:77
Iterates over all bins in a RooDataHist that occur in a slice defined by the bin coordinates of the i...
~RooDataHistSliceIter() override
Destructor.
TObject * Next() override
Iterator increment operator.
TIterator & operator=(const TIterator &) override
Prohibit iterator assignment.
void Reset() override
Reset iterator position to beginning.
const TCollection * GetCollection() const override
Dummy.
bool operator!=(const TIterator &aIter) const override
Returns true if position of this iterator differs from position of iterator 'aIter'.
TObject * operator*() const override
Iterator dereference operator, not functional for this iterator.
Container class to hold N-dimensional binned data.
Definition RooDataHist.h:40
Collection abstract base class.
Definition TCollection.h:65
Iterator abstract base class.
Definition TIterator.h:30
Mother of all ROOT objects.
Definition TObject.h:41