Skip to content

Commit

Permalink
Fix sherpa weights when no weight list is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
thuer committed Sep 8, 2016
1 parent 50f7a36 commit 0289558
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions GeneratorInterface/SherpaInterface/src/SherpaHadronizer.cc
Expand Up @@ -324,12 +324,12 @@ bool SherpaHadronizer::generatePartonsAndHadronize()
}

}
}

//Change original weights for reordered ones
evt->weights().clear();
for (auto& elem: newWeights) {
evt->weights().push_back(elem);
evt->weights().clear();
for (auto& elem: newWeights) {
evt->weights().push_back(elem);
}
}

if(unweighted){
Expand Down

0 comments on commit 0289558

Please sign in to comment.