<div dir="ltr">Hi,<div><br></div><div>You can set the output file name with -o option, but I am sure you considered that!</div><div><br></div><div>Cheers,</div><div>Deepak</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 23, 2018 at 6:59 PM, Kolja Kauder <span dir="ltr"><<a href="mailto:kkauder@gmail.com" target="_blank">kkauder@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Andy,<div><br></div><div>Understood, and I appreciate the concerns. Just to explain myself better, the reason for wanting to do this because I use rivet as a hepmc processor, i.e. I translate hepmc files into root trees. And in the current setup there's no elegant way to customize an output filename from the input, meaning I have to run individually and then cp or mv the result to the name I actually want. That workflow does the trick, so my problems are "solved", I just wanted to check for other options.<br></div><div><br></div><div>Fyi, when running over multiple files, my ideal interface would have been something like handler().GetCurrentFile().<wbr>GetName()</div><div><br></div><div>Thanks,</div><div>Kolja</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 23, 2018 at 7:05 AM, 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>Hi Kojla,</div><br><div>You mean you want your analysis to behave differently depending on the input filename? For good reasons that is not an option -- not least that a Rivet job can be running over many different files and it should not change its behaviour midway.</div><br><div>If you want to change your analysis behaviour without recompiling, then your best option is probably just to use environment variables and getopt(). Custom behaviours like that are not something that we accept for "official" analyses, because it would become unmanageable with each using a different ad hoc configuration convention -- so there isn't an official Rivet mechanism for passing options to the analysis classes.</div><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><div><div class="m_-5483218725940842316h5"><div class="m_-5483218725940842316m_8202437831478574780gmail_quote_attribution">On Jan 22 2018, at 11:19 pm, Kolja Kauder <<a href="mailto:kkauder@gmail.com" target="_blank">kkauder@gmail.com</a>> wrote:</div></div></div><blockquote><br><div><div><div class="m_-5483218725940842316h5"><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><span class="HOEnZb"><font color="#888888"><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></font></span></div></div><span class="HOEnZb"><font color="#888888"><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/lists<wbr>/listinfo/rivet</a></div></font></span></div></blockquote></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div class="m_-5483218725940842316gmail_signature" data-smartmail="gmail_signature">________________________<br>Kolja Kauder, Ph.D.<br>Post-Doctoral Research Fellow,<br>Physics Dept., Wayne State University<br>________________________</div>
</font></span></div>
<br>______________________________<wbr>_________________<br>
Rivet mailing list<br>
<a href="mailto:Rivet@projects.hepforge.org">Rivet@projects.hepforge.org</a><br>
<a href="https://www.hepforge.org/lists/listinfo/rivet" rel="noreferrer" target="_blank">https://www.hepforge.org/<wbr>lists/listinfo/rivet<br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Deepak Kar<br>University of Witwatersrand<br>Room PM15, School of Physics<br>(0027) 011-7176958 (office) (0027) 0736944181 (mobile)<br><br>While at CERN:<br>Building 1, R-016<br>(0041) 0767321349 (mobile)<br><br>While at USA:<br>(001) 330-998-1500 (mobile)</div>
</a></blockquote></div>
</div>