<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Dear Rivet experts<div class=""><br class=""></div><div class="">Looking at the Doxygen page for the Rivet Event class, I see that the weight is retrieved as follows:</div><div class=""><br class=""></div><div class=""><pre class="fragment" style="font-family: monospace, fixed; font-size: 9pt; border: 1px solid rgb(196, 207, 229); background-color: rgb(251, 252, 253); padding: 4px 6px; margin: 4px 8px 4px 2px; overflow: auto; word-wrap: break-word; line-height: 15px;">{
    <span class="keywordflow" style="color: rgb(224, 128, 0);">return</span> (!<a class="code" href="https://rivet.hepforge.org/code/dev/classRivet_1_1Event.html#ab1a3b4bbcb1af136c14405e4c6b4ea4d" title="The GenEvent used by Rivet analysis projections etc." style="text-decoration: none; color: rgb(70, 101, 162); border-bottom-style: none;">_genevent</a>.weights().empty()) ? <a class="code" href="https://rivet.hepforge.org/code/dev/classRivet_1_1Event.html#ab1a3b4bbcb1af136c14405e4c6b4ea4d" title="The GenEvent used by Rivet analysis projections etc." style="text-decoration: none; color: rgb(70, 101, 162); border-bottom-style: none;">_genevent</a>.weights()[0] : 1.0;
  }</pre><div class=""><br class=""></div></div><div class="">There is also a TODO which mentions the possibility of incorporating the multiple possible weights from the HepMC file.</div><div class=""><br class=""></div><div class="">My question is: is there any particular difficulty in trying to implement this? As far as I can tell, the HepMC::WeightContainer is pretty much just a vector of doubles, so I could try and hack the source code to get this vector through a new method.</div><div class=""><br class=""></div><div class="">Cheers</div><div class="">Stefan</div><div class=""><br class=""></div></body></html>