Changeset 1035 in Sophya for trunk/SophyaPI/PIext/basexecut.cc
- Timestamp:
- Jun 7, 2000, 3:04:24 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/basexecut.cc
r769 r1035 237 237 mObjMgr->AddObj(h, tokens[0]); 238 238 } 239 else if (kw == "newprof" ) {239 else if (kw == "newprof" || kw == "newprofe") { 240 240 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); } 242 242 int nbx; 243 243 float xmin, xmax, ymin = 1., ymax = -1.; … … 249 249 xmin = atof(tokens[1].c_str()); xmax = atof(tokens[2].c_str()); 250 250 HProf* h = new HProf(xmin, xmax, nbx, ymin, ymax); 251 if(kw == "newprofe") h->SetErrOpt(false); 251 252 mObjMgr->AddObj(h, tokens[0]); 252 253 } … … 815 816 kw = "newh1d"; 816 817 usage = "Creates a 1D histogramm \n Usage: newh1d name xmin xmax nbin"; 817 usage += "\n Related commands: newh2d newprof newnt newgfd ";818 usage += "\n Related commands: newh2d newprof[e] newnt newgfd "; 818 819 mpiac->RegisterCommand(kw, usage, this, "Objects"); 819 820 kw = "newh2d"; 820 821 usage = "Creates a 2D histogramm \n Usage: newh2d name xmin xmax nbinx ymin ymax nbiny"; 821 usage += "\n Related commands: newh1d newprof newnt newgfd ";822 usage += "\n Related commands: newh1d newprof[e] newnt newgfd "; 822 823 mpiac->RegisterCommand(kw, usage, this, "Objects"); 823 824 kw = "newprof"; 824 825 usage = "Creates a profile histogramm \n Usage: newprof name xmin xmax nbin [ymin ymax]"; 825 usage += "\n Related commands: newh1d newh2d newnt newgfd "; 826 usage += "\n Errors represent the data spread in the X bin "; 827 usage += "\n Related commands: newh1d newh2d newprofe newnt newgfd "; 828 mpiac->RegisterCommand(kw, usage, this, "Objects"); 829 kw = "newprofe"; 830 usage = "Creates a profile histogramm \n Usage: newprofe name xmin xmax nbin [ymin ymax]"; 831 usage += "\n Errors represent the error on the data mean in the X bin "; 832 usage += "\n Related commands: newh1d newh2d newprof newnt newgfd "; 826 833 mpiac->RegisterCommand(kw, usage, this, "Objects"); 827 834 kw = "newnt"; 828 835 usage = "Creates a ntuple \n Usage: newnt name v1 v2 v3 .. vn"; 829 836 usage += "\n newnt name nvar"; 830 usage += "\n Related commands: newh1d newh2d newprof newgfd ";837 usage += "\n Related commands: newh1d newh2d newprof[e] newgfd "; 831 838 mpiac->RegisterCommand(kw, usage, this, "Objects"); 832 839 kw = "newgfd"; 833 840 usage = "Creates GeneralFit Data object \n Usage: newgfd nvar nalloc [errx(0/1)]"; 834 usage += "\n Related commands: newh1d newh2d newprof newnt ";841 usage += "\n Related commands: newh1d newh2d newprof[e] newnt "; 835 842 mpiac->RegisterCommand(kw, usage, this, "Objects"); 836 843 kw = "newvec";
Note:
See TracChangeset
for help on using the changeset viewer.