RAIDA  1.9.0
ICloud1D.h
1 // -*- C++ -*-
2 // AID-GENERATED
3 // =========================================================================
4 // This class was generated by AID - Abstract Interface Definition
5 // DO NOT MODIFY, but use the org.freehep.aid.Aid utility to regenerate it.
6 // =========================================================================
7 #ifndef AIDA_ICLOUD1D_H
8 #define AIDA_ICLOUD1D_H 1
9 
10 // This file is part of the AIDA library
11 // Copyright (C) 2002 by the AIDA team. All rights reserved.
12 // This library is free software and under the terms of the
13 // GNU Library General Public License described in the LGPL.txt
14 
15 #include <vector>
16 
17 #include "AIDA/ICloud.h"
18 
19 namespace AIDA {
20 
21 class IHistogram1D;
22 
30 class ICloud1D : virtual public ICloud {
31 
32 public:
34  virtual ~ICloud1D() { /* nop */; }
35 
44  virtual bool fill(double x, double weight = 1.) = 0;
45 
51  virtual double lowerEdge() const = 0;
52 
58  virtual double upperEdge() const = 0;
59 
77  virtual double value(int index) const = 0;
78 
96  virtual double weight(int index) const = 0;
97 
103  virtual double mean() const = 0;
104 
110  virtual double rms() const = 0;
111 
121  virtual bool convert(int nBins, double lowerEdge, double upperEdge) = 0;
122 
130 
138  virtual const IHistogram1D & histogram() const = 0;
139 
146  virtual bool fillHistogram(IHistogram1D & hist) const = 0;
147 }; // class
148 } // namespace AIDA
149 #endif /* ifndef AIDA_ICLOUD1D_H */
virtual double mean() const =0
Get the mean of the ICloud1D.
User level interface to a 1D Cloud.
Definition: ICloud1D.h:30
virtual const IHistogram1D & histogram() const =0
Convert internally the ICloud1D to an IHistogram1D with given bin edges.
virtual ~ICloud1D()
Destructor.
Definition: ICloud1D.h:34
User level interface to 1D Histogram.
Definition: IHistogram1D.h:28
virtual double weight(int index) const =0
Get the weight corresponding to a given entry.
User level interface to a Cloud.
Definition: ICloud.h:30
virtual bool fillHistogram(IHistogram1D &hist) const =0
Project the ICloud1D on an IHistogram1D.
virtual double rms() const =0
Get the RMS of the ICloud1D.
virtual double upperEdge() const =0
Get the upper edge of the ICloud1D.
virtual double value(int index) const =0
Get the value corresponding to a given entry.
virtual double lowerEdge() const =0
Get the lower edge of the ICloud1D.
virtual bool convert(int nBins, double lowerEdge, double upperEdge)=0
Convert internally the ICloud1D to an IHistogram1D with given number of bins, upper edge and lower ed...
virtual bool fill(double x, double weight=1.)=0
Fill the ICloud1D with a value and a corresponding weight.