<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<div class="BodyFragment"><font size="2"><span style="font-size:10pt;">
<div class="PlainText">Hi Andy<br>
<br>
thanks for your mail, yes would be nice to have something like this.<br>
Actually, I am pretty happy with what we got from the IO_AsciiiParticles,<br>
in the routine, which I had attached.... (I attach it again)<br>
<br>
Thanks aanyway for looking into it..<br>
Cheers<br>
<br>
Hannes<br>
</div>
</span></font></div>
<div class="BodyFragment"><font size="2"><span style="font-size:10pt;">
<div class="PlainText"><br>
On 10.08.2012, at 00:11, Andy Buckley wrote:<br>
<br>
> Hi Hannes,<br>
> <br>
> I may have been incredulous about the *expectation* that Rivet would<br>
> contain such a function, but I do see the usefulness of one. It won't be<br>
> high priority, but I'll look into providing a one-liner way to do it in<br>
> a future release. ATLAS has some fairly nice pretty-printing code that I<br>
> can probably "borrow" :-)<br>
> <br>
> I did think that this would be as simple as<br>
> <br>
> inline void printEvent(const GenEvent& evt) {<br>
>    HepMC::IO_AsciiParticles ascii_io(std::cout);<br>
>    ascii_io.write_event(&evt);<br>
> }<br>
> <br>
> but unfortunately IO_AsciiParticles does not work the same way re.<br>
> stream constructors as does IO_GenEvent. If only HepMC were better...<br>
> but we're stuck with it now!<br>
> <br>
> Cheers,<br>
> Andy<br>
> <br>
> <br>
> On 09/08/12 08:50, Hannes Jung wrote:<br>
>> Hi Andy<br>
>> <br>
>> to print to HepMC in a readable format is very essential<br>
>> for people trying to learn what the MC is doing and to understand<br>
>> how to do a selection for the analysis, also using Rivet just for<br>
>> MC studies.<br>
>> <br>
>> We have now several summerstudents, who use Rivet as an interface<br>
>> to the MCs and to perform different studies. For this an understanding of<br>
>> the event record is important.<br>
>> <br>
>> Anyway, as I send yesterday in my mail, we have now managed to print<br>
>> the HepMC record in a readable format in Rivet, so this is fine now.<br>
>> Maybe it could be of help also for others to have this option available.<br>
>> <br>
>> Cheers<br>
>> <br>
>> Hannes<br>
>> <br>
>> <br>
>> <br>
>> <br>
>> On 09.08.2012, at 09:26, Andy Buckley wrote:<br>
>> <br>
>>> Hi Hannes,<br>
>>> <br>
>>> Why on earth would Rivet have a "print event like PYTHIA" function? The<br>
>>> access to the GenEvent object with all the structure is one function<br>
>>> call away from Rivet::Event -- is that really "complicated and<br>
>>> difficult"?!<br>
>>> <br>
>>> We've tried to provide nicer ways than HepMC itself to access event<br>
>>> details -- iterating over particles, for example, is far easier than in<br>
>>> native HepMC. But our emphasis is on the histogrammed output more than<br>
>>> what's printed out to the terminal... and far more on the final state<br>
>>> and hadron relationships than the internal HepMC structure.<br>
>>> <br>
>>> Other than the HepMC print and IO_AsciiParticles functions (and reading<br>
>>> the ASCII format), there are also a few graphical visualisation tools,<br>
>>> e.g. mcviz, that might be of interest.<br>
>>> <br>
>>> Cheers,<br>
>>> Andy<br>
>>> <br>
>>> <br>
>>> On 07/08/12 21:27, Hannes Jung wrote:<br>
>>>> Dear Andy et al<br>
>>>> <br>
>>>> thanks a lot for your reply.<br>
>>>> <br>
>>>> It's really fascinating, how complicated and difficult very trivial<br>
>>>> things are in Rivet.<br>
>>>> It must be a MUST, that one can print out the HEPMC record in a<br>
>>>> readable format...<br>
>>>> but it seems I can only get it via<br>
>>>> event.genEvent().print()<br>
>>>> but then the format is cryptic.<br>
>>>> <br>
>>>> How do you people check, if selections etc are correct, if there is<br>
>>>> no way to printout<br>
>>>> what comes from the MC ?<br>
>>>> <br>
>>>> It would be really very good if this could be provided.... I tried to<br>
>>>> do it, but failed<br>
>>>> due to my ignorance in the Rivet structure... so if anyone can help<br>
>>>> there, I would<br>
>>>> be really, really very happy....<br>
>>>> <br>
>>>> I try to promote Rivet for our summer-students.... so.........<br>
>>>> <br>
>>>> Thanks a lot<br>
>>>> <br>
>>>> cheers<br>
>>>> Hannes<br>
>>>> <br>
>>>> On 07.08.2012, at 17:07, Andy Buckley wrote:<br>
>>>> <br>
>>>>> It's really a HepMC thing: Rivet doesn't include any special printout<br>
>>>>> formatting for GenEvents. The best I can think of offhand is, if you<br>
>>>>> have a Particle p, to use p.genParticle().print(). Any other HepMC<br>
>>>>> library function can also be used on the p.genEvent() reference.<br>
>>>>> <br>
>>>>> Hope that helps,<br>
>>>>> Andy<br>
>>>>> <br>
>>>>> <br>
>>>>> On 07/08/12 15:18, Hannes Jung wrote:<br>
>>>>>> Dear Rivet developers<br>
>>>>>> <br>
>>>>>> I was wondering, whether there is an easy way to print out the HepMC<br>
>>>>>> record in human readable format within Rivet, so that one can see<br>
>>>>>> directly the event one is analyzing ?<br>
>>>>>> <br>
>>>>>> Probably I have just not found the proper place, where this is<br>
>>>>>> described... any hint would be great...<br>
>>>>>> <br>
>>>>>> thanks a lot<br>
>>>>>> <br>
>>>>>> cheers<br>
>>>>>> Hannes<br>
>>>>>> <br>
>>>>>> <br>
>>>>>> ***********************************************************************<br>
>>>>>> Hannes Jung<br>
>>>>>> Email: Hannes.Jung@desy.de <<a href="mailto:Hannes.Jung@desy.de">mailto:Hannes.Jung@desy.de</a>><br>
>>>>>> <<a href="mailto:Hannes.Jung@desy.de">mailto:Hannes.Jung@desy.de</a>><br>
>>>>>> mobile :+49 40 8998 93741<br>
>>>>>> <a href="http://www.desy.de/~jung">http://www.desy.de/~jung</a>                                          
<br>
>>>>>> Tel: +49 (0) 40 8998 3741         <br>
>>>>>> Fax: +49 (0) 40 8998 3093<br>
>>>>>> DESY, CMS 01B/02.213<br>
>>>>>> Notkestr.85, 22603 Hamburg, FRG   <br>
>>>>>> ***********************************************************************<br>
>>>>>> <br>
>>>>>> <br>
>>>>>> <br>
>>>>>> <br>
>>>>>> <br>
>>>>>> <br>
>>>>>> _______________________________________________<br>
>>>>>> Rivet mailing list<br>
>>>>>> Rivet@projects.hepforge.org <<a href="mailto:Rivet@projects.hepforge.org">mailto:Rivet@projects.hepforge.org</a>><br>
>>>>>> <a href="http://www.hepforge.org/lists/listinfo/rivet">http://www.hepforge.org/lists/listinfo/rivet</a><br>
>>>>>> <br>
>>>>> <br>
>>>>> <br>
>>>>> -- <br>
>>>>> Dr Andy Buckley, SUPA Advanced Research Fellow<br>
>>>>> Particle Physics Expt Group, University of Edinburgh<br>
>>>>> <br>
>>>>> The University of Edinburgh is a charitable body, registered in<br>
>>>>> Scotland, with registration number SC005336.<br>
>>>>> <br>
>>>> <br>
>>>> ***********************************************************************<br>
>>>> Hannes Jung<br>
>>>> Email: Hannes.Jung@desy.de <<a href="mailto:Hannes.Jung@desy.de">mailto:Hannes.Jung@desy.de</a>><br>
>>>> mobile :+49 40 8998 93741<br>
>>>> <a href="http://www.desy.de/~jung">http://www.desy.de/~jung</a>                                          
<br>
>>>> Tel: +49 (0) 40 8998 3741         <br>
>>>> Fax: +49 (0) 40 8998 3093<br>
>>>> DESY, CMS 01B/02.213<br>
>>>> Notkestr.85, 22603 Hamburg, FRG   <br>
>>>> ***********************************************************************<br>
>>>> <br>
>>>> <br>
>>>> <br>
>>>> <br>
>>>> <br>
>>> <br>
>>> <br>
>>> -- <br>
>>> Dr Andy Buckley, SUPA Advanced Research Fellow<br>
>>> Particle Physics Expt Group, University of Edinburgh<br>
>>> <br>
>>> The University of Edinburgh is a charitable body, registered in<br>
>>> Scotland, with registration number SC005336.<br>
>>> <br>
>> <br>
>> ***********************************************************************<br>
>> Hannes Jung <br>
>> Email: Hannes.Jung@desy.de <<a href="mailto:Hannes.Jung@desy.de">mailto:Hannes.Jung@desy.de</a>>
<br>
>> mobile :+49 40 8998 93741<br>
>> <a href="http://www.desy.de/~jung">http://www.desy.de/~jung</a>                                          
<br>
>> Tel: +49 (0) 40 8998 3741         <br>
>> Fax: +49 (0) 40 8998 3093 <br>
>> DESY, CMS 01B/02.213<br>
>> Notkestr.85, 22603 Hamburg, FRG   <br>
>> ***********************************************************************<br>
>> <br>
>> <br>
>> <br>
>> <br>
> <br>
> <br>
> -- <br>
> Dr Andy Buckley, SUPA Advanced Research Fellow<br>
> Particle Physics Expt Group, University of Edinburgh<br>
> <br>
> The University of Edinburgh is a charitable body, registered in<br>
> Scotland, with registration number SC005336.<br>
> <br>
<br>
***********************************************************************<br>
Hannes Jung <br>
Email: Hannes.Jung@desy.de <br>
mobile :+49 40 8998 93741<br>
<a href="http://www.desy.de/~jung">http://www.desy.de/~jung</a>                                          
<br>
Tel: +49 (0) 40 8998 3741         <br>
Fax: +49 (0) 40 8998 3093 <br>
DESY, CMS 01B/02.213<br>
Notkestr.85, 22603 Hamburg, FRG   <br>
***********************************************************************<br>
<br>
<br>
<br>
<br>
</div>
</span></font></div>
</body>
</html>