1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
18 Revision 1.8 2001/10/04 15:32:36 hristov
19 Instantiation of AliConfig removed
21 Revision 1.7 2001/05/22 11:39:48 buncic
22 Restored proper name for top level AliRoot folder.
24 Revision 1.6 2001/05/21 17:22:50 buncic
25 Fixed problem with missing AliConfig while reading galice.root
27 Revision 1.5 2001/05/16 14:57:07 alibrary
28 New files for folders and Stack
30 Revision 1.4 2000/12/20 08:39:37 fca
31 Support for Cerenkov and process list in Virtual MC
33 Revision 1.3 1999/09/29 09:24:07 fca
34 Introduction of the Copyright and cvs Log
38 //////////////////////////////////////////////////////////////////////////
42 // Main program used to create aliroot application. //
45 // To be able to communicate between the FORTRAN code of GEANT and the //
46 // ROOT data structure, a number of interface routines have been //
50 <img src="picts/newg.gif">
53 //////////////////////////////////////////////////////////////////////////
55 //Standard Root includes
60 #include <AliConfig.h>
63 //On linux Fortran wants this, so we give to it!
69 extern "C" int __fastflag=0;
70 extern "C" int _pctype=0;
71 extern "C" int __mb_cur_max=0;
76 //Initialise the Root environment
77 extern void InitGui();
78 VoidFuncPtr_t initfuncs[] = { InitGui, 0 };
79 TROOT root("galice","The Alice/ROOT Interface", initfuncs);
81 //_____________________________________________________________________________
82 int main(int argc, char **argv)
85 // gAlice main program.
86 // It creates the main Geant3 and AliRun objects.
88 // The Hits are written out after each track in a ROOT Tree structure TreeH,
89 // of the file galice.root. There is one such tree per event. The kinematics
90 // of all the particles that produce hits, together with their genealogy up
91 // to the primary tracks is stared in the galice.root file in an other tree
92 // TreeK of which exists one per event. Finally the information of the events
93 // in the run is stored in the same file in the tree TreeE, containing the
94 // run and event number, the number of vertices, tracks and primary tracks
97 // Create new configuration
99 new AliRun("gAlice","The ALICE Off-line Simulation Framework");
101 // Start interactive geant
103 TRint *theApp = new TRint("aliroot", &argc, argv, 0, 0);
105 // --- Start the event loop ---