]> git.uio.no Git - u/mrichter/AliRoot.git/blob - macros/g4ConfigGeometry.C
e553acd4c7316ba948291ee1a18e7c566a49992c
[u/mrichter/AliRoot.git] / macros / g4ConfigGeometry.C
1 // $Id: g4Config.C 18590 2007-05-15 13:24:50Z hristov $
2 //
3 // Configuration macro for building AliRoot geometry 
4 // using g4ConfigCommon.C.
5 // TGeant3TGeo has to be used to build geometry as
6 // TGeant4 does not support mixing calls to gMC and TGeo.
7 //
8 // By I. Hrivnacova, IPN Orsay
9         
10
11 void Config()
12 {
13   cout << "Running g4ConfigGometry.C ... " << endl;
14
15   // Load Geant3 + Geant3 VMC libraries
16   //
17   //  Libraries required by geant321
18   gSystem->Load("liblhapdf.so");      // Parton density functions
19   gSystem->Load("libpythia6.so");     // Pythia
20   gSystem->Load("libgeant321");
21   gSystem->Load("libEG");
22   gSystem->Load("libEGPythia6");
23   gSystem->Load("libAliPythia6.so");  // ALICE specific implementations
24
25   new TGeant3TGeo("C++ Interface to Geant3");
26   
27   
28   // AliRoot setup
29   //
30   gROOT->LoadMacro("$ALICE_ROOT/macros/g4ConfigCommon1.C");
31   ConfigCommon1(kFALSE);
32
33   cout << "Running g4ConfigGometry.C finished ... " << endl;
34
35 }