8 |
|
#include "FWCore/MessageLogger/interface/JobReport.h" |
9 |
|
#include "MitAna/DataUtil/interface/TreeWriter.h" |
10 |
|
#include "MitAna/DataTree/interface/Names.h" |
11 |
+ |
#include "MitCommon/OptIO/interface/OptInt.h" |
12 |
|
|
13 |
|
using namespace edm; |
14 |
|
using namespace std; |
54 |
|
if (cfg.exists("brSizes")) |
55 |
|
brSizes_=cfg.getUntrackedParameter<vector<unsigned> >("brSizes"); |
56 |
|
else |
57 |
< |
brSizes_.push_back(32*1024); |
57 |
> |
brSizes_.push_back(64*1024); |
58 |
> |
|
59 |
> |
if (cfg.exists("zipMode")) |
60 |
> |
zipMode_=cfg.getUntrackedParameter<unsigned>("zipMode"); |
61 |
> |
else |
62 |
> |
zipMode_ = 99; |
63 |
> |
|
64 |
> |
if (cfg.exists("bZipThres")) |
65 |
> |
bZipThres_=cfg.getUntrackedParameter<double>("bZipThres"); |
66 |
> |
else |
67 |
> |
bZipThres_ = -1.0; |
68 |
> |
|
69 |
> |
if (cfg.exists("gZipThres")) |
70 |
> |
gZipThres_=cfg.getUntrackedParameter<double>("gZipThres"); |
71 |
> |
else |
72 |
> |
gZipThres_ = 1.0; |
73 |
> |
|
74 |
> |
if (cfg.exists("lzoThres")) |
75 |
> |
lzoThres_=cfg.getUntrackedParameter<double>("lzoThres"); |
76 |
> |
else |
77 |
> |
lzoThres_ = -1.0; |
78 |
> |
|
79 |
> |
if (cfg.exists("lzmaThres")) |
80 |
> |
lzmaThres_=cfg.getUntrackedParameter<double>("lzmaThres"); |
81 |
> |
else |
82 |
> |
lzmaThres_ = 0.95; |
83 |
> |
|
84 |
> |
if (cfg.exists("optIOVerbose")) |
85 |
> |
optIOVerbose_=cfg.getUntrackedParameter<unsigned>("optIOVerbose"); |
86 |
> |
else |
87 |
> |
optIOVerbose_ = 0; |
88 |
|
|
89 |
|
if (treeNames_.size()!=fileNames_.size()) { |
90 |
|
throw edm::Exception(edm::errors::Configuration, "TreeService::TreeService()\n") |
128 |
|
else if (brSizes_.size()>0) |
129 |
|
t->SetDefaultBrSize(brSizes_.at(0)); |
130 |
|
|
131 |
+ |
OptInt::SetZipMode(zipMode_); |
132 |
+ |
|
133 |
+ |
OptInt::SetGzipFraction(gZipThres_); |
134 |
+ |
|
135 |
+ |
OptInt::SetBzipFraction(bZipThres_); |
136 |
+ |
|
137 |
+ |
OptInt::SetLzoFraction(lzoThres_); |
138 |
+ |
|
139 |
+ |
OptInt::SetLzmaFraction(lzmaThres_); |
140 |
+ |
|
141 |
+ |
OptInt::SetVerbose(optIOVerbose_); |
142 |
+ |
|
143 |
|
//t->Print(); |
144 |
|
tws_.Add(t); |
145 |
|
} |