<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<div style="word-wrap:break-word">Dear all
<div><br>
</div>
<div>with the help of Samantha Dooling, Nastja Grebenyuk & Mira Kraemer we finally got a easy way to print out the HepMC event record in a format similar to PYTHIA. Maybe it is of use also for other people...</div>
<div>The Rivet routine is attached.</div>
<div><br>
</div>
<div>Cheers</div>
<div>Hannes</div>
<div></div>
</div>
<div style="word-wrap:break-word">
<div><br>
<div>
<div>On 08.08.2012, at 10:40, Hannes Jung wrote:</div>
<br class="x_Apple-interchange-newline">
<blockquote type="cite">
<div style="word-wrap:break-word">Thanks a lot Holger.
<div>This is fine, yes.</div>
<div><br>
</div>
<div>I was actually looking for something which is just the event listing, </div>
<div>in an output format similar to the PYTHIA event listing, or as is in</div>
<div>HepMC::IO_AsciiParticles</div>
<div>But the HepMC::IO_AsciiParticles I couldn't get working...</div>
<div><br>
</div>
<div>Thanks </div>
<div><br>
</div>
<div>Hannes</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
<div>
<div>On 08.08.2012, at 10:28, Holger Schulz wrote:</div>
<br class="x_Apple-interchange-newline">
<blockquote type="cite">
<div bgcolor="#FFFFFF">On 07/08/12 22:27, Hannes Jung wrote:
<blockquote type="cite">
<pre>Dear Andy et al
thanks a lot for your reply.
It's really fascinating, how complicated and difficult very trivial things are in Rivet.
It must be a MUST, that one can print out the HEPMC record in a readable format...
but it seems I can only get it via
event.genEvent().print()
but then the format is cryptic.</pre>
</blockquote>
Hi Hannes,<br>
<br>
I always use the HepMC print() functions, I never had problems<br>
looking at particles, vertices or whole events.<br>
<br>
Here is some example syntax I use to check vertices:<br>
<blockquote>const GenEvent & hepmc = event.genEvent();<br>
for (HepMC::GenEvent::vertex_const_iterator vtx = hepmc.vertices_begin() ;<br>
vtx != hepmc.vertices_end() ; ++vtx) {<br>
(*vtx)->print();<br>
}<br>
</blockquote>
and similar for particles coming from a decay vertex:<br>
<br>
<blockquote>const HepMC::GenParticle& genp = p.genParticle();<br>
HepMC::GenVertex* decV = genp.end_vertex();<br>
</blockquote>
<blockquote>for (HepMC::GenVertex::particles_out_const_iterator pp = decV->particles_out_const_begin() ;<br>
pp != decV->particles_out_const_end() ; ++pp) {<br>
(*pp)->print();<br>
</blockquote>
}<br>
<br>
Hope that helps,<br>
Holger<br>
<blockquote type="cite">
<pre>How do you people check, if selections etc are correct, if there is no way to printout
what comes from the MC ?
It would be really very good if this could be provided.... I tried to do it, but failed
due to my ignorance in the Rivet structure... so if anyone can help there, I would
be really, really very happy....
I try to promote Rivet for our summer-students.... so.........
Thanks a lot
cheers
Hannes
On 07.08.2012, at 17:07, Andy Buckley wrote:
</pre>
<blockquote type="cite">
<pre>It's really a HepMC thing: Rivet doesn't include any special printout
formatting for GenEvents. The best I can think of offhand is, if you
have a Particle p, to use p.genParticle().print(). Any other HepMC
library function can also be used on the p.genEvent() reference.
Hope that helps,
Andy
On 07/08/12 15:18, Hannes Jung wrote:
</pre>
<blockquote type="cite">
<pre>Dear Rivet developers
I was wondering, whether there is an easy way to print out the HepMC
record in human readable format within Rivet, so that one can see
directly the event one is analyzing ?
Probably I have just not found the proper place, where this is
described... any hint would be great...
thanks a lot
cheers
Hannes
***********************************************************************
Hannes Jung
Email: <a class="x_moz-txt-link-abbreviated" href="mailto:Hannes.Jung@desy.de">Hannes.Jung@desy.de</a> <a class="x_moz-txt-link-rfc2396E" href="mailto:Hannes.Jung@desy.de"><mailto:Hannes.Jung@desy.de></a>
mobile :+49 40 8998 93741
<a class="x_moz-txt-link-freetext" href="http://www.desy.de/~jung">http://www.desy.de/~jung</a>
Tel: +49 (0) 40 8998 3741
Fax: +49 (0) 40 8998 3093
DESY, CMS 01B/02.213
Notkestr.85, 22603 Hamburg, FRG
***********************************************************************
_______________________________________________
Rivet mailing list
<a class="x_moz-txt-link-abbreviated" href="mailto:Rivet@projects.hepforge.org">Rivet@projects.hepforge.org</a>
<a class="x_moz-txt-link-freetext" href="http://www.hepforge.org/lists/listinfo/rivet">http://www.hepforge.org/lists/listinfo/rivet</a>
</pre>
</blockquote>
<pre>--
Dr Andy Buckley, SUPA Advanced Research Fellow
Particle Physics Expt Group, University of Edinburgh
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
</pre>
</blockquote>
<pre>***********************************************************************
Hannes Jung
Email: <a class="x_moz-txt-link-abbreviated" href="mailto:Hannes.Jung@desy.de">Hannes.Jung@desy.de</a>
mobile :+49 40 8998 93741
<a class="x_moz-txt-link-freetext" href="http://www.desy.de/~jung">http://www.desy.de/~jung</a>
Tel: +49 (0) 40 8998 3741
Fax: +49 (0) 40 8998 3093
DESY, CMS 01B/02.213
Notkestr.85, 22603 Hamburg, FRG
***********************************************************************
_______________________________________________
Rivet mailing list
<a class="x_moz-txt-link-abbreviated" href="mailto:Rivet@projects.hepforge.org">Rivet@projects.hepforge.org</a>
<a class="x_moz-txt-link-freetext" href="http://www.hepforge.org/lists/listinfo/rivet">http://www.hepforge.org/lists/listinfo/rivet</a>
</pre>
</blockquote>
<br>
</div>
_______________________________________________<br>
Rivet mailing list<br>
<a href="mailto:Rivet@projects.hepforge.org">Rivet@projects.hepforge.org</a><br>
<a href="http://www.hepforge.org/lists/listinfo/rivet">http://www.hepforge.org/lists/listinfo/rivet</a></blockquote>
</div>
<br>
<div>
<div style="word-wrap:break-word">
<div><span class="x_Apple-style-span" style="font-size:12px">***********************************************************************</span></div>
<div><span class="x_Apple-style-span" style="font-size:12px">
<div>Hannes Jung </div>
<div>Email: <a href="mailto:Hannes.Jung@desy.de">Hannes.Jung@desy.de</a> </div>
<div>mobile :+49 40 8998 93741</div>
<div><a href="http://www.desy.de/~jung">http://www.desy.de/~jung</a> </div>
<div>Tel: +49 (0) 40 8998 3741 </div>
<div>Fax: +49 (0) 40 8998 3093 </div>
</span></div>
</div>
<span class="x_Apple-style-span" style="border-collapse:separate; font-family:Helvetica; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px">
<div style="word-wrap:break-word">
<div><span class="x_Apple-style-span" style="font-size:12px">
<div>DESY, CMS 01B/02.213</div>
<div>Notkestr.85, 22603 Hamburg, FRG </div>
<div>***********************************************************************</div>
<br class="x_Apple-interchange-newline">
</span></div>
</div>
</span><br class="x_Apple-interchange-newline">
<br class="x_Apple-interchange-newline">
</div>
<br>
</div>
</div>
</blockquote>
</div>
<br>
<div><span class="x_Apple-style-span" 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; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; font-size:medium"><span class="x_Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-family:Helvetica; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px">
<div style="word-wrap:break-word">
<div><span class="x_Apple-style-span" style="font-size:12px">***********************************************************************</span></div>
<div><span class="x_Apple-style-span" style="font-size:12px">
<div>Hannes Jung </div>
<div>Email: <a href="mailto:Hannes.Jung@desy.de">Hannes.Jung@desy.de</a> </div>
<div>mobile :+49 40 8998 93741</div>
<div><a href="http://www.desy.de/~jung">http://www.desy.de/~jung</a> </div>
<div>Tel: +49 (0) 40 8998 3741 </div>
<div>Fax: +49 (0) 40 8998 3093 </div>
</span></div>
</div>
</span><span class="x_Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-family:Helvetica; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px">
<div style="word-wrap:break-word">
<div><span class="x_Apple-style-span" style="font-size:12px">
<div>DESY, CMS 01B/02.213</div>
<div>Notkestr.85, 22603 Hamburg, FRG </div>
<div>***********************************************************************</div>
<br class="x_Apple-interchange-newline">
</span></div>
</div>
</span><br class="x_Apple-interchange-newline">
</span><br class="x_Apple-interchange-newline">
</div>
<br>
</div>
</div>
</body>
</html>