]> git.uio.no Git - u/mrichter/AliRoot.git/blob - test/vmctest/ppbench/g3Config.C
In vmctest:
[u/mrichter/AliRoot.git] / test / vmctest / ppbench / g3Config.C
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
8 void Config()
9 {
10   cout << "Running g3Config.C ... " << endl;
11
12   // AliRoot setup
13   //
14   gROOT->LoadMacro("$ALICE_ROOT/test/vmctest/ppbench/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   gROOT->LoadMacro("$ALICE_ROOT/test/vmctest/ppbench/genPPbenchConfig.C");
30   gROOT->LoadMacro("$ALICE_ROOT/test/vmctest/ppbench/genExtFileConfig.C");
31             // The event generator selection (srun) is done in genPPbenchConfig.C
32             // that´s why we have to load it too
33   genExtFileConfig(srun);
34
35   cout << "Running g3Config.C finished ... " << endl;
36 }