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

Question CreateNtuple in multithreaded exMPI03 

Forum: Analysis
Date: 30 Dec, 2015
From: Mikhail <Mikhail>

I tried to add an ntuple into exMPI03 example:

in Analysis.hh:

G4int nt_dose_prof;

in Analysis::Book():

nt_dose_prof = mgr->CreateNtuple("Ntuple1", "Edep"); mgr->CreateNtupleDColumn(nt_dose_prof, "X"); // column Id = 0 mgr->CreateNtupleDColumn(nt_dose_prof, "Dose"); // column Id = 1 mgr->FinishNtuple(nt_dose_prof);

in Analysis::FillDose():

mgr->FillNtupleDColumn(nt_dose_prof, 0, p.z() + Z0); mgr->FillNtupleDColumn(nt_dose_prof, 1, dedx / GeV); mgr->AddNtupleRow(nt_dose_prof);

and in Analysis::Analysis() :
  fincident_x_hist(0), fincident_map(0), fdose_hist(0), fdose_map(0),
      fdose_prof(0), fdose_map_prof(0), fdose_map3d(0), nt_dose_prof(0)

however, it complains:

-------- WWWW ------- G4Exception-START -------- WWWW -------
*** G4Exception : Analysis_W011
      issued by : G4TNtupleManager::FillNtupleTColumn
      ntupleId 0 does not exist.
*** This is just a warning message. ***
-------- WWWW -------- G4Exception-END --------- WWWW -------

G4WT0 > 
-------- WWWW ------- G4Exception-START -------- WWWW -------
*** G4Exception : Analysis_W011
      issued by : G4TNtupleManager::AddNtupleRow
      ntupleId 0 does not exist.
*** This is just a warning message. ***
-------- WWWW -------- G4Exception-END --------- WWWW -------

Ntuples are present in the output files (for each thread), but they are empty. What am I doing wrong?

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

1 None: Re: CreateNtuple in multithreaded exMPI03   (Ivana Hrivnacova - 04 Jan, 2016)
(_ None: Re: CreateNtuple in multithreaded exMPI03   (Mikhail - 04 Jan, 2016)
 Add Message Add Message
to: "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 ]