software:g4simulation:analysis
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
software:g4simulation:analysis [2020/05/04 08:13] – himuser | software:g4simulation:analysis [2022/01/14 18:44] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Analysis ====== | ||
- | |||
====== Analysis ====== | ====== Analysis ====== | ||
Line 30: | Line 28: | ||
== Rootmacro == | == Rootmacro == | ||
+ | * an example how to read the .root files can be found in rootmacros/ | ||
* execute a rootmacro (here: test.C): < | * execute a rootmacro (here: test.C): < | ||
- | root -l rootmacros/ | + | / |
</ | </ | ||
+ | * the root files include information about the primary particles, the deposited energy in the calorimeter and in the tagger. | ||
* in the rootmacros the functions BeginOfRun(), | * in the rootmacros the functions BeginOfRun(), | ||
* in OpenTreeFiles() you can define the root file which will be analysed and you can optionally choose a config file: < | * in OpenTreeFiles() you can define the root file which will be analysed and you can optionally choose a config file: < | ||
* test.C is a basic example | * test.C is a basic example | ||
- | * energy_res.C and acceptance.C are more advanced | + | * energy_res.C and acceptance.C are more advanced |
- | + | * event_display.C the energy signal for each crystal for one event (usage: '' | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | An example how to read the .root files can be found in rootmacros/ | + | |
- | This test.C file can be executed with: | + | |
- | < | + | |
- | /primasoft/geant4$ root -l rootmacros/test.C+ | + | |
- | </code> | + | |
- | + | ||
- | If executed, a histogram will be displayed with Root. | + | |
- | + | ||
- | For the analysis some pre-calculations are made in include/ | + | |
- | 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, | + | |
- | When reading the root files with OpenTreeFiles(), |
software/g4simulation/analysis.1588579989.txt.gz · Last modified: 2022/01/14 18:44 (external edit)