Skip to content

Commit 4b86cfc

Browse files
wiechulasawenzel
authored andcommitted
Add missing setting of variable
1 parent 78453a7 commit 4b86cfc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Detectors/TPC/simulation/src/Detector.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ Bool_t Detector::ProcessHits(FairVolume* vol)
153153
if (fMC->IsTrackEntering() || fMC->IsTrackExiting()) {
154154
stack->addTrackReference(o2::TrackReference(position.X(), position.Y(), position.Z(), momentum.X(), momentum.Y(),
155155
momentum.Z(), fMC->TrackLength(), time, trackID, GetDetId()));
156+
lastReferenceR = fMC->TrackLength();
156157
}
157158
if (TMath::Abs(lastReferenceR - fMC->TrackLength()) > kMaxDistRef) { /// we can speedup
158159
stack->addTrackReference(o2::TrackReference(position.X(), position.Y(), position.Z(), momentum.X(), momentum.Y(),

0 commit comments

Comments
 (0)