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

ISHistogram3DAdapter.java

00001 /*
00002  * ISHistogram3DAdapter.java
00003  *
00004  * Created on 28 November 2002, 11:01
00005  */
00006 
00007 package oh.aida;
00008 import hep.aida.*;
00009 import oh.*;
00010 
00015 public class ISHistogram3DAdapter extends ISHistogramAdapter implements IHistogram3D {
00016     
00018     public ISHistogram3DAdapter(ISHistogram3D data) {
00019         super(data);
00020     }
00021     
00022     public void add(hep.aida.IHistogram3D iHistogram3D) throws java.lang.IllegalArgumentException {
00023         unimplementedFunction();
00024     }
00025     
00026     public int binEntries(int param, int param1, int param2) throws java.lang.IllegalArgumentException {
00027         return 0;
00028     }
00029     
00030     public int binEntriesX(int param) throws java.lang.IllegalArgumentException {
00031         return 0;
00032     }
00033     
00034     public int binEntriesY(int param) throws java.lang.IllegalArgumentException {
00035         return 0;
00036     }
00037     
00038     public int binEntriesZ(int param) throws java.lang.IllegalArgumentException {
00039         return 0;
00040     }
00041     
00042     public double binError(int param, int param1, int param2) throws java.lang.IllegalArgumentException {
00043         return _binError(index(param, param1, param2));
00044     }
00045     
00046     public double binHeight(int param, int param1, int param2) throws java.lang.IllegalArgumentException {
00047         return _binHeight(index(param, param1, param2));
00048     }
00049     
00050     public double binHeightX(int param) throws java.lang.IllegalArgumentException {
00051         unimplementedFunction();
00052         return 0;
00053     }
00054     
00055     public double binHeightY(int param) throws java.lang.IllegalArgumentException {
00056         unimplementedFunction();
00057         return 0;
00058     }
00059     
00060     public double binHeightZ(int param) throws java.lang.IllegalArgumentException {
00061         unimplementedFunction();
00062         return 0;
00063     }
00064     
00065     public double binMeanX(int param, int param1, int param2) throws java.lang.IllegalArgumentException {
00066         unimplementedFunction();
00067         return 0;
00068     }
00069     
00070     public double binMeanY(int param, int param1, int param2) throws java.lang.IllegalArgumentException {
00071         unimplementedFunction();
00072         return 0;
00073     }
00074     
00075     public double binMeanZ(int param, int param1, int param2) throws java.lang.IllegalArgumentException {
00076         unimplementedFunction();
00077         return 0;
00078     }
00079     
00080     public int coordToIndexX(double param) {
00081         unimplementedFunction();
00082         return 0;
00083     }
00084     
00085     public int coordToIndexY(double param) {
00086         unimplementedFunction();
00087         return 0;
00088     }
00089     
00090     public int coordToIndexZ(double param) {
00091         unimplementedFunction();
00092         return 0;
00093     }
00094     
00095     public void fill(double param, double param1, double param2) throws java.lang.IllegalArgumentException {
00096         unimplementedFunction();
00097     }
00098     
00099     public void fill(double param, double param1, double param2, double param3) throws java.lang.IllegalArgumentException {
00100         unimplementedFunction();
00101     }
00102     
00103     public double meanX() {
00104         return ((ISHistogram3D)data).is_xmean;
00105     }
00106     
00107     public double meanY() {
00108         return ((ISHistogram3D)data).is_ymean;
00109     }
00110     
00111     public double meanZ() {
00112         return ((ISHistogram3D)data).is_zmean;
00113     }
00114     
00115     public double rmsX() {
00116         return ((ISHistogram3D)data).is_xrms;
00117     }
00118     
00119     public double rmsY() {
00120         return ((ISHistogram3D)data).is_yrms;
00121     }
00122     
00123     public double rmsZ() {
00124         return ((ISHistogram3D)data).is_zrms;
00125     }
00126     
00127     public hep.aida.IAxis xAxis() {
00128         return new AxisAdapter(0);
00129     }
00130     
00131     public hep.aida.IAxis yAxis() {
00132         return new AxisAdapter(1);
00133     }
00134     
00135     public hep.aida.IAxis zAxis() {
00136         return new AxisAdapter(2);
00137     }
00138     
00139     
00143     protected int index(int indexX, int indexY, int indexZ )  {
00144         int bcx = xAxis().bins();
00145         int bcy = yAxis().bins();
00146         int bcz = zAxis().bins();
00147         if ( indexX == IAxis.OVERFLOW_BIN ) indexX = bcx + 1;
00148         else if ( indexX == IAxis.UNDERFLOW_BIN ) indexX = 0;
00149         else indexX++;
00150         if ( indexY == IAxis.OVERFLOW_BIN ) indexY = bcy + 1;
00151         else if ( indexY == IAxis.UNDERFLOW_BIN ) indexY = 0;
00152         else indexY++;
00153         if ( indexZ == IAxis.OVERFLOW_BIN ) indexZ = bcy + 1;
00154         else if ( indexZ == IAxis.UNDERFLOW_BIN ) indexZ = 0;
00155         else indexZ++;
00156 
00157         return indexX + ( bcx + 2 ) * (indexY + (bcy+2) * indexZ);
00158      }
00159 }

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