Changeset 1076 in Sophya for trunk/SophyaPI/PIext
- Timestamp:
- Jul 18, 2000, 8:05:05 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/pawexecut.cc
r1073 r1076 301 301 Services2NObjMgr* srvo = omg.GetServiceObj(); 302 302 303 if(nvar<=0) { 304 cout<<"PAWExecutor::n_proj Error: bad coding "<<tokens[1]<<endl; 305 } else if(nvar==1) { 303 if(nvar==1) { 306 304 // c'est une projection dans un histo 1D 307 305 srvo->ProjectH1(nameobj,expx,expwt,expcut,nameproj,dopt,loop); 308 } else {306 } else if(nvar==2) { 309 307 // c'est une projection dans un histo2D 310 // OU un HProf si nameproj est HProf un deja defini308 // OU un HProf si nameproj est un HProf un deja defini 311 309 AnyDataObj* mobj = omg.GetObj(nameproj); 312 310 if(mobj==NULL) … … 316 314 else 317 315 srvo->ProjectH2(nameobj,expx,expy,expwt,expcut,nameproj,dopt,loop); 316 } else { 317 cout<<"PAWExecutor::n_proj Error: bad coding "<<tokens[1]<<" nvar="<<nvar<<endl; 318 318 } 319 319 … … 765 765 return;} 766 766 767 // Fill histo from vector767 // Fill Histo from Vector 768 768 if(typeid(*mobjh) == typeid(Histo) && typeid(*mobjv) == typeid(Vector)) { 769 769 Histo* h = dynamic_cast<Histo*>(mobjh); … … 772 772 else if(toput=="err2") h->PutError2(*v); 773 773 774 // Fill Histo2D from Matrix 774 775 } else if(typeid(*mobjh) == typeid(Histo2D) && typeid(*mobjv) == typeid(Matrix)) { 775 776 Histo2D* h = dynamic_cast<Histo2D*>(mobjh); … … 823 824 return;} 824 825 825 // Fill histo from vector826 // Copy Histo/Histo2D/Projection to Vector/Matrix 826 827 Histo* h = dynamic_cast<Histo*>(mobjh); 827 828 Histo2D* h2 = dynamic_cast<Histo2D*>(mobjh);
Note:
See TracChangeset
for help on using the changeset viewer.