5 // load Geant4 libraries
6 gROOT->LoadMacro("g4libs.C");
7 gInterpreter->ProcessLine("g4libs()");
9 // load AliRoot core libraries
10 gInterpreter->ProcessLine("steerlibs()");
13 TControlBar* menu = new TControlBar("vertical","Alice Geant4 menu");
15 menu->AddButton("Geant4", "CreateGeant4()", "Create Geant4 Monte Carlo");
16 menu->AddButton("Geant4UI", "StartGeant4UI()","Go to Geant4 Interactive session");
17 menu->AddButton("Init", "gAlice->Init()", "Initialize AliRun");
18 menu->AddButton("Run", "gAlice->Run()", "Process Alice run");
19 menu->AddButton("Run Lego", "gAlice->RunLego()", "Process special lego run");
27 // AliRunConfiguration for Geant4
28 AliRunConfiguration* runConfiguration
29 = new AliRunConfiguration();
33 = new TGeant4("TGeant4", "The Geant4 Monte Carlo", runConfiguration);
35 cout << "Geant4 has been created." << endl;
38 cout << "Monte Carlo has been already created." << endl;
45 // release Root terminal control
47 // go into non-raw term mode
48 Getlinem(kCleanUp, 0);
50 // add test if gMC is TGeant4
51 TGeant4* g4 = (TGeant4*)gMC;
56 Getlinem(kInit, ((TRint*)gROOT->GetApplication())->GetPrompt());
59 cout << "Monte Carlo has not been yet created." << endl;