Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

ISHistogram1DAdapter.java

00001 /*
00002  * ISHistogram1DAdapter.java
00003  *
00004  * Created on 27 November 2002, 12:18
00005  */
00006 
00007 package oh.aida;
00008 
00009 import oh.*;
00010 import hep.aida.*;
00011 
00016 public class ISHistogram1DAdapter extends ISHistogramAdapter implements hep.aida.IHistogram1D {
00017     
00019     public ISHistogram1DAdapter(ISHistogram1D data) {
00020         super(data);
00021     }
00022        
00023     public void add(hep.aida.IHistogram1D iHistogram1D) throws java.lang.IllegalArgumentException {
00024         unimplementedFunction();
00025     }
00026     
00027     public hep.aida.IAxis axis() {
00028         return new AxisAdapter(0);
00029     }
00030     
00031     public int binEntries(int param) throws java.lang.IllegalArgumentException {
00032         return 0;
00033     }
00034     
00035     public double binError(int param) throws java.lang.IllegalArgumentException {
00036         return _binError(index(param));
00037     } 
00038     
00039     public double binHeight(int param) throws java.lang.IllegalArgumentException {
00040         return _binHeight(index(param));
00041     }
00042     
00043     public double binMean(int param) throws java.lang.IllegalArgumentException {
00044         return 0;
00045     }
00046     
00047     public int coordToIndex(double param) {
00048         return axis().coordToIndex(param);
00049     }
00050     
00051     public void fill(double param) throws java.lang.IllegalArgumentException {
00052         unimplementedFunction();
00053     }
00054     
00055     public void fill(double param, double param1) throws java.lang.IllegalArgumentException {
00056         unimplementedFunction();
00057     }
00058     
00059     public double mean() {
00060         return ((ISHistogram1D)data).is_xmean;
00061     }
00062     
00063     public double rms() {
00064         return ((ISHistogram1D)data).is_xrms;
00065     }
00066     
00075     protected int index(int indexX)  {
00076         int bcx = axis().bins();
00077         if ( indexX == IAxis.OVERFLOW_BIN ) indexX = bcx + 1;
00078         else if ( indexX == IAxis.UNDERFLOW_BIN ) indexX = 0;
00079         else indexX++;
00080         
00081         return indexX;
00082     }
00083     
00084 }

Generated on Thu Jul 15 09:55:43 2004 for SCT DAQ/DCS Software - Java by doxygen 1.3.5