Fork me on GitHub

Changeset a52e99e in git for modules


Ignore:
Timestamp:
May 17, 2021, 5:17:50 PM (3 years ago)
Author:
michele <michele.selvaggi@…>
Branches:
master
Children:
04e2040
Parents:
d248604
Message:

fix tof calculation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/TimeOfFlight.cc

    rd248604 ra52e99e  
    110110
    111111    const TLorentzVector &candidateInitialPosition = particle->Position;
     112    const TLorentzVector &candidateInitialPositionSmeared = candidate->InitialPosition;
    112113    const TLorentzVector &candidateFinalPosition = candidate->Position;
    113114    const TLorentzVector &candidateMomentum = particle->Momentum;
     
    158159
    159160        // track displacement to be possibily replaced by vertex fitted position
    160         ti = candidate->Position.Vect().Mag() * 1.0E-3 /(beta*c_light);
     161        ti = candidateInitialPositionSmeared.Vect().Mag() * 1.0E-3 /(beta*c_light);
    161162      }
    162163      break;
     
    164165
    165166
    166     ti = ti - t_truth;
     167    //ti = ti - t_truth;
    167168
    168169    p = candidateMomentum.P();
Note: See TracChangeset for help on using the changeset viewer.