Changeset 314 in PSPA
- Timestamp:
- Feb 6, 2013, 1:30:07 PM (11 years ago)
- Location:
- Interface_Web/trunk/pspaWT/sources/controler
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/sources/controler/include/particleBeam.h
r312 r314 35 35 36 36 37 38 39 37 void impressionDesMoments() const; 40 38 void razDesMoments(); … … 58 56 double getUnnormalizedEmittanceX(); 59 57 double getP0Transport() const; 58 double referenceKineticEnergyMeV() const; 60 59 bool particleRepresentationOk() const; 61 60 bool momentRepresentationOk() const; -
Interface_Web/trunk/pspaWT/sources/controler/src/dataManager.cc
r313 r314 32 32 GWt_console* console = static_cast<GWt_console*> (wApp->findWidget ("console")); 33 33 if (console) console->addConsoleMessage(message); 34 pspa_->processEvents(); 34 35 } 35 36 -
Interface_Web/trunk/pspaWT/sources/controler/src/particleBeam.cc
r312 r314 74 74 return P0Transport_; 75 75 } 76 77 double particleBeam::referenceKineticEnergyMeV() const { 78 if ( particleRepresentationOk_ ) { 79 return (referenceParticle_.getGamma() -1.) * ERESTMeV; 80 } else { 81 double P0Norm = 1000.0 * P0Transport_ / ERESTMeV; 82 double gamma = sqrt(1.0 + P0Norm * P0Norm); 83 return (gamma - 1.0) * ERESTMeV; 84 } 85 } 86 87 76 88 77 89 void particleBeam::set2Moments(beam2Moments& moments) { -
Interface_Web/trunk/pspaWT/sources/controler/src/softwareParmela.cc
r313 r314 43 43 if ( !there_is_rfgun ) { 44 44 if ( !beamToParmela(workingDir, beamBefore ) ) return false; 45 cout << " softwareParmela::createInputFile PROGRAMMER LA RECHERCHE D'EC " << endl; 46 // cerr << " dataManager::createInputFileParmela : the first element should be rfgun" << endl; 47 // return false; 45 initalKineticEnergy = beamBefore->referenceKineticEnergyMeV(); 48 46 } 49 47 else { … … 100 98 } 101 99 else { 100 sortie << " successful launching of parmela " << endl; 102 101 cout << " execution parmela MARCHE " << endl; 103 sortie << resultOfRun;104 102 string::size_type nn = (resultOfRun).find("normal"); 105 103 if ( nn == string::npos )
Note: See TracChangeset
for help on using the changeset viewer.