Skip to content

Commit

Permalink
Merge pull request #15775 from thuer/sherpa_event_weights_71X
Browse files Browse the repository at this point in the history
Fix sherpa weights when no weight list is provided
  • Loading branch information
cmsbuild committed Oct 4, 2016
2 parents 50f7a36 + 0289558 commit 97d1fd8
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 97d1fd8

Please sign in to comment.