]>
Commit | Line | Data |
---|---|---|
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$ | |
18 | Revision 1.5 2001/05/16 14:57:07 alibrary | |
19 | New files for folders and Stack | |
20 | ||
21 | Revision 1.4 2000/12/20 08:39:37 fca | |
22 | Support for Cerenkov and process list in Virtual MC | |
23 | ||
24 | Revision 1.3 1999/09/29 09:24:07 fca | |
25 | Introduction of the Copyright and cvs Log | |
26 | ||
27 | */ | |
28 | ||
29 | ////////////////////////////////////////////////////////////////////////// | |
30 | // // | |
31 | // aliroot // | |
32 | // // | |
33 | // Main program used to create aliroot application. // | |
34 | // // | |
35 | // // | |
36 | // To be able to communicate between the FORTRAN code of GEANT and the // | |
37 | // ROOT data structure, a number of interface routines have been // | |
38 | // developed. // | |
39 | //Begin_Html | |
40 | /* | |
41 | <img src="picts/newg.gif"> | |
42 | */ | |
43 | //End_Html | |
44 | ////////////////////////////////////////////////////////////////////////// | |
45 | ||
46 | //Standard Root includes | |
47 | #include <TROOT.h> | |
48 | #include <TRint.h> | |
49 | #include <TFile.h> | |
50 | #include <AliRun.h> | |
51 | #include <AliConfig.h> | |
52 | ||
53 | #if defined __linux | |
54 | //On linux Fortran wants this, so we give to it! | |
55 | int xargv=0; | |
56 | int xargc=0; | |
57 | #endif | |
58 | ||
59 | #if defined WIN32 | |
60 | extern "C" int __fastflag=0; | |
61 | extern "C" int _pctype=0; | |
62 | extern "C" int __mb_cur_max=0; | |
63 | #endif | |
64 | ||
65 | int gcbank_[3000000]; | |
66 | ||
67 | //Initialise the Root environment | |
68 | extern void InitGui(); | |
69 | VoidFuncPtr_t initfuncs[] = { InitGui, 0 }; | |
70 | TROOT root("galice","The Alice/ROOT Interface", initfuncs); | |
71 | ||
72 | //_____________________________________________________________________________ | |
73 | int main(int argc, char **argv) | |
74 | { | |
75 | // | |
76 | // gAlice main program. | |
77 | // It creates the main Geant3 and AliRun objects. | |
78 | // | |
79 | // The Hits are written out after each track in a ROOT Tree structure TreeH, | |
80 | // of the file galice.root. There is one such tree per event. The kinematics | |
81 | // of all the particles that produce hits, together with their genealogy up | |
82 | // to the primary tracks is stared in the galice.root file in an other tree | |
83 | // TreeK of which exists one per event. Finally the information of the events | |
84 | // in the run is stored in the same file in the tree TreeE, containing the | |
85 | // run and event number, the number of vertices, tracks and primary tracks | |
86 | // in the event. | |
87 | ||
88 | // Create new configuration | |
89 | new AliConfig (); | |
90 | ||
91 | new AliRun("gAlice","The ALICE Off-line Simulation Framework"); | |
92 | ||
93 | // Start interactive geant | |
94 | ||
95 | TRint *theApp = new TRint("aliroot", &argc, argv, 0, 0); | |
96 | ||
97 | // --- Start the event loop --- | |
98 | theApp->Run(); | |
99 | ||
100 | return(0); | |
101 | } | |
102 | ||
103 |