Saving and Reading a Chain Snapshot
Edit me

Continue with Example 1, and stay in fun4all_g4exampledetector/simple/macros directory

shell commands

source /cvmfs/eic.opensciencegrid.org/ecce/gcc-8.3/opt/fun4all/core/bin/ecce_setup.sh -n
source /cvmfs/eic.opensciencegrid.org/ecce/gcc-8.3/opt/fun4all/core/bin/setup_local.sh $HOME/myinstall
root.exe

root command to run 10000 geantinos and write Dst

.x Fun4All_G4_Write_Dst.C(10000)

shell commands

root.exe

root command to read Dst and write ntuple

.x Fun4All_Read_Dst.C(0)

shell commands

root.exe HitsFromDst.root

root command

hitntup->Draw("x1:y1:z1");
hitntup->SetMarkerColor(2);
hitntup->Draw("x0:y0:z0","","same");
Tags: tutorial