[Rivet] AIDA branch closed (gzip next...)

James Monk jmonk at cern.ch
Fri May 23 13:04:17 BST 2014


That would actually be a nice alternative - modify the rivet python script to pipe the input through gunzip if it detects a gzipped file.  Then we don’t need the zlib dependency.  I presume performance would be more-or-less identical - does anyone know for sure?

James

On 23 May 2014, at 09:35, Leif Lönnblad <leif.lonnblad at thep.lu.se> wrote:

> On 2014-05-23 07:24, David Grellscheid wrote:
>> I agree with that. A good behaviour for Rivet would be to
>> 
>>  - check if zlib is available
>>  - if yes, always compile it in
>>  - => transparently understand zipped and non-zipped HepMC files
>>  - if zlib not compiled in and we encounter a gzip file (check first 4
>>  bytes are \x1f \x8b), output a useful message.
> 
> Is there any unix distribution that doesn't come with the gzip executable by default? In ThePEG I have a fall-back that pipes a file through gzip in case zlib is not available. It doesn't work if the input is already sent through a pipe to rivet, but in that case there's not much point in zipping...
> 
> Cheers,
> Leif
> 
> 
> 
> _______________________________________________
> Rivet mailing list
> Rivet at projects.hepforge.org
> https://www.hepforge.org/lists/listinfo/rivet



More information about the Rivet mailing list