ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitCommon/OptIO/interface/OptInt.h
Revision: 1.5
Committed: Wed Mar 4 07:24:49 2009 UTC (16 years, 2 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_011, Mit_010a, Mit_010, Mit_009c, Mit_009b, Mit_009a, Mit_009, Mit_008pre2
Changes since 1.4: +10 -9 lines
Log Message:
Check if preload is activated

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.5 // $Id: OptInt.h,v 1.4 2009/02/26 16:18:46 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 loizides 1.1 // Authors: C.Loizides
34     //--------------------------------------------------------------------------------------------------
35    
36     #ifndef MITCOMMON_OPTIO_OPTINT_H
37     #define MITCOMMON_OPTIO_OPTINT_H
38    
39     #include <TObject.h>
40    
41     namespace mithep
42     {
43     class OptInt
44     {
45     public:
46     OptInt() {}
47    
48 loizides 1.5 static Bool_t IsActivated();
49     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     static void SetStaticMalloc(Bool_t b);
55     static void SetVerbose(Int_t vl);
56     static void SetZipMode(Int_t zm);
57 loizides 1.1
58     ClassDef(OptInt, 0) // Interface to OptIO parameters
59     };
60     }
61     #endif