]>
Commit | Line | Data |
---|---|---|
4c039060 | 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 | /* | |
17 | $Log$ | |
d9f43611 | 18 | Revision 1.12 2002/10/14 14:55:33 hristov |
19 | Merging the VirtualMC branch to the main development branch (HEAD) | |
20 | ||
b9d0a01d | 21 | Revision 1.10.6.1 2002/08/28 15:06:49 alibrary |
22 | Updating to v3-09-01 | |
23 | ||
24 | Revision 1.11 2002/08/18 20:20:48 hristov | |
25 | InitGui removed (J.Chudoba) | |
26 | ||
e07f293f | 27 | Revision 1.10 2002/02/18 14:26:14 hristov |
28 | #include <AliConfig.h> removed | |
29 | ||
9087337e | 30 | Revision 1.9 2002/01/09 17:05:03 morsch |
31 | Increase memory allocated for ZEBRA. | |
32 | ||
f8a2545b | 33 | Revision 1.8 2001/10/04 15:32:36 hristov |
34 | Instantiation of AliConfig removed | |
35 | ||
33d3b081 | 36 | Revision 1.7 2001/05/22 11:39:48 buncic |
37 | Restored proper name for top level AliRoot folder. | |
38 | ||
5b900de5 | 39 | Revision 1.6 2001/05/21 17:22:50 buncic |
40 | Fixed problem with missing AliConfig while reading galice.root | |
41 | ||
682a4a95 | 42 | Revision 1.5 2001/05/16 14:57:07 alibrary |
43 | New files for folders and Stack | |
44 | ||
9e1a0ddb | 45 | Revision 1.4 2000/12/20 08:39:37 fca |
46 | Support for Cerenkov and process list in Virtual MC | |
47 | ||
27f3d82e | 48 | Revision 1.3 1999/09/29 09:24:07 fca |
49 | Introduction of the Copyright and cvs Log | |
50 | ||
4c039060 | 51 | */ |
52 | ||
fe4da5cc | 53 | ////////////////////////////////////////////////////////////////////////// |
54 | // // | |
55 | // aliroot // | |
56 | // // | |
57 | // Main program used to create aliroot application. // | |
58 | // // | |
59 | // // | |
60 | // To be able to communicate between the FORTRAN code of GEANT and the // | |
61 | // ROOT data structure, a number of interface routines have been // | |
62 | // developed. // | |
63 | //Begin_Html | |
64 | /* | |
1439f98e | 65 | <img src="picts/newg.gif"> |
fe4da5cc | 66 | */ |
67 | //End_Html | |
68 | ////////////////////////////////////////////////////////////////////////// | |
69 | ||
70 | //Standard Root includes | |
71 | #include <TROOT.h> | |
72 | #include <TRint.h> | |
73 | #include <TFile.h> | |
74 | #include <AliRun.h> | |
75 | ||
76 | #if defined __linux | |
77 | //On linux Fortran wants this, so we give to it! | |
78 | int xargv=0; | |
79 | int xargc=0; | |
80 | #endif | |
81 | ||
82 | #if defined WIN32 | |
83 | extern "C" int __fastflag=0; | |
84 | extern "C" int _pctype=0; | |
85 | extern "C" int __mb_cur_max=0; | |
86 | #endif | |
87 | ||
d9f43611 | 88 | //int gcbank_[4000000]; |
fe4da5cc | 89 | |
fe4da5cc | 90 | //_____________________________________________________________________________ |
91 | int main(int argc, char **argv) | |
92 | { | |
93 | // | |
94 | // gAlice main program. | |
95 | // It creates the main Geant3 and AliRun objects. | |
96 | // | |
97 | // The Hits are written out after each track in a ROOT Tree structure TreeH, | |
98 | // of the file galice.root. There is one such tree per event. The kinematics | |
99 | // of all the particles that produce hits, together with their genealogy up | |
100 | // to the primary tracks is stared in the galice.root file in an other tree | |
101 | // TreeK of which exists one per event. Finally the information of the events | |
102 | // in the run is stored in the same file in the tree TreeE, containing the | |
103 | // run and event number, the number of vertices, tracks and primary tracks | |
104 | // in the event. | |
fe4da5cc | 105 | |
9e1a0ddb | 106 | // Create new configuration |
9e1a0ddb | 107 | |
108 | new AliRun("gAlice","The ALICE Off-line Simulation Framework"); | |
109 | ||
fe4da5cc | 110 | // Start interactive geant |
111 | ||
112 | TRint *theApp = new TRint("aliroot", &argc, argv, 0, 0); | |
113 | ||
27f3d82e | 114 | // --- Start the event loop --- |
fe4da5cc | 115 | theApp->Run(); |
116 | ||
fe4da5cc | 117 | return(0); |
118 | } | |
119 | ||
120 |