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