Changeset 94 in svn for trunk/src/BFieldProp.cc
- Timestamp:
- Dec 12, 2008, 5:32:29 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/BFieldProp.cc
r90 r94 43 43 44 44 //out of trackibg coverage? 45 if(sqrt(Xvertex1*Xvertex1+Yvertex1*Yvertex1) > TRACK ING_RADIUS){return;}46 if(fabs(Zvertex1) > TRACK ING_LENGTH){return;}45 if(sqrt(Xvertex1*Xvertex1+Yvertex1*Yvertex1) > TRACK_radius){return;} 46 if(fabs(Zvertex1) > TRACK_length){return;} 47 47 48 48 float Px = Part->Px; … … 62 62 double vz = pz/M; 63 63 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; 67 67 68 68 double ax = (q/M)*(Bz*vy - By*vz); … … 99 99 z += vz*dt; 100 100 101 if( (x*x+y*y) > TRACK ING_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)>TRACK ING_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; 103 103 104 104 xold = x;
Note:
See TracChangeset
for help on using the changeset viewer.