Changeset 1035 in Sophya for trunk/SophyaPI/PIext/pawexecut.cc


Ignore:
Timestamp:
Jun 7, 2000, 3:04:24 PM (25 years ago)
Author:
ercodmgr
Message:
  • creation comm newprofe pour profile avec erreur sur mean
  • correction petit bug n/plot pour increment nom histo 1d paw_n_plot1D_??? dans le cas ou on veut faire

"n/plot ..." puis "n/plot ... same"

cmv 7/6/2000

File:
1 edited

Legend:

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

    r815 r1035  
    2626
    2727/* Reza + cmv  13/10/99 */
     28
     29uint_4 PAWExecutor::autoc_counter_ = 0;
    2830
    2931/* methode */
     
    173175if(tokens.size() < 1) {
    174176  cout
    175   <<"Usage: n/plot nameobj.x_exp [cut] [w_exp] [loop] [gratt]"<<endl
     177  <<"Usage: n/plot nameobj.x_exp [cut] [w_exp] [loop] [gratt] [nomh1]"<<endl
    176178  <<"       n/plot nameobj.y_exp%x_exp [cut] [loop] [gratt]"<<endl
    177179  <<"       n/plot nameobj.z_exp%y_exp%x_exp [cut] [loop] [gratt]"<<endl
     
    181183string nameobj,expx,expy,expz;
    182184int nvar = decodepawstring(tokens[0],nameobj,expx,expy,expz);
    183 string expcut = "1"; string expwt = "1."; string loop = ""; string dopt = "";
     185string expcut = "1"; string expwt = "1."; string loop = "";
     186string dopt = ""; string nameproj="";
    184187if(tokens.size()>=2) expcut = tokens[1]; if(expcut=="!") expcut="1";
    185188
     
    190193  cout<<"PAWExecutor::n_plot Error: bad coding "<<tokens[0]<<endl;
    191194} else if(nvar==1) { // c'est un plot 1D
    192   if(tokens.size()>=3) expwt = tokens[2]; if(expwt=="!") expwt="1.";
    193   if(tokens.size()>=4) loop  = tokens[3]; if(loop=="!") loop="";
    194   if(tokens.size()>=5) dopt  = tokens[4];
    195   string nameproj = "/autoc/paw_n_plot1D";
    196   AnyDataObj* mobj = omg.GetObj(nameproj);
    197   //  if(mobj!=NULL) omg.DelObj(nameproj);  $CHECK$ Reza 12/12/99 - clean auto
     195  if(tokens.size()>=3) expwt    = tokens[2]; if(expwt=="!") expwt="1.";
     196  if(tokens.size()>=4) loop     = tokens[3]; if(loop=="!") loop="";
     197  if(tokens.size()>=5) dopt     = tokens[4]; if(dopt=="!") dopt="";
     198  if(tokens.size()>=6) nameproj = tokens[5];
     199  if(nameproj.length()<=0 || nameproj=="!") {
     200    nameproj = "/autoc/paw_n_plot1D_";
     201    AnyDataObj* mobj = omg.GetObj(nameproj);
     202    if(mobj!=NULL) {
     203      char buff[16]; autoc_counter_++; sprintf(buff,"%d",autoc_counter_);
     204      nameproj += buff;
     205    }
     206  }
    198207  srvo->ProjectH1(nameobj,expx,expwt,expcut,nameproj,dopt,loop);
    199208} else if(nvar==2) { // c'est un plot 2D
Note: See TracChangeset for help on using the changeset viewer.