-- SebastianKupny - 06 Nov 2012

Note: You can make MC simulations with Geant4 transport model, but only on 32-bit machines (lxlenny32 pool).

So either you'll recompile your project on 32-bit machine or you'll download and create another one asyeosrooot version and compile them on 32-bit machine.

1. Make sure, that you have the plist directory in your project. If not copy them from R3B project.

2. Replace the code of the macro /gconfig/g4Config.C in your project with the code from R3B project's macro with name /gconfig/g4R3bConfig.C

r3broot/gconfig/g4R3bConfig.C => asyeosroot/gconfig/g4Config.C

The instance which I've used in this days (Nov 2012) you can find below in this page. Take care in case of file changes by updates in R3B project.

3. Check the file gconfig/SetCuts.C. There are defined cuts and sensivity of the physics effects which you want to have in your simulations.

4. Change the transport model in your macro to generate events:

For example for KRATTA detector I'm using macro: Krakow.C

So I'm changing in line 28 the string from "TGeant3" to "TGeant4"
21       //-------------------------------------------------
22       // Monte Carlo type     |    fMC        (TString)
23       //-------------------------------------------------
24       //   Geant3:                 "TGeant3"
25       //   Geant4:                 "TGeant4"
26       //   Fluka :                 "TFluka"
27    
28       TString fMC ="TGeant3";

after that, the code looks as follow:

21       //-------------------------------------------------
22       // Monte Carlo type     |    fMC        (TString)
23       //-------------------------------------------------
24       //   Geant3:                 "TGeant3"
25       //   Geant4:                 "TGeant4"
26       //   Fluka :                 "TFluka"
27    
28       TString fMC ="TGeant4";

3. Launch your macro. Now you should use the Geant4 transport model.
Topic attachments
I Attachment Action Size Date Who Comment
g4Config.CC g4Config.C manage 2.0 K 2012-11-06 - 11:13 SebastianKupny g4Config.C from R3B (original name: r3broot/gconfig/g4R3bConfig.C)
Topic revision: r2 - 2013-02-26, SebastianKupny
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding GSI Wiki? Send feedback
Imprint (in German)
Privacy Policy (in German)