<div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif">Thanks Andy, really useful suggestions.</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><b><span style="background-color:rgb(255,255,255);color:rgb(204,204,255)">Mukesh Kumar<br></span><span style="color:rgb(204,204,255);background-color:rgb(255,255,255)"></span></b><b><span style="color:rgb(204,204,255);background-color:rgb(255,255,255)">School of Physics & MITP<br>
University of the Witwatersrand<br>
Private Bag 3<br>
Wits 2050<br>
South Africa<br>Mob. No. +27 829 624 780</span><br><br></b></div><div><b>emails: <a href="mailto:mukesh.kumar@cern.ch" target="_blank">mukesh.kumar@cern.ch</a><br></b></div><div><b> <a href="mailto:mukesh.kumar@wits.ac.za" target="_blank">mukesh.kumar@wits.ac.za</a><br></b></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Sun, Nov 29, 2015 at 7:57 PM, Andy Buckley <span dir="ltr"><<a href="mailto:andy.buckley@cern.ch" target="_blank">andy.buckley@cern.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Mukesh,<br>
<br>
Rivet doesn't have any *built-in* support for ntupling -- it's primarily designed as an events-to-plots system for MC validation, tuning and prototyping.<br>
<br>
The file format is not the only reason that the files would be much bigger -- although YODA's text format is not primarily designed for space efficiency. In the mode that you want, the output files grow with the number of input events, while histograms have a fixed size determined by the numbers of bins. You can of course already make cut flow histograms etc. within the event loop, but you won't have access to event-by-event correlations and other things that are useful for cut optimisation.<br>
<br>
But if you want you can create a ROOT TTree and TFile in the init() method and then fill entries into the tree with each event: that is pretty easy to do, and will result in an output ROOT file like you want... but there aren't any built-in tools to help you do it.<br>
<br>
Andy<span class=""><br>
<br>
<br>
On 29/11/15 12:43, Mukesh Kumar wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Andy,<br>
<br><span class="">
Thanks for the answer, and in fact you answered by saying "ntuple" is<br>
much larger file but is there any possibility<br>
to save that in lighter version may be in root files so that one could<br>
do analysis for rates, cut-flows etc?<br>
<br></span>
*Mukesh Kumar<br>
**School of Physics & MITP<span class=""><br>
University of the Witwatersrand<br>
Private Bag 3<br>
Wits 2050<br>
South Africa<br>
Mob. No. <a href="tel:%2B27%20829%20624%20780" value="+27829624780" target="_blank">+27 829 624 780</a><br>
<br></span>
*<br>
*emails: <a href="mailto:mukesh.kumar@cern.ch" target="_blank">mukesh.kumar@cern.ch</a> <mailto:<a href="mailto:mukesh.kumar@cern.ch" target="_blank">mukesh.kumar@cern.ch</a>><br>
*<br>
*<a href="mailto:mukesh.kumar@wits.ac.za" target="_blank">mukesh.kumar@wits.ac.za</a> <mailto:<a href="mailto:mukesh.kumar@wits.ac.za" target="_blank">mukesh.kumar@wits.ac.za</a>><br>
*<span class=""><br>
<br>
On Thu, Nov 26, 2015 at 10:11 AM, Andy Buckley <<a href="mailto:andy.buckley@cern.ch" target="_blank">andy.buckley@cern.ch</a><br></span><div><div class="h5">
<mailto:<a href="mailto:andy.buckley@cern.ch" target="_blank">andy.buckley@cern.ch</a>>> wrote:<br>
<br>
On 25/11/15 18:34, Mukesh Kumar wrote:<br>
<br>
Hi Andy,<br>
<br>
I have a simple query on rivet-analysis:<br>
After piping with HepMC files we get .yoda files following the<br>
analysis<br>
routine where we filled<br>
all the histograms and as a result get the needed plots.<br>
But is it possible somehow to use those .yoda files for the<br>
purpose of<br>
statistical analysis,<br>
I mean further if I just want to look for significance after<br>
some cut<br>
choices etc. In this way<br>
always we don't need to run the codes again and again which<br>
really takes<br>
longer.<br>
<br>
Hope you understand what I meant to ask.<br>
<br>
<br>
Hi Mukesh,<br>
<br>
I'm not sure I do fully understand -- the .yoda file contains<br>
histograms, i.e. the "per event" observables and their correlations<br>
have been lost. Otherwise it would be an ntuple file and would be<br>
*much* larger.<br>
<br>
You can of course make transformations on the histograms, i.e.<br>
rescale, divide, integrate, ... but I think that's not what you're<br>
asking for?<br>
<br>
Andy<br>
<br>
--<br>
Dr Andy Buckley, Lecturer / Royal Society University Research Fellow<br>
Particle Physics Expt Group, University of Glasgow<br>
<br>
<br>
</div></div></blockquote><div class="HOEnZb"><div class="h5">
<br>
<br>
-- <br>
Dr Andy Buckley, Lecturer / Royal Society University Research Fellow<br>
Particle Physics Expt Group, University of Glasgow<br>
</div></div></blockquote></div><br></div>