Fork me on GitHub

Changeset 974f5bc in git for modules


Ignore:
Timestamp:
Apr 17, 2020, 9:53:31 AM (5 years ago)
Author:
GitHub <noreply@…>
Branches:
master
Children:
5c716fa
Parents:
09ffaee (diff), a07b54c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Pavel Demin <pavel-demin@…> (04/17/20 09:53:31)
git-committer:
GitHub <noreply@…> (04/17/20 09:53:31)
Message:

Merge pull request #72 from preghenella/rdev

Proper calculation of the DCAz coordinate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/ParticlePropagator.cc

    r09ffaee r974f5bc  
    135135  Double_t l, d0, dz, p, ctgTheta, phip, etap, alpha;
    136136  Double_t bsx, bsy, bsz;
    137 
     137  Double_t s0, s1, sd;
     138 
    138139  const Double_t c_light = 2.99792458E8;
    139140
     
    297298      zd = z + (TMath::Sqrt(xd * xd + yd * yd) - TMath::Sqrt(x * x + y * y)) * pz / pt;
    298299
     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     
    299309      // use perigee momentum rather than original particle
    300310      // momentum, since the orignal particle momentum isn't known
Note: See TracChangeset for help on using the changeset viewer.