Skip to content

Commit 161a3b5

Browse files
committed
Cosmics writer: example of AutoSave request in MakeRootTreeWriterSpec
1 parent 1ed83ad commit 161a3b5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Detectors/GlobalTrackingWorkflow/src/TrackCosmicsWriterSpec.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ DataProcessorSpec getTrackCosmicsWriterSpec(bool useMC)
3737
return MakeRootTreeWriterSpec("cosmic-track-writer",
3838
"cosmics.root",
3939
"cosmics",
40+
-1, // do not limit number of events to store
41+
100, // periodically autosave
4042
BranchDefinition<TracksType>{InputSpec{"tracks", "GLO", "COSMICTRC", 0},
4143
"tracks",
4244
"tracks-branch-name",

0 commit comments

Comments
 (0)