/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors are mentioned in the code where appropriate. *
* *
* Permission to use, copy, modify and distribute this software and its *
* documentation strictly for non-commercial purposes is hereby granted *
* without fee, provided that the above copyright notice appears in all *
* copies and that both the copyright notice and this permission notice *
* appear in the supporting documentation. The authors make no claims *
* about the suitability of this software for any purpose. It is *
* provided "as is" without express or implied warranty. *
**************************************************************************/
/*
$Log: main.cc,v $
Revision 1.1 2002/05/02 00:25:59 murat
- executable to run CTVMFT
Revision 1.2 2001/03/25 05:51:25 murat
moving on
Revision 1.1.1.1 2001/01/26 01:01:22 murat
save TGEANT
Revision 1.3 1999/09/29 09:24:07 fca
Introduction of the Copyright and cvs Log
*/
//////////////////////////////////////////////////////////////////////////
// //
// aliroot //
// //
// Main program used to create aliroot application. //
// //
// //
// To be able to communicate between the FORTRAN code of GEANT and the //
// ROOT data structure, a number of interface routines have been //
// developed. //
//Begin_Html
/*
*/
//End_Html
//////////////////////////////////////////////////////////////////////////
//Standard Root includes
#include
#include
#include
#if defined __linux
int f__xargc = 0;
int xargc = 0;
char** xargv = 0;
char** f__xargv = 0;
#endif
#if defined WIN32
extern "C" int __fastflag=0;
extern "C" int _pctype=0;
extern "C" int __mb_cur_max=0;
#endif
//Initialise the Root environment
extern void InitGui();
VoidFuncPtr_t initfuncs[] = { InitGui, 0 };
TROOT root("galice","The Alice/ROOT Interface", initfuncs);
extern "C" {
void missing_();
void common_blocks_();
}
//_____________________________________________________________________________
int main(int argc, char **argv)
{
//
// gAlice main program.
// It creates the main Geant3 and AliRun objects.
//
// The Hits are written out after each track in a ROOT Tree structure TreeH,
// of the file galice.root. There is one such tree per event. The kinematics
// of all the particles that produce hits, together with their genealogy up
// to the primary tracks is stared in the galice.root file in an other tree
// TreeK of which exists one per event. Finally the information of the events
// in the run is stored in the same file in the tree TreeE, containing the
// run and event number, the number of vertices, tracks and primary tracks
// in the event.
//
// new AliRun("gAlice"," The Alice Geant3-based MonteCarlo");
// Start interactive geant
TRint *theApp = new TRint("aliroot", &argc, argv, 0, 0);
// --- Initialisation of the GALICE package ---
theApp->Run();
// --- Simulation of all events ---
return(0);
}
//_____________________________________________________________________________
int a() {
// force loading in missing symbols
missing_();
// common_blocks_();
return 0;
}