Skip to content

Commit 840a084

Browse files
ehellbarsawenzel
authored andcommitted
fix BC jump offset for NonUniformMuInteractionSampler
1 parent f51f13d commit 840a084

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎DataFormats/simulation/src/InteractionSampler.cxx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ int NonUniformMuInteractionSampler::getBCJump() const
222222
double U = gRandom->Rndm(); // uniform (0,1)
223223
double T = -std::log(1.0 - U); // threshold
224224
double sumMu = 0.0;
225-
int offset = 0;
225+
int offset = 1;
226226
auto bcStart = mCurrBCIdx; // the current bc
227227

228228
while (sumMu < T) {

0 commit comments

Comments
 (0)