Fork me on GitHub

Ignore:
Timestamp:
May 20, 2009, 10:33:21 AM (15 years ago)
Author:
Xavier Rouby
Message:

update to Hector_1_5_2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Utilities/Hector/src/H_BeamParticle.cc

    r388 r400  
    461461}
    462462
    463 void H_BeamParticle::getPath(const int x_or_y, const string& filename) const {
     463void H_BeamParticle::getPath(const int x_or_y, const string& filename) const{
     464        /// @param x_or_y = 0(1) draws the x(y) component;
    464465        ofstream outfile(filename.c_str());
    465         int index;
     466
     467        int index;
    466468        if(x_or_y==0) {index = INDEX_X;} else {index = INDEX_Y;}
    467469
    468470        vector<TVectorD>::const_iterator position_i;
    469471        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;
    471473        }
    472474        outfile.close();
    473475}
     476
    474477
    475478// should be removed later, to keep only computePath(const H_AbstractBeamLine & , const bool)
Note: See TracChangeset for help on using the changeset viewer.