7 // load Geant4 libraries
8 if (!gInterpreter->IsLoaded("g4libs.C")) gROOT->LoadMacro("g4libs.C");
9 gInterpreter->ProcessLine("g4libs()");
11 // load AliRoot core libraries
12 gInterpreter->ProcessLine("steerlibs()");
15 TControlBar* menu = new TControlBar("vertical","Alice Geant4 menu");
17 menu->AddButton("Geant4", "CreateGeant4()", "Create Geant4 Monte Carlo");
18 menu->AddButton("Geant4UI", "StartGeant4UI()","Go to Geant4 Interactive session");
19 menu->AddButton("Init", "gAlice->Init()", "Initialize AliRun");
20 menu->AddButton("Run", "gAlice->Run()", "Process Alice run");
21 menu->AddButton("Run Lego", "gAlice->RunLego()", "Process special lego run");
29 // AliRunConfiguration for Geant4
30 AliRunConfiguration* runConfiguration
31 = new AliRunConfiguration();
35 = new TGeant4("TGeant4", "The Geant4 Monte Carlo", runConfiguration);
37 cout << "Geant4 has been created." << endl;
40 cout << "Monte Carlo has been already created." << endl;
47 // release Root terminal control
49 // go into non-raw term mode
50 Getlinem(kCleanUp, 0);
52 // add test if gMC is TGeant4
53 TGeant4* g4 = (TGeant4*)gMC;
58 Getlinem(kInit, ((TRint*)gROOT->GetApplication())->GetPrompt());
61 cout << "Monte Carlo has not been yet created." << endl;