Changeset 400 in svn for trunk/Utilities/Hector/src/H_BeamParticle.cc
- Timestamp:
- May 20, 2009, 10:33:21 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Utilities/Hector/src/H_BeamParticle.cc
r388 r400 461 461 } 462 462 463 void H_BeamParticle::getPath(const int x_or_y, const string& filename) const { 463 void H_BeamParticle::getPath(const int x_or_y, const string& filename) const{ 464 /// @param x_or_y = 0(1) draws the x(y) component; 464 465 ofstream outfile(filename.c_str()); 465 int index; 466 467 int index; 466 468 if(x_or_y==0) {index = INDEX_X;} else {index = INDEX_Y;} 467 469 468 470 vector<TVectorD>::const_iterator position_i; 469 471 for(position_i = positions.begin(); position_i < positions.end(); position_i++) { 470 outfile << (*position_i)[INDEX_S] <<"\t\t" << (*position_i)[index] << endl;472 outfile << (*position_i)[index] << "\t" << (*position_i)[INDEX_S] << endl; 471 473 } 472 474 outfile.close(); 473 475 } 476 474 477 475 478 // should be removed later, to keep only computePath(const H_AbstractBeamLine & , const bool)
Note:
See TracChangeset
for help on using the changeset viewer.