Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/RooDataHistSliceIter.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*****************************************************************************
0002  * Project: RooFit                                                           *
0003  * Package: RooFitCore                                                       *
0004  *    File: $Id$
0005  * Authors:                                                                  *
0006  *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
0007  *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
0008  *                                                                           *
0009  * Copyright (c) 2000-2005, Regents of the University of California          *
0010  *                          and Stanford University. All rights reserved.    *
0011  *                                                                           *
0012  * Redistribution and use in source and binary forms,                        *
0013  * with or without modification, are permitted according to the terms        *
0014  * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
0015  *****************************************************************************/
0016 #ifndef ROO_DATA_HIST_SLICE_ITER
0017 #define ROO_DATA_HIST_SLICE_ITER
0018 
0019 #include "TIterator.h"
0020 #include "RooArgSet.h"
0021 
0022 class RooDataHist;
0023 
0024 typedef TIterator* pTIterator ;
0025 
0026 class RooDataHistSliceIter : public TIterator {
0027 public:
0028   // Constructors, assignment etc.
0029   RooDataHistSliceIter(const RooDataHistSliceIter& other) ;
0030   ~RooDataHistSliceIter() override ;
0031 
0032   // Iterator implementation
0033   const TCollection* GetCollection() const override ;
0034   TObject* Next() override ;
0035   void Reset() override ;
0036   bool operator!=(const TIterator &aIter) const override ;
0037   TObject *operator*() const override ;
0038 protected:
0039 
0040   friend class RooDataHist ;
0041   RooDataHistSliceIter(RooDataHist& hist, RooAbsArg& sliceArg) ;
0042 
0043   RooDataHist* _hist ;
0044   RooAbsArg* _sliceArg ;
0045   Int_t      _baseIndex ;
0046   Int_t      _stepSize ;
0047   Int_t      _nStep ;
0048   Int_t      _curStep ;
0049 
0050   /// Prohibit iterator assignment
0051   TIterator& operator=(const TIterator&) override {
0052     return *this ;
0053   }
0054 
0055   ClassDefOverride(RooDataHistSliceIter,0) // Iterator over a one-dimensional slice of a RooDataHist
0056 };
0057 
0058 #endif