Changeset 129 in Sophya


Ignore:
Timestamp:
Aug 4, 1998, 2:01:27 PM (27 years ago)
Author:
ercodmgr
Message:

Methode X() pour Adapter1D Reza 4/08/98

Location:
trunk/SophyaPI/PI
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PI/parradapter.cc

    r125 r129  
    1313{
    1414mSize=sz;
     15DefineYCoordinate(0, 1.);
    1516}
    1617
     
    2021}
    2122
    22 
     23/* --Methode-- */
     24void P1DArrayAdapter::DefineYCoordinate(float x0, float dx)
     25{
     26mOx = x0;  mDx = dx;
     27}
     28
     29/* --Methode-- */
     30float P1DArrayAdapter::X(int i)
     31{
     32return(mOx+mDx*i);
     33}
    2334
    2435/* --Methode-- */
  • trunk/SophyaPI/PI/parradapter.h

    r124 r129  
    1818  virtual float   Value(int i) = 0;
    1919  inline  int     Size() { return (mSize) ; }
     20  virtual void    DefineYCoordinate(float x0, float dx);
     21  virtual float   X(int i);
    2022     
    2123protected :
    2224  int mSize;
     25  float mOx, mDx;
    2326};
    2427
  • trunk/SophyaPI/PI/pistlist.cc

    r120 r129  
    2424  else mStL->CalcFluxLimits(mFmin, mFmax);
    2525  if (mFmin < 1.e-10)  mFmin = 1.e-10;
    26   if (mFmax < mFmin)  mFmax = 1.5*mFmin;
     26  if (mFmax <= mFmin)  mFmax = 1.5*mFmin;
    2727  mDLgF = log10((double)mFmax/(double)mFmin);
     28  if (mDLgF < 1.e-10)  mDLgF = 1.e-10;
    2829  mF0 = mFmin;
    2930  if (nl < 1)  nl = 1;
Note: See TracChangeset for help on using the changeset viewer.