[Rivet] hepmc file name in analysis class?

Kolja Kauder kkauder at gmail.com
Tue Jan 23 16:59:45 GMT 2018


Hi Andy,

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.

Fyi, when running over multiple files, my ideal interface would have been
something like handler().GetCurrentFile().GetName()

Thanks,
Kolja

On Tue, Jan 23, 2018 at 7:05 AM, Andy Buckley <andy.buckley at cern.ch> wrote:

> Hi Kojla,
>
> 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.
>
> 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.
>
> Andy
>
> *Dr Andy Buckley, Lecturer / Royal Society University Research Fellow*
> Particle Physics Experiment Group, University of Glasgow
> On Jan 22 2018, at 11:19 pm, Kolja Kauder <kkauder at gmail.com> wrote:
>
>
> Hi,
>
> I would like to tailor my analysis (and the output filename) to the
> hepmc input file, but I cannot figure out how to access that
> information.
>
> Thanks,
> Kolja
>
> --
> ________________________
> Kolja Kauder, Ph.D.
> Post-Doctoral Research Fellow,
> Physics Dept., Wayne State University
> ________________________
> _______________________________________________
> Rivet mailing list
> Rivet at projects.hepforge.org
> https://www.hepforge.org/lists/listinfo/rivet
>
>


-- 
________________________
Kolja Kauder, Ph.D.
Post-Doctoral Research Fellow,
Physics Dept., Wayne State University
________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.hepforge.org/lists-archive/rivet/attachments/20180123/630bf9af/attachment.html>


More information about the Rivet mailing list