User Tools

Site Tools


software:g4simulation:analysis

This is an old revision of the document!


Analysis

An example how to read the .root files can be found in rootmacros/test.C. This test.C file can be executed with:

/primasoft/geant4$ root -l rootmacros/test.C+

If executed, a histogram will be displayed with Root.

For the analysis some pre-calculations are made in include/PRIMASimAnalysis and src/PRIMASimAnalysis. These are imported in test.C and the functions BeginOfRun(), DoEvent() and EndOfRun can be adjusted in MyEventAnalysis. The root files include information about the primary particles, the deposited energy in the calorimeter and in the tagger. For the calorimeter there are several functions implemented in SimAnalysis, for example a ClusterFinder.

When reading the root files with OpenTreeFiles(), flags for the calorimeter and the tagger can be set, which enable their use respectively (the syntax is: OpenTreeFiles(“filename.root”,“configfile.conf”)).

software/g4simulation/analysis.1588579930.txt.gz · Last modified: 2022/01/14 18:44 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki