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