In vmctest/production:
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 21 Dec 2011 10:52:56 +0000 (10:52 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 21 Dec 2011 10:52:56 +0000 (10:52 +0000)
Updated geant4 setting in Config.C for Geant4 9.5

test/vmctest/production/Config.C

index d5a381f..60b29dc 100644 (file)
@@ -426,8 +426,17 @@ void Config()
   geant4->ProcessGeantCommand("/mcVerbose/opGeometryManager 1");  
   geant4->ProcessGeantCommand("/mcTracking/loopVerbose 1");     
   geant4->ProcessGeantCommand("/mcPhysics/rangeCuts 0.01 mm"); 
-  geant4->ProcessGeantCommand("/mcPhysics/selectOpProcess Scintillation");
-  geant4->ProcessGeantCommand("/mcPhysics/setOpProcessActivation false");
+  // for Geant4 <= 9.4.p03
+  //geant4->ProcessGeantCommand("/mcPhysics/selectOpProcess Scintillation");
+  //geant4->ProcessGeantCommand("/mcPhysics/setOpProcessActivation false");
+  // for Geant4 >= 9.5
+  geant4->ProcessGeantCommand("/optics_engine/selectOpProcess Scintillation");
+  geant4->ProcessGeantCommand("/optics_engine/setOpProcessUse false");
+  geant4->ProcessGeantCommand("/optics_engine/selectOpProcess OpWLS");
+  geant4->ProcessGeantCommand("/optics_engine/setOpProcessUse false");
+  geant4->ProcessGeantCommand("/optics_engine/selectOpProcess OpMieHG");
+  geant4->ProcessGeantCommand("/optics_engine/setOpProcessUse false");
+  
   geant4->ProcessGeantCommand("/mcVerbose/composedPhysicsList 2");  
   geant4->ProcessGeantCommand("/mcTracking/skipNeutrino true");
   // geant4->ProcessGeantCommand("/mcDet/setMaxStepInLowDensityMaterials 1 cm");