Message: Re: Ntuple fills per-event instead of per-hit Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Ntuple fills per-event instead of per-hit 

Forum: Analysis
Re: Question Ntuple fills per-event instead of per-hit (Matt Taggart)
Date: 09 Apr, 2013
From: Guy Barrand <Guy Barrand>

   Hi Matt

  You need to be able to attach a std::vector of basic type (float,double,int) over an ntuple column.
 It would sort out the issue. Per event, you would then fill one std::vector for
 your neutrons and one for your gammas. And at "end of event" some column.fill(vector)
 and the ntuple.add_row() will store each vector as one "row entry" in the columns.
 But for the moment it is not available.

  In the g4tools (the code behind the G4AnalysisManager), I am pretty sure that I can
 arrange things for the .root format. (In fact I have already the code somewhere else).

  But obviously we can't do that for the .csv format (here we are stucked ; only simple data type
 can be attached to a column). (AIDA xml would be ok, we had foreseen the case). Then I have to see
 also with Ivana if she can arrange something around the G4AnalysisManager to expose
 an API to deal with column vectors for file format that can support them.

  Then some work is needed…



 Add Message Add Message
to: "Re: Ntuple fills per-event instead of per-hit"

 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 ]