1 |
loizides |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
loizides |
1.3 |
// $Id: OptInt.h,v 1.2 2009/02/24 20:13:56 loizides Exp $
|
3 |
loizides |
1.1 |
//
|
4 |
|
|
// OptInt
|
5 |
|
|
//
|
6 |
|
|
// Interface to set some of the optimized IO parameters.
|
7 |
|
|
//
|
8 |
loizides |
1.3 |
// The following zip modes are supported:
|
9 |
|
|
// Set ZipMode to be used in R__zip. Supported values range from 1 to 5, where
|
10 |
|
|
// 1 == gzip (http://www.gzip.org/, standard in ROOT)
|
11 |
|
|
// 2 == bzip2 (http://www.bzip.org/)
|
12 |
|
|
// 3 == lzo (http://www.oberhumer.com/opensource/lzo/)
|
13 |
|
|
// 4 == rle (http://bcl.comli.eu/)
|
14 |
|
|
// 5 == lzma (http://www.7-zip.org/sdk.html)
|
15 |
|
|
// 99 == combination of 1 to 5.
|
16 |
|
|
//
|
17 |
|
|
// Additionally you can specify the compression fraction that must be reached to accept result of
|
18 |
|
|
// the "heavy" compression algorithms. Negative values turn off usage of the specific compression
|
19 |
|
|
// algorithm in ZipMode=99.
|
20 |
|
|
//
|
21 |
|
|
// In order to make use of all of this, make sure you preload MitCommonOptIO.so. This can be
|
22 |
|
|
// achieved by setting LD_PRELOAD to $CMSSW_BASE/lib/$SCRAM_ARCH/libMitCommonOptIO.so.
|
23 |
|
|
//
|
24 |
|
|
// In additon, you can use .rootrc, for example like
|
25 |
|
|
// Root.ZipMode: 5
|
26 |
|
|
// Root.OptIO.Verbose: 0
|
27 |
|
|
// Root.OptIO.SMalloc: 0
|
28 |
|
|
// Root.OptIO.LzoFraction: 1
|
29 |
|
|
// Root.OptIO.GzipFraction: 1
|
30 |
|
|
// Root.OptIO.BzipFraction: 1
|
31 |
|
|
// Root.OptIO.LzmaFraction: 1
|
32 |
|
|
//
|
33 |
|
|
//
|
34 |
loizides |
1.1 |
// Authors: C.Loizides
|
35 |
|
|
//--------------------------------------------------------------------------------------------------
|
36 |
|
|
|
37 |
|
|
#ifndef MITCOMMON_OPTIO_OPTINT_H
|
38 |
|
|
#define MITCOMMON_OPTIO_OPTINT_H
|
39 |
|
|
|
40 |
|
|
#include <TObject.h>
|
41 |
|
|
|
42 |
|
|
namespace mithep
|
43 |
|
|
{
|
44 |
|
|
class OptInt
|
45 |
|
|
{
|
46 |
|
|
public:
|
47 |
|
|
OptInt() {}
|
48 |
|
|
|
49 |
loizides |
1.2 |
static void SetAlgoFractions(Double_t lzo, Double_t gz, Double_t bz, Double_t lzma);
|
50 |
|
|
static void SetBzipFraction(Double_t f);
|
51 |
|
|
static void SetGzipFraction(Double_t f);
|
52 |
|
|
static void SetLzmaFraction(Double_t f);
|
53 |
|
|
static void SetLzoFraction(Double_t f);
|
54 |
loizides |
1.1 |
static void SetStaticMalloc(Bool_t b);
|
55 |
|
|
static void SetVerbose(Int_t vl);
|
56 |
|
|
static void SetZipMode(Int_t zm);
|
57 |
|
|
|
58 |
|
|
ClassDef(OptInt, 0) // Interface to OptIO parameters
|
59 |
|
|
};
|
60 |
|
|
}
|
61 |
|
|
#endif
|