Fork me on GitHub

Changeset 400 in svn for trunk/Utilities/Hector/src


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

update to Hector_1_5_2

Location:
trunk/Utilities/Hector/src
Files:
2 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)
  • trunk/Utilities/Hector/src/H_RecRPObject.cc

    r281 r400  
    6464        {if(ss1==ss2) cout<<"<H_RecRPObject> WARNING : detectors are on same position"<<endl;
    6565}
     66
     67
     68H_RecRPObject::H_RecRPObject(const float ss1, const float ss2, const H_AbstractBeamLine& beam) : emin(0), emax(-1), x1(0), x2(0), y1(0), y2(0), s1(ss1), s2(ss2),
     69                                txip(NOT_YET_COMPUTED), tyip(NOT_YET_COMPUTED), energy(NOT_YET_COMPUTED), q2(NOT_YET_COMPUTED), pt(NOT_YET_COMPUTED),
     70                                thebeam(beam.clone()),
     71                                f_1(new TF1("f_1","[0] + [1]*x + [2]*x*x ",emin,emax)),
     72                                f_2(new TF1("f_2","[0] + [1]*x + [2]*x*x ",emin,emax)),
     73                                g_1(new TF1("g_1","[0] + [1]*x + [2]*x*x ",emin,emax)),
     74                                g_2(new TF1("g_2","[0] + [1]*x + [2]*x*x ",emin,emax)),
     75                                d_1(new TF1("d_1","[0] + [1]*x + [2]*x*x ",emin,emax)),
     76                                d_2(new TF1("d_2","[0] + [1]*x + [2]*x*x ",emin,emax)),
     77                                k_1(new TF1("k_1","[0] + [1]*x + [2]*x*x ",emin,emax)),
     78                                k_2(new TF1("k_2","[0] + [1]*x + [2]*x*x ",emin,emax)),
     79                                l_1(new TF1("l_1","[0] + [1]*x + [2]*x*x ",emin,emax)),
     80                                l_2(new TF1("l_2","[0] + [1]*x + [2]*x*x ",emin,emax))
     81        {if(ss1==ss2) cout<<"<H_RecRPObject> WARNING : detectors are on same position"<<endl;
     82}
     83
    6684
    6785H_RecRPObject::H_RecRPObject(const H_RecRPObject& r):
     
    351369   return os;
    352370}
     371
Note: See TracChangeset for help on using the changeset viewer.