Changeset 487 in PSPA for Interface_Web/trunk/pspaWT/sources/controler/src/softwareMadx.cc
- Timestamp:
- Feb 5, 2014, 11:45:11 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/sources/controler/src/softwareMadx.cc
r485 r487 16 16 { 17 17 nameOfSoftware_ = new nomDeLogiciel("madx"); 18 19 // registerElement(nomdElements::RFgun,TBoolOk);20 // registerElement(nomdElements::drift,TBoolOk);21 // registerElement(nomdElements::mpole,TBoolOk);22 18 } 23 19 … … 241 237 if(keyword == "drift") { 242 238 double length = atof(v.at(1).second.at(0).c_str()); 243 os << label << ":" << " drift, l=" << 0.01*length << ";" << endl;239 os << label << ":" << " drift, l=" << 0.01*length << ";" << endl; 244 240 245 241 } else if(keyword == "mpole") { … … 253 249 os <<"};" << endl; 254 250 251 } else if(keyword == "qpole") { 252 double ln = atof(v.at(1).second.at(0).c_str()); 253 double k1 = atof(v.at(1).second.at(1).c_str()); 254 os << label << ":" << " quadrupole, l=" << ln << ", k1= " << k1 << ";" << endl; 255 256 } else if(keyword == "spole") { 257 double ln = atof(v.at(1).second.at(0).c_str()); 258 double k2 = atof(v.at(1).second.at(1).c_str()); 259 os << label << ":" << " sextupole, l=" << ln << ", k2= " << k2 << ";" << endl; 260 255 261 } else { 256 262 cout << "softwareMadx::inputFormat ERROR : element type= " << keyword << " not defined" << endl;
Note: See TracChangeset
for help on using the changeset viewer.