bug fixed
[u/mrichter/AliRoot.git] / MUON / g3Config.C
CommitLineData
6ef73001 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
15
16/* $Id$ */
17
18/// \ingroup macros
19/// \file g3Config.C
20/// \brief Configuration macro for MUON spectrometer Geant3 simulation
21
22void Config()
23{
24 cout << "Running g3Config.C ... " << endl;
25
26 // AliRoot setup
27 //
28 gROOT->LoadMacro("$ALICE_ROOT/MUON/commonConfig.C");
29 commonConfig(kFALSE);
30
31 // Load Geant3 + Geant3 VMC libraries
32 //
33#if defined(__CINT__)
34 gSystem->Load("libgeant321");
35#endif
36
37 // Create TGeant3
38 //
39 new TGeant3TGeo("C++ Interface to Geant3");
40
41 // AliRoot event generator
42 // (it has to be created after MC, as it may use decayer via VMC)
43 //
44 gROOT->LoadMacro("$ALICE_ROOT/MUON/genTestConfig.C");
45 genConfig();
46
47 // From external file
48 //
49 //gROOT->LoadMacro("$ALICE_ROOT/MUON/genExtFileConfig.C");
50 //genConfig();
51
52
53 cout << "Running g3Config.C finished ... " << endl;
54}