When calculating a*a-b*b the form (a-b)*(a+b) is usually more numerically stable.
[u/mrichter/AliRoot.git] / macros / g4ConfigGeometry.C
CommitLineData
e14b4d5a 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
11void 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.so");
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/g4ConfigCommon.C");
31 ConfigCommon(kFALSE);
32
33 cout << "Running g4ConfigGometry.C finished ... " << endl;
34
35}