Fork me on GitHub

Changes in / [974f5bc:09ffaee] in git


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/ParticlePropagator.cc

    r974f5bc r09ffaee  
    135135  Double_t l, d0, dz, p, ctgTheta, phip, etap, alpha;
    136136  Double_t bsx, bsy, bsz;
    137   Double_t s0, s1, sd;
    138  
     137
    139138  const Double_t c_light = 2.99792458E8;
    140139
     
    298297      zd = z + (TMath::Sqrt(xd * xd + yd * yd) - TMath::Sqrt(x * x + y * y)) * pz / pt;
    299298
    300       // proper calculation of the DCAz coordinate
    301       // s0: track circle parameter at the track origin
    302       // s1: track circle parameter at the closest approach to beam pipe
    303       // sd: s1-s0 signed angular difference
    304       s0 = atan2(y - y_c, x - x_c);
    305       s1 = atan2(yd - y_c, xd - x_c);
    306       sd = atan2(sin(s1 - s0), cos(s1 - s0));
    307       zd = z - r * pz / pt * sd;
    308      
    309299      // use perigee momentum rather than original particle
    310300      // momentum, since the orignal particle momentum isn't known
Note: See TracChangeset for help on using the changeset viewer.