Fork me on GitHub

Changeset 3a105e5 in git for modules/TrackCovariance.cc


Ignore:
Timestamp:
Feb 24, 2022, 4:15:47 PM (3 years ago)
Author:
michele <michele.selvaggi@…>
Branches:
master
Children:
2a2f310
Parents:
56fb0be
Message:

added first hit to track

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/TrackCovariance.cc

    r56fb0be r3a105e5  
    121121    const TLorentzVector &candidateMomentum = particle->Momentum;
    122122
     123
    123124    Bool_t inside = TrkUtil::IsInside(candidatePosition.Vect(), Rin, ZinNeg, ZinPos); // Check if in inner box
    124125    Bool_t Accept = kTRUE;
     
    130131
    131132    ObsTrk track(candidatePosition.Vect(), candidateMomentum.Vect(), candidate->Charge, fCovariance, fGeometry);
     133
    132134
    133135    mother    = candidate;
     
    150152    candidate->Yd = track.GetObsX().Y()*1e03;
    151153    candidate->Zd = track.GetObsX().Z()*1e03;
     154
     155    candidate->XFirstHit = track.GetFirstHit().X()*1e03;
     156    candidate->YFirstHit = track.GetFirstHit().Y()*1e03;
     157    candidate->ZFirstHit = track.GetFirstHit().Z()*1e03;
    152158
    153159    candidate->D0       = track.GetObsPar()[0]*1e03;
Note: See TracChangeset for help on using the changeset viewer.