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 //////////////////////////////////////////////////////////////////////////
22 // Main program used to create aliroot application. //
25 // To be able to communicate between the FORTRAN code of GEANT and the //
26 // ROOT data structure, a number of interface routines have been //
30 <img src="picts/newg.gif">
33 //////////////////////////////////////////////////////////////////////////
35 //Standard Root includes
42 //On linux Fortran wants this, so we give to it!
48 extern "C" int __fastflag=0;
49 extern "C" int _pctype=0;
50 extern "C" int __mb_cur_max=0;
53 //_____________________________________________________________________________
54 int main(int argc, char **argv)
57 // gAlice main program.
58 // It creates the main Geant3 and AliRun objects.
60 // The Hits are written out after each track in a ROOT Tree structure TreeH,
61 // of the file galice.root. There is one such tree per event. The kinematics
62 // of all the particles that produce hits, together with their genealogy up
63 // to the primary tracks is stared in the galice.root file in an other tree
64 // TreeK of which exists one per event. Finally the information of the events
65 // in the run is stored in the same file in the tree TreeE, containing the
66 // run and event number, the number of vertices, tracks and primary tracks
69 // Create new configuration
71 new AliRun("gAlice","The ALICE Off-line Simulation Framework");
73 // Start interactive geant
75 TRint *theApp = new TRint("aliroot", &argc, argv);
77 // --- Start the event loop ---