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