Skip to content

Commit 7ddb8f3

Browse files
committed
bugfix: do not overwrite intial z-vertex position
1 parent e731821 commit 7ddb8f3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Generators/src/GeneratorGeantinos.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ Bool_t GeneratorGeantinos::ReadEvent(FairPrimaryGenerator* primGen)
101101
Float_t dalicz = 3000;
102102
if (mRadMin > 0) {
103103
t = PropagateCylinder(orig, pmom, mRadMin, dalicz);
104-
orig[0] = pmom[0] * t;
105-
orig[1] = pmom[1] * t;
106-
orig[2] = pmom[2] * t;
104+
orig[0] += pmom[0] * t;
105+
orig[1] += pmom[1] * t;
106+
orig[2] += pmom[2] * t;
107107
if (TMath::Abs(orig[2]) > mZMax) {
108108
return kFALSE;
109109
}

0 commit comments

Comments
 (0)