Changeset 1367 in svn for trunk/modules/ParticlePropagator.cc
- Timestamp:
- Apr 16, 2014, 4:08:33 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/ParticlePropagator.cc
r1342 r1367 106 106 Double_t tmp, discr, discr2; 107 107 Double_t delta, gammam, omega, asinrho; 108 108 Double_t ang_mom, rcu, rc2, dxy, xd, yd, zd; 109 109 110 const Double_t c_light = 2.99792458E8; 110 111 … … 214 215 if(x_c < 0.0) phi += TMath::Pi(); 215 216 217 rcu = TMath::Abs(r); 218 rc2 = r_c*r_c; 219 220 // calculate coordinates of closest approach to track circle in transverse plane xd, yd, zd 221 xd = x_c*x_c*x_c - x_c*rcu*r_c + x_c*y_c*y_c; 222 xd = ( rc2 > 0.0 ) ? xd / rc2 : -999; 223 yd = y_c*(-rcu*r_c + rc2); 224 yd = ( rc2 > 0.0 ) ? yd / rc2 : -999; 225 zd = z + (TMath::Sqrt(xd*xd+yd*yd) - TMath::Sqrt(x*x+y*y))*pz/pt; 226 227 // calculate impact paramater 228 ang_mom = (xd*py - yd*px); 229 dxy = ang_mom/pt; 230 231 216 232 // 3. time evaluation t = TMath::Min(t_r, t_z) 217 233 // t_r : time to exit from the sides … … 267 283 268 284 candidate->Momentum = candidateMomentum; 269 candidate->AddCandidate(mother); 285 candidate->Xd = xd*1.0E3; 286 candidate->Yd = yd*1.0E3; 287 candidate->Zd = zd*1.0E3; 288 289 candidate->AddCandidate(mother); 270 290 271 291 fOutputArray->Add(candidate); … … 287 307 288 308 //------------------------------------------------------------------------------ 309
Note:
See TracChangeset
for help on using the changeset viewer.