+}
+
+void GenerateXML()
+{
+ if (gMC) {
+ // release Root terminal control
+
+ // go into non-raw term mode
+ //Getlinem(kCleanUp, 0);
+
+ // add test if gMC is TGeant4
+ TGeant4* g4 = (TGeant4*)gMC;
+
+ g4->ProcessGeantCommand("/xml/generateAGDD");
+
+ // new Root prompt
+ //Getlinem(kInit, ((TRint*)gROOT->GetApplication())->GetPrompt());
+ }
+ else {
+ cout << "Monte Carlo has not been yet created." << endl;
+ }
+}
+
+void Quit()
+{
+ delete gAlice->GetRunLoader();
+ delete gAlice;
+
+ exit(0);