00001 /********************************************************************** 00002 * * 00003 * Copyright (c) 2002 Lorenzo Moneta, CERN/IT * 00004 * <Lorenzo.Moneta.cern.ch> * 00005 * * 00006 * This library is free software; you can redistribute it and/or * 00007 * modify it under the terms of the GNU Lesser General Public * 00008 * License as published by the Free Software Foundation; either * 00009 * version 2.1 of the License, or (at your option) any later version. * 00010 * * 00011 * This library is distributed in the hope that it will be useful, * 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 00014 * Lesser General Public License for more details. * 00015 * * 00016 * You should have received a copy of the GNU Lesser General Public * 00017 * License along with this library (see file COPYING); if not, write * 00018 * to the Free Software Foundation, Inc., 59 Temple Place, Suite * 00019 * 330, Boston, MA 02111-1307 USA, or contact the author. * 00020 * * 00021 **********************************************************************/ 00022 00023 // Header file for class AIDA_Cloud2DIterator 00024 // 00025 // Authors : Lorenzo Moneta , Jakub Moscicki 00026 // Created : Fri Oct 4 16:30:41 2002 00027 // 00028 // Last update: Fri Oct 4 16:30:41 2002 00029 // 00030 #ifndef ANAPHE_AIDA_FITTER_FML_AIDA_Cloud2DITERATOR 00031 #define ANAPHE_AIDA_FITTER_FML_AIDA_Cloud2DITERATOR 1 00032 00033 #include "AIDA_FitDataIterator.h" 00034 00035 namespace AIDA { 00036 class ICloud2D; 00037 }; 00038 00039 00040 namespace Anaphe { 00041 namespace AIDA_Function_FML { 00042 class AIDA_RangeSet; 00043 } 00044 }; 00045 00046 namespace Anaphe { 00047 namespace AIDA_Fitter_FML { 00048 00049 00050 class AIDA_Cloud2DIterator : public AIDA_FitDataIterator { 00051 00052 public: 00053 AIDA_Cloud2DIterator(const AIDA::ICloud2D& h, int ix, int iy); 00054 virtual ~AIDA_Cloud2DIterator(); 00055 00056 private: 00057 // usually copying is non trivial, so we make this unaccessible 00058 AIDA_Cloud2DIterator(const AIDA_Cloud2DIterator & h); 00059 AIDA_Cloud2DIterator & operator = (const AIDA_Cloud2DIterator &); 00060 00061 public: 00062 00063 // copy data in FML vector 00064 void fillData(const std::vector<Anaphe::AIDA_Function_FML::AIDA_RangeSet * > & ranges); 00065 00066 protected: 00067 00068 00069 private: 00070 00071 const AIDA::ICloud2D * m_hist; 00072 // dimension of the data 00073 int m_dim; 00074 int xIndex, yIndex; 00075 00076 }; 00077 00078 } // end of namespace Anaphe::AIDA_Fitter_FML 00079 } 00080 #endif /* AIDA_Cloud2DITERATOR */