Message: Re: CreateNtuple in multithreaded exMPI03 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: CreateNtuple in multithreaded exMPI03 

Forum: Analysis
Re: Question CreateNtuple in multithreaded exMPI03 (Mikhail)
Date: 04 Jan, 2016
From: Ivana Hrivnacova <Ivana Hrivnacova>

In the exMPI03 example, a file is open only before saving histograms, see Analysis::Save() function. If you want to use ntuples, a file has to be open before you fill an ntuple; when you create an ntuple before opening a file, the analysis manager saves the ntuple definition in an "ntuple booking" object and creates the" ntuple" object only when a file is defined in OpenFile() call.

In difference from histograms, the ntuples produced on threads (and the ranks when using MPI) are not merged in a single file, so to use the ntuples with the exMPI03 example, you need to add opening a file with a filename specific per rank in "begin of run action" and remove it from Analysis::Save() function.

Best regards,

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

1 None: Re: CreateNtuple in multithreaded exMPI03   (Mikhail - 04 Jan, 2016)
 Add Message Add Message
to: "Re: CreateNtuple in multithreaded exMPI03"

 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 ]