This website is no longer maintained. Its content may be obsolete. Please visit http://home.cern/ for current CERN information.
00001 // -*- C++ -*- 00002 // AID-GENERATED 00003 // ========================================================================= 00004 // This class was generated by AID - Abstract Interface Definition 00005 // DO NOT MODIFY, but use the org.freehep.aid.Aid utility to regenerate it. 00006 // ========================================================================= 00007 #ifndef AIDA_ICLOUD1D_H 00008 #define AIDA_ICLOUD1D_H 1 00009 00010 // This file is part of the AIDA library 00011 // Copyright (C) 2002 by the AIDA team. All rights reserved. 00012 // This library is free software and under the terms of the 00013 // GNU Library General Public License described in the LGPL.txt 00014 00015 #include <vector> 00016 00017 #include "AIDA/ICloud.h" 00018 00019 namespace AIDA { 00020 00021 class IHistogram1D; 00022 00030 class ICloud1D : virtual public ICloud { 00031 00032 public: 00034 virtual ~ICloud1D() { /* nop */; } 00035 00044 virtual bool fill(double x, double weight = 1.) = 0; 00045 00051 virtual double lowerEdge() const = 0; 00052 00058 virtual double upperEdge() const = 0; 00059 00077 virtual double value(int index) const = 0; 00078 00096 virtual double weight(int index) const = 0; 00097 00103 virtual double mean() const = 0; 00104 00110 virtual double rms() const = 0; 00111 00121 virtual bool convert(int nBins, double lowerEdge, double upperEdge) = 0; 00122 00130 virtual bool convert(const std::vector<double> & binEdges) = 0; 00131 00138 virtual const IHistogram1D & histogram() const = 0; 00139 00146 virtual bool fillHistogram(IHistogram1D & hist) const = 0; 00147 }; // class 00148 }; // namespace AIDA 00149 #endif /* ifndef AIDA_ICLOUD1D_H */