Problem 1724 - std::vector in ntuple with g4tools
Summary: std::vector in ntuple with g4tools
Status: RESOLVED INVALID
Alias: None
Product: Geant4
Classification: Unclassified
Component: analysis (show other problems)
Version: 10.1
Hardware: All Linux
: P5 normal
Assignee: Ivana.Hrivnacova
URL:
Depends on:
Blocks:
 
Reported: 2015-03-18 23:44 CET by Frederik Wauters
Modified: 2015-04-09 15:00 CEST (History)
0 users

See Also:


Attachments
Modified files in basic/B4/B4a example with added code to test the reported problem (3.67 KB, application/x-gzip)
2015-03-19 14:19 CET, Ivana.Hrivnacova
Details

Note You need to log in before you can comment on or make changes to this problem.
Description Frederik Wauters 2015-03-18 23:44:39 CET
Ntuples with std::vectors are empty when read with ROOT(6.03) 

should be possible according https://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/ForApplicationDeveloper/html/ch09s02.html

There seems to be some incompatibility in the file format produced with
g4tools and Root

More details in http://hypernews.slac.stanford.edu/HyperNews/geant4/get/analysis/473/1/1/1.html
Comment 1 Ivana.Hrivnacova 2015-03-19 14:19:39 CET
Created attachment 324 [details]
Modified files in basic/B4/B4a example with added code to test the reported problem
Comment 2 Ivana.Hrivnacova 2015-03-19 14:21:50 CET
Hello,

Can you, please, update basic/B4/B4a example with the files from the attached tar file, build and run the example with run2.mac macro:

./exampleB4a -m run2.mac

and then run the Root macro printInteractions.C, also included in the tar file?

I made a mistake in my previous test, when fixing it, the ntuple with the vector of int is read back with Root ok.

Please, let us know the result of this test.

Thank you,
Comment 3 Ivana.Hrivnacova 2015-04-09 15:00:35 CEST
The reporter confirmed in hypernews that after providing the example his code works as expected. Closing the problem report as invalid.