ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitCommon/OptIO/src/OptLoad.cc
(Generate patch)

Comparing UserCode/MitCommon/OptIO/src/OptLoad.cc (file contents):
Revision 1.2 by loizides, Tue Feb 24 20:13:57 2009 UTC vs.
Revision 1.3 by loizides, Thu Feb 26 16:18:07 2009 UTC

# Line 14 | Line 14 | namespace {
14    class OptIntLoad {
15      public:
16        OptIntLoad() {
17 <        ::Info("OptIntLoad", "Loading libMitCommonOptIO.so for the optimized IO interface.");
17 >        Int_t verbose = gEnv->GetValue("Root.OptIO.Verbose",0);
18 >        if(verbose)
19 >          ::Info("OptIntLoad", "Loading libMitCommonOptIO.so for the optimized IO interface.");
20          Int_t zipmode = gEnv->GetValue("Root.ZipMode",-1);
21          if (zipmode>0) {
22 <          ::Warning("OptIntLoad", "Setting ZipMode to %d as specified in rootrc", zipmode);
22 >          if(verbose)
23 >            ::Warning("OptIntLoad", "Setting ZipMode to %d as specified in rootrc", zipmode);
24            OptInt::SetZipMode(zipmode);
25          }
26          Double_t lzf = gEnv->GetValue("Root.OptIO.LzoFraction",1.);
# Line 25 | Line 28 | namespace {
28          Double_t bzf = gEnv->GetValue("Root.OptIO.BzipFraction",1.);
29          Double_t lzm = gEnv->GetValue("Root.OptIO.LzmaFraction",1.);
30          if (lzf!=1 || gzf!= 1 || bzf!=1 || lzm!=1) {
31 <          ::Warning("OptIntLoad", "Setting algo fractions to %.2f, %.2f, %.2f, %.2f"
32 <                    " as specified in rootrc", lzf, gzf, bzf, lzm);
31 >          if(verbose)
32 >            ::Warning("OptIntLoad", "Setting algo fractions to %.2f, %.2f, %.2f, %.2f"
33 >                      " as specified in rootrc", lzf, gzf, bzf, lzm);
34            OptInt::SetAlgoFractions(lzf, gzf, bzf, lzm);
35          }
36          Int_t smalloc = gEnv->GetValue("Root.OptIO.SMalloc",0);
37          if (smalloc) {
38 <          ::Warning("OptIntLoad", "Enabling static memory allocation as specified in rootrc");
38 >          if(verbose)
39 >            ::Warning("OptIntLoad", "Enabling static memory allocation as specified in rootrc");
40            OptInt::SetStaticMalloc(smalloc==1);
41          }
37        Int_t verbose = gEnv->GetValue("Root.OptIO.Verbose",0);
42          if (verbose) {
43            ::Warning("OptIntLoad", "Setting verbosity to %d as specified in rootrc", verbose);
44            OptInt::SetVerbose(verbose);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines