|
[Rivet] hepmc file name in analysis class?Kolja Kauder kkauder at gmail.comTue Jan 23 17:21:29 GMT 2018
Hi Deepak, If I understand correctly, that allows me to set the .yoda name, but not the name of any custom output files. If I could intercept that name from inside the framework, I can use a regex to create my own name based on that; is that possible? Thanks, Kolja On Tue, Jan 23, 2018 at 12:03 PM, Deepak Kar <deepak.kar at cern.ch> wrote: > Hi, > > You can set the output file name with -o option, but I am sure you > considered that! > > Cheers, > Deepak > > On Tue, Jan 23, 2018 at 6:59 PM, Kolja Kauder <kkauder at gmail.com> wrote: >> >> 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 >> ________________________ >> >> _______________________________________________ >> Rivet mailing list >> Rivet at projects.hepforge.org >> https://www.hepforge.org/lists/listinfo/rivet >> >> -- >> Deepak Kar >> University of Witwatersrand >> Room PM15, School of Physics >> (0027) 011-7176958 (office) (0027) 0736944181 (mobile) >> >> While at CERN: >> Building 1, R-016 >> (0041) 0767321349 (mobile) >> >> While at USA: >> (001) 330-998-1500 (mobile) -- ________________________ Kolja Kauder, Ph.D. Post-Doctoral Research Fellow, Physics Dept., Wayne State University ________________________
More information about the Rivet mailing list |