Geant4 simulation to ROOT ntuples

Hi everyone, this is a Geant4 simulation (I modified the B1 basic example) (251.3 KB)
In this example I created 2 circular targets and I setted a 45GeV e+ beam hitting the 2 targets.

Now I should create a ROOT file containing Ntuples about input/output energy distribution and angular distribution so that I can analyse them by ROOT.

I need something like this

eBe6.root (226.4 KB)

Please, does someone know how to do it? I’m a begginer using Geant4.
Thank you

Please read tips for efficient and successful posting and posting code

ROOT Version: 6.20/00
Platform: Not Provided
Compiler: Not Provided

Geant4 User Forum

Hi @Wile_E_Coyote thank you!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.