From 6ea856c5919a4ff791b972b60e05671bef36e626 Mon Sep 17 00:00:00 2001 From: Janka Gianluca Date: Tue, 7 Feb 2023 16:17:46 +0100 Subject: [PATCH] Fixed VIS issue, G4UI_USE and G4VIS_USE retired in 4.10.06 --- musrSim.cc | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/musrSim.cc b/musrSim.cc index ef1b659..de5fb49 100644 --- a/musrSim.cc +++ b/musrSim.cc @@ -10,9 +10,7 @@ #include "G4RunManager.hh" #include "G4UImanager.hh" #include "G4UIterminal.hh" -#ifdef G4UI_USE_TCSH #include "G4UItcsh.hh" //JSL: should be commented on windows ? -#endif //#include //#include @@ -28,11 +26,9 @@ // #include //JSL -#ifdef G4VIS_USE // #include "musrVisManager.hh" #include "G4VisExecutive.hh" #include "G4TrajectoryDrawByCharge.hh" // TS Trajectory drawing by ID or charge -#endif #include "musrRootOutput.hh" #include "musrParameters.hh" @@ -90,12 +86,10 @@ int main(int argc,char** argv) { runManager->SetUserInitialization(musrdetector); runManager->SetUserInitialization(new musrPhysicsList); -#ifdef G4VIS_USE // Visualization, if you choose to have it! // G4VisManager* visManager = new musrVisManager; G4VisManager* visManager = new G4VisExecutive; // TS Trajectory drawing by ID or charge visManager->Initialize(); -#endif // UserAction classes runManager->SetUserAction(new musrPrimaryGeneratorAction(musrdetector)); @@ -116,11 +110,7 @@ int main(int argc,char** argv) { { // G4UIterminal is a (dumb) terminal. G4UIsession * session = 0; -#ifdef G4UI_USE_TCSH - session = new G4UIterminal(new G4UItcsh); -#else session = new G4UIterminal(); -#endif UI->ApplyCommand("/control/execute vis.mac"); session->SessionStart(); @@ -136,11 +126,7 @@ int main(int argc,char** argv) { G4String SecondArgument = argv[2]; if (SecondArgument=="idle") { G4UIsession * session = 0; -#ifdef G4UI_USE_TCSH - session = new G4UIterminal(new G4UItcsh); -#else session = new G4UIterminal(); -#endif G4cout<<"Go to idle state now:"<SessionStart(); delete session; @@ -150,9 +136,7 @@ int main(int argc,char** argv) { // myapp->Run(kTRUE); -#ifdef G4VIS_USE delete visManager; -#endif delete myRootOutput; delete myErrorMessage; delete myParameters;