Skip to content

Commit

Permalink
Set LCIO output compression to ON by default, and compression level t…
Browse files Browse the repository at this point in the history
…o 6 (ZLIB default)
  • Loading branch information
rete committed Jul 15, 2020
1 parent 30178c8 commit eebdf58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion source/include/marlin/LCIOOutputProcessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ namespace marlin{
LCWriter* _lcWrt=NULL;
int _nRun=-1;
int _nEvt=-1;
int _compressionLevel{-1};
int _compressionLevel{6};

private:

Expand Down
8 changes: 3 additions & 5 deletions source/src/LCIOOutputProcessor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ namespace marlin{
1992294 ) ; // 1.9 GB in kB

registerOptionalParameter( "CompressionLevel" ,
"The ZLIB compression level on writing" ,
"The ZLIB compression level on writing. Set it to 0 for no compression" ,
_compressionLevel,
_compressionLevel ) ; // -1 by default
_compressionLevel ) ; // 6 by default

}

Expand All @@ -119,9 +119,7 @@ void LCIOOutputProcessor::init() {
_lcWrt = LCFactory::getInstance()->createLCWriter() ;
}

if( parameterSet("CompressionLevel") ) {
_lcWrt->setCompressionLevel( _compressionLevel ) ;
}
_lcWrt->setCompressionLevel( _compressionLevel ) ;


if( _lcioWriteMode == "WRITE_APPEND" ) {
Expand Down

0 comments on commit eebdf58

Please sign in to comment.