AliRoot Core  3dc7879 (3dc7879)
g3Config.C
Go to the documentation of this file.
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 
21 
22 void Config(const char* directory="",
23  const char* option="param",
24  const char* digitstore="AliMUONDigitStoreV2S",
25  bool forEmbedding=kFALSE)
26 {
27  cout << "Running g3Config.C ... " << endl;
28 
29  // AliRoot setup
30  //
31  gROOT->LoadMacro("$ALICE_ROOT/MUON/macros/commonConfig.C");
32  commonConfig(directory, digitstore, forEmbedding);
33 
34  // Load Geant3 + Geant3 VMC libraries
35  //
36 #if defined(__CINT__)
37  gSystem->Load("libgeant321");
38 #endif
39 
40  // Create TGeant3
41  //
42  new TGeant3TGeo("C++ Interface to Geant3");
43 
44  // AliRoot event generator
45  // (it has to be created after MC, as it may use decayer via VMC)
46  //
47  gROOT->LoadMacro("$ALICE_ROOT/MUON/macros/genTestConfig.C");
48  genConfig(option);
49 
50  // From external file
51  //
52  //gROOT->LoadMacro("$ALICE_ROOT/MUON/macros/genExtFileConfig.C");
53  //genConfig();
54 
55 
56  cout << "Running g3Config.C finished ... " << endl;
57 }
TROOT * gROOT
void Config(const char *directory="", const char *option="param", const char *digitstore="AliMUONDigitStoreV2S", bool forEmbedding=kFALSE)
Definition: g3Config.C:22
void commonConfig(const char *directory="", const char *digitstore="AliMUONDigitStoreV2S", bool forEmbedding=kFALSE)
Definition: commonConfig.C:39
void genConfig()