G4CompileWRootforTracks

From New IAC Wiki
Revision as of 00:48, 15 November 2013 by Foretony (talk | contribs)
Jump to navigation Jump to search

These instruction describe how you can create a tree within ExN02SteppingVerbose to store tracking info in an array (max number of steps in a track is set to 100 for the desired particle)

First add the ROOT include files to the ExN02SteppingVerbose.hh file

  1. include "TFile.h"
  2. include "TH1.h"
  3. include "TH2.h"
  4. include "TProfile.h"


Now try to compile root

Simulations_of_Particle_Interactions_with_Matter#Compiling_G4_with_ROOT