Changeset 354 in PSPA for Interface_Web/trunk/pspaWT/sources/controler/src/softwareParmela.cc
- Timestamp:
- Mar 1, 2013, 3:38:12 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/sources/controler/src/softwareParmela.cc
r353 r354 163 163 bool softwareParmela::beamFromParmela(string workingDir,unsigned numeroParmel, double referencefrequency, vector<double>& centroid, bareParticle& refPart,vector<bareParticle>& particles ) 164 164 { 165 165 166 string nomfilefais = workingDir + "parmdesz"; 166 167 cout << " nom fichier desz : " << nomfilefais << endl; … … 183 184 184 185 if ( partic.ne == (int)numeroParmel ) { 185 faisceau.push_back(partic);186 186 if ( partic.np == 1 ) { 187 187 // en principe on est sur la particule de reference … … 191 191 } 192 192 phaseRef = partic.phi; 193 TRIDVECTOR posRef(partic.xx,partic.yy,0.0); 193 194 // le 'z' est 'absolu' (le long de la trajectoire) 195 TRIDVECTOR posRef(partic.xx,partic.yy,partic.z); 194 196 TRIDVECTOR betagammaRef(partic.xxp*partic.begamz, partic.yyp*partic.begamz, partic.begamz); 195 197 refPart = bareParticle(posRef, betagammaRef); … … 200 202 return false; 201 203 } 202 } 204 } 205 faisceau.push_back(partic); 203 206 } 204 207 } //while
Note: See TracChangeset
for help on using the changeset viewer.