Problem 1724

Summary: std::vector in ntuple with g4tools
Product: Geant4 Reporter: Frederik Wauters <fwauters>
Component: analysisAssignee: Ivana.Hrivnacova
Status: RESOLVED INVALID    
Severity: normal    
Priority: P5    
Version: 10.1   
Hardware: All   
OS: Linux   
Attachments: Modified files in basic/B4/B4a example with added code to test the reported 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.