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

ISHistogram2DAdapter.java

00001 /*
00002  * ISHistogram2DAdapter.java
00003  *
00004  * Created on 27 November 2002, 18:14
00005  */
00006 
00007 package oh.aida;
00008 import oh.*;
00009 import hep.aida.*;
00010 
00011 
00016 public class ISHistogram2DAdapter extends ISHistogramAdapter implements IHistogram2D {
00017     
00019     public ISHistogram2DAdapter(ISHistogram2D data) {
00020         super(data);
00021     }
00022     
00023     public void add(hep.aida.IHistogram2D iHistogram2D) throws java.lang.IllegalArgumentException {
00024         unimplementedFunction();
00025     }
00026     
00027     public int binEntries(int param, int param1) throws java.lang.IllegalArgumentException {
00028         return 0;
00029     }
00030     
00031     public int binEntriesX(int param) throws java.lang.IllegalArgumentException {
00032         return 0;
00033     }
00034     
00035     public int binEntriesY(int param) throws java.lang.IllegalArgumentException {
00036         return 0;
00037     }
00038     
00039     public double binError(int param, int param1) throws java.lang.IllegalArgumentException {
00040         return _binError(index(param, param1));
00041     }
00042     
00043     public double binHeight(int param, int param1) throws java.lang.IllegalArgumentException {
00044         return _binHeight(index(param, param1));
00045     }
00046     
00047     public double binHeightX(int param) throws java.lang.IllegalArgumentException {
00048         unimplementedFunction();
00049         return 0;
00050     }
00051     
00052     public double binHeightY(int param) throws java.lang.IllegalArgumentException {
00053         unimplementedFunction();
00054         return 0;
00055     }
00056     
00057     public double binMeanX(int param, int param1) throws java.lang.IllegalArgumentException {
00058         unimplementedFunction();
00059         return 0;
00060     }
00061     
00062     public double binMeanY(int param, int param1) throws java.lang.IllegalArgumentException {
00063         unimplementedFunction();
00064         return 0;
00065     }
00066     
00067     public int coordToIndexX(double param) {
00068         unimplementedFunction();
00069         return 0;
00070     }
00071     
00072     public int coordToIndexY(double param) {
00073         unimplementedFunction();
00074         return 0;
00075     }
00076     
00077     public void fill(double param, double param1) throws java.lang.IllegalArgumentException {
00078         unimplementedFunction();
00079     }
00080     
00081     public void fill(double param, double param1, double param2) throws java.lang.IllegalArgumentException {
00082         unimplementedFunction();
00083     }
00084     
00085     public double meanX() {
00086         return ((ISHistogram2D)data).is_xmean;
00087     }
00088     
00089     public double meanY() {
00090         return ((ISHistogram2D)data).is_ymean;
00091     }
00092     
00093     public double rmsX() {
00094         return ((ISHistogram2D)data).is_xrms;
00095     }
00096     
00097     public double rmsY() {
00098         return ((ISHistogram2D)data).is_yrms;
00099     }
00100     
00101     public hep.aida.IAxis xAxis() {
00102         return new AxisAdapter(0);
00103     }
00104     
00105     public hep.aida.IAxis yAxis() {
00106         return new AxisAdapter(1);
00107     }
00108     
00109     
00118     protected int index(int indexX, int indexY )  {
00119         int bcx = xAxis().bins();
00120         int bcy = yAxis().bins();
00121         if ( indexX == IAxis.OVERFLOW_BIN ) indexX = bcx + 1;
00122         else if ( indexX == IAxis.UNDERFLOW_BIN ) indexX = 0;
00123         else indexX++;
00124         if ( indexY == IAxis.OVERFLOW_BIN ) indexY = bcy + 1;
00125         else if ( indexY == IAxis.UNDERFLOW_BIN ) indexY = 0;
00126         else indexY++;
00127         
00128         return indexX + indexY * ( bcx + 2 );
00129     }
00130 
00131 }

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