Message: Write to ROOT file Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Write to ROOT file 

Forum: Analysis
Date: 21 Sep, 2016
From: Florian Dachs <Florian Dachs>


I have a question about output.

Is it possible to write to a ROOT file multiple times? For example I want to create the file and corresponding AnalysisManager in the RunAction and then book, fill and write nTuples to the file at the end of each event.

Basically, I want to append data to my ROOT file during each event so that not all the data is lost if the application crashes or gets killed for hogging too much RAM.

Whenever I try to implement this, I get error messages from the analysis manager. The last time I tried is some months ago, so I cannot post the errors, but I simply wanted to know if it is possible at all or if I have to find another way of storing my output.

best regards,


Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Write to ROOT file   (Ivana Hrivnacova - 06 Oct, 2016)
 Add Message Add Message
to: "Write to ROOT file"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews

[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]