Changeset 203 in PSPA
- Timestamp:
- Dec 18, 2012, 7:31:04 PM (12 years ago)
- Location:
- Interface_Web/trunk/pspaWT/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/src/GWt_pspaApplication.cc
r202 r203 682 682 { 683 683 vector<bareParticle>& partic = beam->getParticleVector(); 684 new WText(nameOfCase_ + " : e mittance parmela"+ " nb partic. "+ mixedTools::intToString(partic.size()), toto);684 new WText(nameOfCase_ + " : espace de phase x,x' "+ " nb partic. "+ mixedTools::intToString(partic.size()), toto); 685 685 WStandardItemModel *model = new WStandardItemModel(partic.size(), 3, toto); 686 686 // model->setHeaderData(0, WString("X")); … … 749 749 // WContainerWidget* toto = static_cast<WContainerWidget*>(leDessin_); 750 750 // toto->clear(); 751 new WText(nameOfCase_ + " : emittance transport", toto);751 new WText(nameOfCase_ + " : emittance x,x' ", toto); 752 752 vector<double> xcor; 753 753 vector<double> ycor; -
Interface_Web/trunk/pspaWT/src/elementBend.cc
r202 r203 2 2 #include "mixedTools.h" 3 3 #include "mathematicalConstants.h" 4 4 #include "PhysicalConstants.h" 5 5 elementBend::elementBend() : abstractElement() 6 6 { … … 78 78 { 79 79 ostringstream sortie; 80 81 sortie << "BEND /l=" << lenghtElem_ << " / aper=" << aperture_ << " / iout=1 / wr=" << momentum_ << " /alpha=" << angleDeg_ << " / beta1=" << beta1_; 80 // il faut entrer l'energie cinetique 81 double ecin = momentum_/ERESTMeV; 82 ecin = ecin*ecin + 1.; 83 ecin = ERESTMeV*(sqrt(ecin) - 1.0); 84 sortie << "BEND /l=" << lenghtElem_ << " / aper=" << aperture_ << " / iout=1 / wr=" << ecin << " /alpha=" << angleDeg_ << " / beta1=" << beta1_; 82 85 sortie << " / beta2=" << beta1_; 83 86 return sortie.str();
Note: See TracChangeset
for help on using the changeset viewer.