Fork me on GitHub

Changeset 3a105e5 in git for modules


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

Location:
modules
Files:
2 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;
  • modules/TreeWriter.cc

    r56fb0be r3a105e5  
    384384    entry->Zd = candidate->Zd;
    385385
     386    entry->XFirstHit = candidate->XFirstHit;
     387    entry->YFirstHit = candidate->YFirstHit;
     388    entry->ZFirstHit = candidate->ZFirstHit;
     389
    386390    const TLorentzVector &momentum = candidate->Momentum;
    387391
     
    544548    entry->Zd = candidate->Zd;
    545549
     550    entry->XFirstHit = candidate->XFirstHit;
     551    entry->YFirstHit = candidate->YFirstHit;
     552    entry->ZFirstHit = candidate->ZFirstHit;
     553
    546554    const TLorentzVector &momentum = candidate->Momentum;
    547555
Note: See TracChangeset for help on using the changeset viewer.