Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Root
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
为了安全,强烈建议开启2FA双因子认证:User Settings -> Account -> Enable two-factor authentication!!!
Show more breadcrumbs
cxwx
Root
Commits
018c23fd
Commit
018c23fd
authored
6 years ago
by
Philippe Canal
Browse files
Options
Downloads
Patches
Plain Diff
Set the cluster size rather than then AutoSave frequency
parent
c4f02623
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tree/tree/test/TOffsetGeneration.cxx
+6
-6
6 additions, 6 deletions
tree/tree/test/TOffsetGeneration.cxx
with
6 additions
and
6 deletions
tree/tree/test/TOffsetGeneration.cxx
+
6
−
6
View file @
018c23fd
...
...
@@ -22,7 +22,7 @@ protected:
features
.
Set
(
ROOT
::
Experimental
::
EIOFeatures
::
kGenerateOffsetMap
);
tree
->
SetIOFeatures
(
features
);
tree
->
SetBit
(
TTree
::
kOnlyFlushAtCluster
);
tree
->
SetAuto
Save
(
10
);
tree
->
SetAuto
Flush
(
10
);
Int_t
sample
[
10
];
Int_t
elem
=
1
;
tree
->
Branch
(
"elem"
,
&
elem
,
"elem/I"
);
...
...
@@ -39,7 +39,7 @@ protected:
file
=
new
TFile
(
"TOffsetGeneration2.root"
,
"RECREATE"
);
tree
=
new
TTree
(
"tree"
,
"A test tree"
);
tree
->
SetBit
(
TTree
::
kOnlyFlushAtCluster
);
tree
->
SetAuto
Save
(
10
);
tree
->
SetAuto
Flush
(
10
);
tree
->
Branch
(
"elem"
,
&
elem
,
"elem/I"
);
tree
->
Branch
(
"sample"
,
&
sample
,
"sample[elem]/I"
);
...
...
@@ -52,7 +52,7 @@ protected:
file
=
new
TFile
(
"TOffsetGeneration3.root"
,
"RECREATE"
);
tree
=
new
TTree
(
"tree"
,
"A test tree"
);
tree
->
SetBit
(
TTree
::
kOnlyFlushAtCluster
);
tree
->
SetAuto
Save
(
5000
);
tree
->
SetAuto
Flush
(
5000
);
ElementStruct
sample2
;
sample2
.
i
=
1
;
double
d
[
10
];
...
...
@@ -72,7 +72,7 @@ protected:
features
.
Set
(
ROOT
::
Experimental
::
EIOFeatures
::
kGenerateOffsetMap
);
tree2
->
SetIOFeatures
(
features
);
tree2
->
SetBit
(
TTree
::
kOnlyFlushAtCluster
);
tree2
->
SetAuto
Save
(
5000
);
tree2
->
SetAuto
Flush
(
5000
);
sample2
.
i
=
1
;
sample2
.
d
=
d
;
tree2
->
Branch
(
"sample"
,
&
sample2
,
32
*
1024
,
99
);
...
...
@@ -93,8 +93,8 @@ protected:
tree
->
SetIOFeatures
(
features
);
tree
->
SetBit
(
TTree
::
kOnlyFlushAtCluster
);
tree2
->
SetBit
(
TTree
::
kOnlyFlushAtCluster
);
tree
->
SetAuto
Save
(
5000
);
tree2
->
SetAuto
Save
(
5000
);
tree
->
SetAuto
Flush
(
5000
);
tree2
->
SetAuto
Flush
(
5000
);
sample2
.
i
=
1
;
sample2
.
d
=
d
;
auto
br
=
tree
->
Branch
(
"sample"
,
&
sample2
,
32
*
1024
,
99
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment