Changeset 1035 in Sophya
- Timestamp:
- Jun 7, 2000, 3:04:24 PM (25 years ago)
- Location:
- trunk/SophyaPI/PIext
- Files:
-
- 3 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"; -
trunk/SophyaPI/PIext/pawexecut.cc
r815 r1035 26 26 27 27 /* Reza + cmv 13/10/99 */ 28 29 uint_4 PAWExecutor::autoc_counter_ = 0; 28 30 29 31 /* methode */ … … 173 175 if(tokens.size() < 1) { 174 176 cout 175 <<"Usage: n/plot nameobj.x_exp [cut] [w_exp] [loop] [gratt] "<<endl177 <<"Usage: n/plot nameobj.x_exp [cut] [w_exp] [loop] [gratt] [nomh1]"<<endl 176 178 <<" n/plot nameobj.y_exp%x_exp [cut] [loop] [gratt]"<<endl 177 179 <<" n/plot nameobj.z_exp%y_exp%x_exp [cut] [loop] [gratt]"<<endl … … 181 183 string nameobj,expx,expy,expz; 182 184 int nvar = decodepawstring(tokens[0],nameobj,expx,expy,expz); 183 string expcut = "1"; string expwt = "1."; string loop = ""; string dopt = ""; 185 string expcut = "1"; string expwt = "1."; string loop = ""; 186 string dopt = ""; string nameproj=""; 184 187 if(tokens.size()>=2) expcut = tokens[1]; if(expcut=="!") expcut="1"; 185 188 … … 190 193 cout<<"PAWExecutor::n_plot Error: bad coding "<<tokens[0]<<endl; 191 194 } 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 } 198 207 srvo->ProjectH1(nameobj,expx,expwt,expcut,nameproj,dopt,loop); 199 208 } else if(nvar==2) { // c'est un plot 2D -
trunk/SophyaPI/PIext/pawexecut.h
r466 r1035 32 32 ,string& xexp,string& yexp,string& zexp); 33 33 PIStdImgApp* mApp; 34 static uint_4 autoc_counter_; 34 35 }; 35 36
Note:
See TracChangeset
for help on using the changeset viewer.