<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>Hi Frank, </div><div>sorry for the lazy question - and thanks that's very useful- </div><div>Cheers, S</div><div><br></div><br><div><div>On Feb 17, 2014, at 9:00 PM, Frank Siegert wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi Stefania,<br><br>I understand you have already managed to get to the HepMC event with<br>the Rivet::Event::genEvent() method:<br><a href="http://rivet.hepforge.org/code/dev/a00236.html#a57dbce8fdc74bca2487f624010724272">http://rivet.hepforge.org/code/dev/a00236.html#a57dbce8fdc74bca2487f624010724272</a><br><br>From there it's a matter of HepMC to get to the PdfInfo. The function<br>you want is HepMC::GenEvent::pdf_info(), cf. line 234ff here:<br>http://svnweb.cern.ch/world/wsvn/hepmc/trunk/HepMC/GenEvent.h<br><br>Hope that helps,<br>Frank<br><br><br>On 17 February 2014 20:09, stefania spagnolo<br><stefania.spagnolo@le.infn.it> wrote:<br><blockquote type="cite"><br></blockquote><blockquote type="cite">Dear all,<br></blockquote><blockquote type="cite">I'm running a rivet analysis on hepmc files produced with aMC@NLO and<br></blockquote><blockquote type="cite">showered with Herwig++; I need to retrieve some extra info written in the<br></blockquote><blockquote type="cite">lhe original file which are not propagated to the hepmc format. The problem<br></blockquote><blockquote type="cite">I have is that the hepmc file misses a few events (parton shower failure<br></blockquote><blockquote type="cite">while running, I guess) and therefore I need to make sure I'm associating<br></blockquote><blockquote type="cite">the correct lhe event to the hepmc event.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Therefore, I'd like to retrieve some special event info from the hepmc event<br></blockquote><blockquote type="cite">header; in particular I've the impression that the pdfScale of the event<br></blockquote><blockquote type="cite">might be useful ...<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">In my hepmc file this is the 4th word in the Event header row:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">E 3 -1 2.8168094000000000e+01 1.4036799198303040e-01 7.6616229391653504e-03<br></blockquote><blockquote type="cite">0 -1 245 10003 10007 0 1 1.0000000000000000e+00<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">And in the lhe file I can easily find it again in the event header:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> <event><br></blockquote><blockquote type="cite"> 6 66 0.70177165E-03 0.28168094E+02 0.79577472E-01 0.11965156E+00<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Cross checking the value, might allow to make sure I'm reading the same<br></blockquote><blockquote type="cite">event from the two files (hepmc and lhe).<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">So the question:<br></blockquote><blockquote type="cite">How can I access the PdfInfo object from the hepmc event in the analyze<br></blockquote><blockquote type="cite">method of a rivet analysis ?<br></blockquote><blockquote type="cite">I've tried to browse the code without much success ...<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thanks for any suggestion,<br></blockquote><blockquote type="cite">Cheers,<br></blockquote><blockquote type="cite">Stefania<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Stefania Spagnolo<br></blockquote><blockquote type="cite">----------------------------------------------------------------------------------------------<br></blockquote><blockquote type="cite"> Sezione INFN di Lecce<br></blockquote><blockquote type="cite"> Dip. di Matematica e Fisica "Ennio DeGiorgi", Univ. del Salento<br></blockquote><blockquote type="cite"> Phone: +39 0832 297439<br></blockquote><blockquote type="cite"> http://www.dmf.unisalento.it/~spagnolo/<br></blockquote><blockquote type="cite"> ATLAS experiment<br></blockquote><blockquote type="cite">----------------------------------------------------------------------------------------------<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">Rivet mailing list<br></blockquote><blockquote type="cite">Rivet@projects.hepforge.org<br></blockquote><blockquote type="cite">http://www.hepforge.org/lists/listinfo/rivet<br></blockquote><br></div></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Helvetica Neue'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Helvetica Neue'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Helvetica Neue'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="orphans: 2; text-align: -webkit-auto; text-indent: 0px; widows: 2; -webkit-text-decorations-in-effect: none; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="orphans: 2; text-indent: 0px; widows: 2; -webkit-text-decorations-in-effect: none; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div><div><div style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div><div><div>Stefania Spagnolo<br>----------------------------------------------------------------------------------------------<br> Sezione INFN di Lecce <br> Dip. di Matematica e Fisica "Ennio DeGiorgi", Univ. del Salento <br> Phone: +39 0832 297439<br> <a href="http://www.dmf.unisalento.it/~spagnolo/">http://www.dmf.unisalento.it/~spagnolo/</a> <br></div> ATLAS experiment <br>----------------------------------------------------------------------------------------------<br></div><br></div></div></div></div></div></div></div></span></div></span></div></span></div></span></span><br class="Apple-interchange-newline">
</div>
<br></body></html>