]> git.uio.no Git - u/mrichter/AliRoot.git/blame - test/vmctest/gun/g3Config.C
In vmctest:
[u/mrichter/AliRoot.git] / test / vmctest / gun / g3Config.C
CommitLineData
267e5cd8 1// $Id$
2//
3// Configuration macro for running aliroot with Geant3
4// with primary events read from external file.
5//
6// By I. Hrivnacova, IPN Orsay
7
8void Config()
9{
10 cout << "Running g3Config.C ... " << endl;
11
12 // AliRoot setup
13 //
14 gROOT->LoadMacro("$ALICE_ROOT/test/vmctest/gun/commonConfig.C");
15 commonConfig(kFALSE);
16
17 // Load Geant3 + Geant3 VMC libraries
18 //
19#if defined(__CINT__)
20 gSystem->Load("libgeant321");
21#endif
22
23 // Create TGeant3
24 //
25 new TGeant3TGeo("C++ Interface to Geant3");
26
27 // AliRoot event generator
28 // (it has to be created after MC, as it may use decayer via VMC)
29 //
30 gROOT->LoadMacro("$ALICE_ROOT/test/vmctest/gun/genExtFileConfig.C");
31 genExtFileConfig();
32
33 cout << "Running g3Config.C finished ... " << endl;
34}