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