Ignore:
Timestamp:
Mar 2, 2013, 7:54:38 PM (11 years ago)
Author:
lemeur
Message:

bugs dans les dessins

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_pspaApplication.cc

    r355 r356  
    502502    {
    503503      if ( !beam->momentRepresentationOk() ) beam->buildMomentRepresentation();
     504      cout << " PspaApplication::dessinerPhaseSpace cood cliquees " << xabs << " " << yord << endl;
    504505      faireDessinTransport(toto_, beam, xabs, yord, nameAbs, nameOrd );
    505506    }
     
    582583  ellipseDialog->setClosable(true);
    583584  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());
    592593 
    593594  vector<double> xcor;
    594595  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  }
    596603  //  beam->donneesDessinEllipseXxp(xcor,ycor);
    597604  //  scatterPlot1D(ellipseDialog->contents(),xcor,ycor); 
     
    863870  new WText(" mean : "+ mixedTools::doubleToString(out[1])+" MeV",w);
    864871  new WBreak(w);
    865   new WText(" rms : "+ mixedTools::doubleToString(out[2])+" KeV",w);
     872  new WText(" sigma rms : "+ mixedTools::doubleToString(out[2])+" KeV",w);
    866873 
    867874  WCartesianChart *chart = new WCartesianChart(w);
    868   chart->setTitle("Histogram of particle energies");
     875  chart->setTitle("Histogram of kinetic energy");
    869876  chart->setModel(model);        // set the model
    870877  chart->setXSeriesColumn(0);    // set the column that holds the categories
     
    881888  axis.setLabelFormat("%.3f");
    882889  axis.setGridLinesEnabled(true);
    883   axis.setTitle(WString("legende x"));
     890  axis.setTitle(WString(" dEcin/Ecin (%)"));
    884891
    885892  chart->axis(Y1Axis).setGridLinesEnabled(true);
Note: See TracChangeset for help on using the changeset viewer.