<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><br><div>Andy</div><br><div><signature id="initial"><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></signature></div><div class="gmail_quote_attribution">On Jan 23 2018, at 5:21 pm, Kolja Kauder <kkauder@gmail.com> 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 <deepak.kar@cern.ch> 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 <kkauder@gmail.com> 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().GetName()</div><br><div>Thanks,</div><div>Kolja</div><br><div>On Tue, Jan 23, 2018 at 7:05 AM, Andy Buckley <andy.buckley@cern.ch></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 <kkauder@gmail.com> 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>_______________________________________________</div><div>Rivet mailing list</div><div>Rivet@projects.hepforge.org</div><div>https://www.hepforge.org/lists/listinfo/rivet</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>_______________________________________________</div><div>Rivet mailing list</div><div>Rivet@projects.hepforge.org</div><div>https://www.hepforge.org/lists/listinfo/rivet</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) 330-998-1500 (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>