Changeset 90 in svn for trunk/src/BFieldProp.cc
- Timestamp:
- Dec 5, 2008, 9:34:52 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/BFieldProp.cc
r62 r90 27 27 TrackPropagation::TrackPropagation() { 28 28 29 MAXITERATION = 20000;29 MAXITERATION = 10000; 30 30 MINSEGLENGTH = 70; 31 31 … … 57 57 58 58 if(q!=0){ 59 double e = Part->E / 0.003;60 // double M = sqrt(e*e - (px*px + py*py + pz*pz) );61 59 double M = Part->M; 62 /*if(fabs(Part->PID)==11)63 {64 cout<<"genMomentum.M() "<<genMomentum.M()<<" "<<Part->M<<endl;65 cout<<"e*e - (px*px + py*py + pz*pz) "<<e*e - (px*px + py*py + pz*pz)<<endl;66 }*/67 60 double vx = px/M; 68 61 double vy = py/M; … … 76 69 double ay = (q/M)*(Bx*vz - Bz*vx); 77 70 double az = (q/M)*(By*vx - Bx*vy); 78 /*79 cout<<"M "<<M<<" et le pid "<<Part->PID<<endl;80 cout<<"ax "<<ax<<" ay "<<ay<<" az "<<az<<endl;81 */82 71 double dt = 1/p; 83 72 if(pt<266 && vz < 0.0012) dt = fabs(0.001/vz); … … 120 109 if(x!=0 && y!=0 && z!=0) 121 110 { 122 double theta = fabs(atan(y/z));123 111 double eta; 124 if(z > 0)eta = -log(tan(theta/2));125 else eta = -(-log(tan(theta/2)));112 float Theta = atan2(sqrt(x*x+y*y),z); 113 eta = -log(tan(Theta/2)); 126 114 double phi = atan2(y,x); 127 115 genMomentum.SetPtEtaPhiE(Part->PT,eta,phi,Part->E); 128 116 } 129 // cout<<"genMomentum final "<<genMomentum.Pt()<<endl;130 117 } 131 118 }
Note:
See TracChangeset
for help on using the changeset viewer.