<div dir="ltr">Thanks Andy, I understand the design philosophy behind it and will not try to circumvent it. </div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 23, 2018 at 1:13 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"><div>That name is not officially available inside Rivet. You might find some way to access it, e.g. via the /proc filesystem if you're on Linux, but it's not something that we provide on purpose!</div><span class="im HOEnZb"><br><div>Andy</div><br><div><u></u><div><table cellpadding="0" cellspacing="0"><tbody><tr><td colspan="2"><div style="padding-bottom:15px"><div><strong>Dr Andy Buckley, Lecturer / Royal Society University Research Fellow</strong></div><div>Particle Physics Experiment Group, University of Glasgow</div></div></td></tr><tr><td style="vertical-align:top"></td><td><div style="font-size:0.9em;white-space:nowrap;border-left:2px solid gray;margin-left:20px;padding-left:20px"><div><div></div><div></div></div></div></td></tr></tbody></table></div><u></u></div></span><div class="HOEnZb"><div class="h5"><div class="m_-6893497989596357332gmail_quote_attribution">On Jan 23 2018, at 5:21 pm, Kolja Kauder <<a href="mailto:kkauder@gmail.com" target="_blank">kkauder@gmail.com</a>> wrote:</div><blockquote><br><div><div>Hi Deepak,</div><br><div>If I understand correctly, that allows me to set the .yoda name, but</div><div>not the name of any custom output files. If I could intercept that</div><div>name from inside the framework, I can use a regex to create my own</div><div>name based on that; is that possible?</div><br><div>Thanks,</div><div>Kolja</div><br><div>On Tue, Jan 23, 2018 at 12:03 PM, Deepak Kar <<a href="mailto:deepak.kar@cern.ch" target="_blank">deepak.kar@cern.ch</a>> wrote:</div><blockquote><div>Hi,</div><br><div>You can set the output file name with -o option, but I am sure you</div><div>considered that!</div><br><div>Cheers,</div><div>Deepak</div><br><div>On Tue, Jan 23, 2018 at 6:59 PM, Kolja Kauder <<a href="mailto:kkauder@gmail.com" target="_blank">kkauder@gmail.com</a>> wrote:</div><blockquote><br><div>Hi Andy,</div><br><div>Understood, and I appreciate the concerns. Just to explain myself better,</div><div>the reason for wanting to do this because I use rivet as a hepmc processor,</div><div>i.e. I translate hepmc files into root trees. And in the current setup</div><div>there's no elegant way to customize an output filename from the input,</div><div>meaning I have to run individually and then cp or mv the result to the name</div><div>I actually want. That workflow does the trick, so my problems are "solved",</div><div>I just wanted to check for other options.</div><br><div>Fyi, when running over multiple files, my ideal interface would have been</div><div>something like handler().GetCurrentFile().<wbr>GetName()</div><br><div>Thanks,</div><div>Kolja</div><br><div>On Tue, Jan 23, 2018 at 7:05 AM, Andy Buckley <<a href="mailto:andy.buckley@cern.ch" target="_blank">andy.buckley@cern.ch</a>></div><div>wrote:</div><blockquote><br><div>Hi Kojla,</div><br><div>You mean you want your analysis to behave differently depending on the</div><div>input filename? For good reasons that is not an option -- not least that a</div><div>Rivet job can be running over many different files and it should not change</div><div>its behaviour midway.</div><br><div>If you want to change your analysis behaviour without recompiling, then</div><div>your best option is probably just to use environment variables and getopt().</div><div>Custom behaviours like that are not something that we accept for "official"</div><div>analyses, because it would become unmanageable with each using a different</div><div>ad hoc configuration convention -- so there isn't an official Rivet</div><div>mechanism for passing options to the analysis classes.</div><br><div>Andy</div><br><div>Dr Andy Buckley, Lecturer / Royal Society University Research Fellow</div><div>Particle Physics Experiment Group, University of Glasgow</div><div>On Jan 22 2018, at 11:19 pm, Kolja Kauder <<a href="mailto:kkauder@gmail.com" target="_blank">kkauder@gmail.com</a>> wrote:</div><br><br><div>Hi,</div><br><div>I would like to tailor my analysis (and the output filename) to the</div><div>hepmc input file, but I cannot figure out how to access that</div><div>information.</div><br><div>Thanks,</div><div>Kolja</div><br><div>--</div><div>________________________</div><div>Kolja Kauder, Ph.D.</div><div>Post-Doctoral Research Fellow,</div><div>Physics Dept., Wayne State University</div><div>________________________</div><div>______________________________<wbr>_________________</div><div>Rivet mailing list</div><div><a href="mailto:Rivet@projects.hepforge.org" target="_blank">Rivet@projects.hepforge.org</a></div><div><a href="https://www.hepforge.org/lists/listinfo/rivet" target="_blank">https://www.hepforge.org/<wbr>lists/listinfo/rivet</a></div></blockquote><br><br><br><br><div>--</div><div>________________________</div><div>Kolja Kauder, Ph.D.</div><div>Post-Doctoral Research Fellow,</div><div>Physics Dept., Wayne State University</div><div>________________________</div><br><div>______________________________<wbr>_________________</div><div>Rivet mailing list</div><div><a href="mailto:Rivet@projects.hepforge.org" target="_blank">Rivet@projects.hepforge.org</a></div><div><a href="https://www.hepforge.org/lists/listinfo/rivet" target="_blank">https://www.hepforge.org/<wbr>lists/listinfo/rivet</a></div><br><div>--</div><div>Deepak Kar</div><div>University of Witwatersrand</div><div>Room PM15, School of Physics</div><div>(0027) 011-7176958 (office) (0027) 0736944181 (mobile)</div><br><div>While at CERN:</div><div>Building 1, R-016</div><div>(0041) 0767321349 (mobile)</div><br><div>While at USA:</div><div>(001) <a href="tel:(330)%20998-1500" value="+13309981500" target="_blank">330-998-1500</a> (mobile)</div></blockquote></blockquote><br><br><br><div>--</div><div>________________________</div><div>Kolja Kauder, Ph.D.</div><div>Post-Doctoral Research Fellow,</div><div>Physics Dept., Wayne State University</div><div>________________________</div></div></blockquote></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">________________________<br>Kolja Kauder, Ph.D.<br>Post-Doctoral Research Fellow,<br>Physics Dept., Wayne State University<br>________________________</div>
</div>