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