Changeset 356 in PSPA for Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_pspaApplication.cc
- Timestamp:
- Mar 2, 2013, 7:54:38 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_pspaApplication.cc
r355 r356 502 502 { 503 503 if ( !beam->momentRepresentationOk() ) beam->buildMomentRepresentation(); 504 cout << " PspaApplication::dessinerPhaseSpace cood cliquees " << xabs << " " << yord << endl; 504 505 faireDessinTransport(toto_, beam, xabs, yord, nameAbs, nameOrd ); 505 506 } … … 582 583 ellipseDialog->setClosable(true); 583 584 ellipseDialog->show(); 584 585 new WText(nameOfCase_ + " : emittance " + namex + " , " + namey + " : " + mixedTools::doubleToString(beam->getUnnormalizedEmittanceX()) + " pi.mm.mrad" , ellipseDialog->contents());586 new WBreak(ellipseDialog->contents());587 new WText(" xmax = " + mixedTools::doubleToString(beam->getSigmaTransportij(1,1)) + " cm ", ellipseDialog->contents());588 new WBreak(ellipseDialog->contents());589 new WText(" x' max = " + mixedTools::doubleToString(beam->getSigmaTransportij(2,2)) + " mrad ", ellipseDialog->contents());590 new WBreak(ellipseDialog->contents());591 new WText(" corr. 12 = " + mixedTools::doubleToString(beam->getSigmaTransportij(2,1)) + " sqrt(cm.rad) ", ellipseDialog->contents());585 new WText(nameOfCase_, ellipseDialog->contents()); 586 // new WText(nameOfCase_ + " : emittance " + namex + " , " + namey + " : " + mixedTools::doubleToString(beam->getUnnormalizedEmittanceX()) + " pi.mm.mrad" , ellipseDialog->contents()); 587 // new WBreak(ellipseDialog->contents()); 588 // new WText(" xmax = " + mixedTools::doubleToString(beam->getSigmaTransportij(1,1)) + " cm ", ellipseDialog->contents()); 589 // new WBreak(ellipseDialog->contents()); 590 // new WText(" x' max = " + mixedTools::doubleToString(beam->getSigmaTransportij(2,2)) + " mrad ", ellipseDialog->contents()); 591 // new WBreak(ellipseDialog->contents()); 592 // new WText(" corr. 12 = " + mixedTools::doubleToString(beam->getSigmaTransportij(2,1)) + " sqrt(cm.rad) ", ellipseDialog->contents()); 592 593 593 594 vector<double> xcor; 594 595 vector<double> ycor; 595 beam->donneesDessinEllipse(xcor,ycor,indexAbs, indexOrd); 596 vector<string> legende; 597 beam->donneesDessinEllipse(xcor,ycor,legende, indexAbs, indexOrd); 598 unsigned k; 599 for (int k=0 ; k < legende.size(); k++) { 600 new WBreak(ellipseDialog->contents()); 601 new WText(legende.at(k), ellipseDialog->contents()); 602 } 596 603 // beam->donneesDessinEllipseXxp(xcor,ycor); 597 604 // scatterPlot1D(ellipseDialog->contents(),xcor,ycor); … … 863 870 new WText(" mean : "+ mixedTools::doubleToString(out[1])+" MeV",w); 864 871 new WBreak(w); 865 new WText(" rms : "+ mixedTools::doubleToString(out[2])+" KeV",w);872 new WText(" sigma rms : "+ mixedTools::doubleToString(out[2])+" KeV",w); 866 873 867 874 WCartesianChart *chart = new WCartesianChart(w); 868 chart->setTitle("Histogram of particle energies");875 chart->setTitle("Histogram of kinetic energy"); 869 876 chart->setModel(model); // set the model 870 877 chart->setXSeriesColumn(0); // set the column that holds the categories … … 881 888 axis.setLabelFormat("%.3f"); 882 889 axis.setGridLinesEnabled(true); 883 axis.setTitle(WString(" legende x"));890 axis.setTitle(WString(" dEcin/Ecin (%)")); 884 891 885 892 chart->axis(Y1Axis).setGridLinesEnabled(true);
Note: See TracChangeset
for help on using the changeset viewer.