Changeset 2681 in Sophya for trunk/SophyaPI/PIext/servnobjm.cc
- Timestamp:
- Apr 20, 2005, 7:03:24 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/servnobjm.cc
r2679 r2681 500 500 cout << "Services2NObjMgr::ProjectH1() Error , No such object " << nom << endl; 501 501 return; 502 502 } 503 503 if (!mImgapp) return; 504 504 … … 516 516 char* ntn[2]= {"hxval", "hwt"}; 517 517 nt = new NTuple(2,ntn); // Creation NTuple 518 518 } 519 519 string expz = "0."; 520 520 ComputeExpressions(obja, expx, expwt, expz, expwt, expcut, loop, nt, h1, NULL); … … 526 526 delete nt; 527 527 return; 528 528 } 529 529 double xmin, xmax; 530 530 nt->GetMinMax(0, xmin, xmax); … … 535 535 xn = nt->GetVec(k); 536 536 h1->Add(xn[0], xn[1]); 537 537 } 538 538 delete nt; 539 539 MyObjMgr()->AddObj(h1, nomh1); 540 541 542 if(!h1_already_exist ) MyObjMgr()->DisplayObj(nomh1, dopt);540 } 541 542 if(!h1_already_exist || dopt.size()>0) MyObjMgr()->DisplayObj(nomh1, dopt); 543 543 return; 544 544 } … … 553 553 cout << "Services2NObjMgr::ProjectH2() Error , No such object " << nom << endl; 554 554 return; 555 555 } 556 556 if (!mImgapp) return; 557 557 … … 569 569 char* ntn[3]= {"hxval", "hyval", "hwt"}; 570 570 nt = new NTuple(3,ntn); // Creation NTuple 571 571 } 572 572 string expz = "0."; 573 573 ComputeExpressions(obja, expx, expy, expwt, expwt, expcut, loop, nt, NULL, h2); … … 579 579 delete nt; 580 580 return; 581 581 } 582 582 double xmin, xmax, ymin, ymax; 583 583 nt->GetMinMax(0, xmin, xmax); … … 589 589 xn = nt->GetVec(k); 590 590 h2->Add(xn[0], xn[1], xn[2]); 591 591 } 592 592 delete nt; 593 593 MyObjMgr()->AddObj(h2, nomh2); 594 595 596 if(!h2_already_exist ) MyObjMgr()->DisplayObj(nomh2, dopt);594 } 595 596 if(!h2_already_exist || dopt.size()>0) MyObjMgr()->DisplayObj(nomh2, dopt); 597 597 return; 598 598 … … 618 618 cout << "Services2NObjMgr::ProjectHProf() Error , No such object " << nom << endl; 619 619 return; 620 620 } 621 621 if (!mImgapp) return; 622 622 … … 652 652 xn = nt->GetVec(k); 653 653 hprof->Add(xn[0], xn[1], xn[2]); 654 654 } 655 655 delete nt; 656 656 MyObjMgr()->AddObj(hprof, nomprof); 657 657 } 658 658 hprof->UpdateHisto(); 659 659 660 if(!hp_already_exist ) MyObjMgr()->DisplayObj(nomprof, dopt);660 if(!hp_already_exist || dopt.size()>0) MyObjMgr()->DisplayObj(nomprof, dopt); 661 661 return; 662 662 }
Note:
See TracChangeset
for help on using the changeset viewer.