Fork me on GitHub

Changeset 94 in svn for trunk/src/BFieldProp.cc


Ignore:
Timestamp:
Dec 12, 2008, 5:32:29 PM (16 years ago)
Author:
severine ovyn
Message:

Add frog plus cleaning + bugs remove

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/BFieldProp.cc

    r90 r94  
    4343 
    4444  //out of trackibg coverage?
    45   if(sqrt(Xvertex1*Xvertex1+Yvertex1*Yvertex1) > TRACKING_RADIUS){return;}
    46   if(fabs(Zvertex1) > TRACKING_LENGTH){return;}
     45  if(sqrt(Xvertex1*Xvertex1+Yvertex1*Yvertex1) > TRACK_radius){return;}
     46  if(fabs(Zvertex1) > TRACK_length){return;}
    4747 
    4848  float Px = Part->Px;
     
    6262     double vz = pz/M;
    6363
    64      double Bx = BFIELD_X;
    65      double By = BFIELD_Y;
    66      double Bz = BFIELD_Z;
     64     double Bx = TRACK_bfield_x;
     65     double By = TRACK_bfield_y;
     66     double Bz = TRACK_bfield_z;
    6767
    6868     double ax =  (q/M)*(Bz*vy - By*vz);
     
    9999        z  += vz*dt;
    100100
    101        if( (x*x+y*y) > TRACKING_RADIUS*TRACKING_RADIUS ){ x /= (x*x+y*y)/(TRACKING_RADIUS*TRACKING_RADIUS); y /= (x*x+y*y)/(TRACKING_RADIUS*TRACKING_RADIUS); break;}
    102        if( fabs(z)>TRACKING_LENGTH)break;
     101       if( (x*x+y*y) > TRACK_radius*TRACK_radius ){ x /= (x*x+y*y)/(TRACK_radius*TRACK_radius); y /= (x*x+y*y)/(TRACK_radius*TRACK_radius); break;}
     102       if( fabs(z)>TRACK_length)break;
    103103
    104104       xold = x;
Note: See TracChangeset for help on using the changeset viewer.