Fork me on GitHub

Ignore:
Timestamp:
Apr 16, 2014, 4:08:33 PM (11 years ago)
Author:
Michele Selvaggi
Message:

track counting btagging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/ParticlePropagator.cc

    r1342 r1367  
    106106  Double_t tmp, discr, discr2;
    107107  Double_t delta, gammam, omega, asinrho;
    108 
     108  Double_t ang_mom, rcu, rc2, dxy, xd, yd, zd;
     109 
    109110  const Double_t c_light = 2.99792458E8;
    110111
     
    214215      if(x_c < 0.0) phi += TMath::Pi();
    215216
     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         
    216232      // 3. time evaluation t = TMath::Min(t_r, t_z)
    217233      //    t_r : time to exit from the sides
     
    267283
    268284        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);
    270290
    271291        fOutputArray->Add(candidate);
     
    287307
    288308//------------------------------------------------------------------------------
     309
Note: See TracChangeset for help on using the changeset viewer.