3 #include "AliRunConfiguration.h"
8 #include "TG4RunManager.h"
10 int main(int argc, char** argv)
14 = new AliRun("gAlice","The Alice run manager");
15 G4cout << "AliRun has been created." << G4endl;
17 // AliRunConfiguration for Geant4
18 AliRunConfiguration* runConfiguration
19 = new AliRunConfiguration();
20 G4cout << "AliRunConfiguration has been created." << G4endl;
22 // Geant4 ======================
25 new TGeant4("TGeant4", "The Geant4 Monte Carlo",
26 runConfiguration, argc, argv );
27 G4cout << "TGeant4 has been created." << G4endl;
29 // start UI ===================
31 TG4RunManager* runManager = TG4RunManager::Instance();
33 // Root interactive session
34 //runManager->StartRootUI();
36 // Geant4 interactive session
37 runManager->StartGeantUI();
40 //runConfiguration is deleted in TG4RunManager
41 //geant4 is deleted in AliRun destructor
43 G4cout << "Everything has been deleted." << G4endl;