Changeset 1035 in Sophya for trunk/SophyaPI/PIext/basexecut.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/basexecut.cc

    r769 r1035  
    237237  mObjMgr->AddObj(h, tokens[0]);
    238238  }
    239 else if (kw == "newprof") {
     239else if (kw == "newprof" || kw == "newprofe") {
    240240  if (tokens.size() < 4)
    241     { cout << "Usage: newprof name xmin xmax nbin [ymin ymax]" << endl; return(0); }
     241    { cout << "Usage: newprof[e] name xmin xmax nbin [ymin ymax]" << endl; return(0); }
    242242  int nbx;
    243243  float xmin, xmax, ymin = 1., ymax = -1.;
     
    249249  xmin = atof(tokens[1].c_str());   xmax = atof(tokens[2].c_str());
    250250  HProf* h = new HProf(xmin, xmax, nbx, ymin, ymax);
     251  if(kw == "newprofe") h->SetErrOpt(false);
    251252  mObjMgr->AddObj(h, tokens[0]);
    252253  }
     
    815816kw = "newh1d";
    816817usage = "Creates a 1D histogramm \n Usage: newh1d name xmin xmax nbin";
    817 usage += "\n  Related commands: newh2d  newprof newnt  newgfd "; 
     818usage += "\n  Related commands: newh2d  newprof[e] newnt  newgfd "; 
    818819mpiac->RegisterCommand(kw, usage, this, "Objects");
    819820kw = "newh2d";
    820821usage = "Creates a 2D histogramm \n Usage: newh2d name xmin xmax nbinx ymin ymax nbiny";
    821 usage += "\n  Related commands: newh1d  newprof newnt  newgfd "; 
     822usage += "\n  Related commands: newh1d  newprof[e] newnt  newgfd "; 
    822823mpiac->RegisterCommand(kw, usage, this, "Objects");
    823824kw = "newprof";
    824825usage = "Creates a profile histogramm \n Usage: newprof name xmin xmax nbin [ymin ymax]";
    825 usage += "\n  Related commands: newh1d  newh2d newnt newgfd "; 
     826usage += "\n  Errors represent the data spread in the X bin "; 
     827usage += "\n  Related commands: newh1d  newh2d newprofe newnt newgfd "; 
     828mpiac->RegisterCommand(kw, usage, this, "Objects");
     829kw = "newprofe";
     830usage = "Creates a profile histogramm \n Usage: newprofe name xmin xmax nbin [ymin ymax]";
     831usage += "\n  Errors represent the error on the data mean in the X bin "; 
     832usage += "\n  Related commands: newh1d  newh2d newprof newnt newgfd "; 
    826833mpiac->RegisterCommand(kw, usage, this, "Objects");
    827834kw = "newnt";
    828835usage = "Creates a ntuple \n Usage: newnt name v1 v2 v3 .. vn";
    829836usage += "\n        newnt name nvar"; 
    830 usage += "\n  Related commands: newh1d  newh2d newprof newgfd "; 
     837usage += "\n  Related commands: newh1d  newh2d newprof[e] newgfd "; 
    831838mpiac->RegisterCommand(kw, usage, this, "Objects");
    832839kw = "newgfd";
    833840usage = "Creates GeneralFit Data object \n Usage: newgfd nvar nalloc [errx(0/1)]";
    834 usage += "\n  Related commands: newh1d  newh2d  newprof newnt "; 
     841usage += "\n  Related commands: newh1d  newh2d  newprof[e] newnt "; 
    835842mpiac->RegisterCommand(kw, usage, this, "Objects");
    836843kw = "newvec";
Note: See TracChangeset for help on using the changeset viewer.