Changeset 2419 in Sophya for trunk/SophyaPI/PIext/basexecut.cc


Ignore:
Timestamp:
Jul 21, 2003, 11:13:10 PM (22 years ago)
Author:
cmv
Message:
  • introduction notion de numero de ligne dans expression ntuple modif prototype PlotExprFunc NTLoopExprFunc (add _nl _nstart _nend) modif int_4 -> int_8_exprf (long long) pour _nl (DecodeLoopParameters,

PrepareNTExpressionCFile, LinkExprFunc,...)

  • doc pour _nl _nstart _nend et arragement repartition RegisterHelp/RegisterCommand

(rz + cmv 21/7/2003)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/basexecut.cc

    r2380 r2419  
    581581    return(0);
    582582  }
    583   int kks = 0;
    584   int kke = v->NElts();
    585   int kkp = 1;
     583  int_8 kks = 0;
     584  int_8 kke = v->NElts();
     585  int_8 kkp = 1;
    586586  if (tokens.size() > 2) Services2NObjMgr::DecodeLoopParameters(tokens[2], kks, kke, kkp);
    587587  if (kks < 0)  kks = 0;
    588   if (kke > v->NElts()) kke = v->NElts();
     588  if (kke > (int_8)v->NElts()) kke = v->NElts();
    589589  if (kkp < 1) kkp = 1;
    590590  int nelt = (kke-kks-1)/kkp;
     
    646646      return(0);
    647647    }
    648     int kks = 0;
    649     int kke = nti->NbLines();
    650     int kkp = 1;
     648    int_8 kks = 0;
     649    int_8 kke = nti->NbLines();
     650    int_8 kkp = 1;
    651651    if (tokens.size() > 3) Services2NObjMgr::DecodeLoopParameters(tokens[3], kks, kke, kkp);
    652652    if (kks < 0)  kks = 0;
    653     if (kke > nti->NbLines()) kke = nti->NbLines();
     653    if (kke > (int_8)nti->NbLines()) kke = nti->NbLines();
    654654    if (kkp < 1) kkp = 1;
    655655    int nelt = (kke-kks-1)/kkp;
     
    10701070void PIABaseExecutor::RegisterCommands()
    10711071{
    1072 string kw, usage;
     1072string kw, usage, grp;
    10731073kw = "loadmodule";
    10741074usage = "To load and initialize modules \n  Usage: loadmodule fnameso modulename";
     
    16141614usage = "Any mathematical expression (math.h) with object variables can be used";
    16151615usage += "\n  ------ Object Variable names (double) -------- ";
    1616 usage += "\n- NTuple: ntuple variable names";
    1617 usage += "\n- Histo1D/HProf: i,x,val,err";
    1618 usage += "\n- Histo2D: i,j,x,y,val,err";
    1619 usage += "\n- Vector/Matrix: n,r,c,val,real,imag,mod,phas";
    1620 usage += "\n- TArray: n,x,y,z,t,u,val,real,imag,mod,phas";
    1621 usage += "\n- Image: i,j,x,y,val(=pix)";
    1622 usage += "\n- GeneralFitData: x0,ex0 x1,ex1 ...  xn,exn   y,ey   ok";
     1616usage += "\n  (_nl is the table line number or the sequential index)";
     1617usage += "\n- NTuple: ntuple variable names,_nl";
     1618usage += "\n- Histo1D/HProf: i,x,val,err,_nl";
     1619usage += "\n- Histo2D: i,j,x,y,val,err,_nl";
     1620usage += "\n- Vector/Matrix: n,r,c,val,real,imag,mod,phas,_nl";
     1621usage += "\n- TArray: n,x,y,z,t,u,val,real,imag,mod,phas,_nl";
     1622usage += "\n- Image: i,j,x,y,val(=pix),_nl";
     1623usage += "\n- GeneralFitData: x0,ex0 x1,ex1 ...  xn,exn   y,ey   ok  ,_nl";
    16231624usage += "\n- LocalMap/SphereThetaPhi/SphereHEALPix: ";
    1624 usage += "\n-         i,k,val,real,imag,mod,phas,teta,phi";
    1625 usage += "\n- FITS Binary/ASCII table: fits column names";
     1625usage += "\n-         i,k,val,real,imag,mod,phas,teta,phi,_nl";
     1626usage += "\n- FITS Binary/ASCII table: fits column names,_nl";
    16261627#ifdef SANS_EVOLPLANCK
    16271628usage += "\n  ------ Eros Variable names (double) -------- ";
    16281629usage += "\n- StarList: x,y,flux,fond,pixmax,flags,";
    1629 usage += "\n-           xref,yref,fluxref,fondref,pixmaxref";
     1630usage += "\n-           xref,yref,fluxref,fondref,pixmaxref,_nl";
    16301631#endif
    16311632usage += "\n  ------ Other parameters -------- ";
     
    16351636usage += "\n        projh1d projh2d  projprof fillvec fillmtx ";
    16361637usage += "\n        fillnt fillgd1 fillgd2 ntloop exptovec ... ";
    1637 mpiac->RegisterCommand(kw, usage, NULL, "Expr. Plotting");
     1638grp = "Expr. Plotting";
     1639mpiac->RegisterHelp(kw, usage, grp);
    16381640kw = "plot2d";
    16391641usage = "Plots (2D) Y=g(Object) vs. X=f(Object) --- Object Variable names (double) :";
Note: See TracChangeset for help on using the changeset viewer.