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