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