From e9b5f7b731a0f5871815cd46f79165f8b45d8cb5 Mon Sep 17 00:00:00 2001
From: Marilena Bandieramonte <marilena.bandieramonte@cern.ch>
Date: Tue, 10 Nov 2020 21:13:22 +0100
Subject: [PATCH] Add pythia.g4 macro as example of macro to use when
 generating events from Pythia

---
 FullSimLight/CMakeLists.txt |  1 +
 FullSimLight/pythia.g4      | 29 +++++++++++++++++++++++++++++
 2 files changed, 30 insertions(+)
 create mode 100644 FullSimLight/pythia.g4

diff --git a/FullSimLight/CMakeLists.txt b/FullSimLight/CMakeLists.txt
index ac33977af..067a35227 100644
--- a/FullSimLight/CMakeLists.txt
+++ b/FullSimLight/CMakeLists.txt
@@ -180,6 +180,7 @@ endif()
 set(FULLSIMLIGHT_SCRIPTS
   geantino.g4
   macro.g4
+  pythia.g4
   drawMagField.C
   )
 
diff --git a/FullSimLight/pythia.g4 b/FullSimLight/pythia.g4
new file mode 100644
index 000000000..bca523f1d
--- /dev/null
+++ b/FullSimLight/pythia.g4
@@ -0,0 +1,29 @@
+########################################################################
+##  SET ALL VERBOSE LEVELS TO 0
+## ---------------------------------------------------------------------
+/control/verbose 0
+/run/verbose 0
+/event/verbose 0
+/tracking/verbose 0
+########################################################################
+##  SET NUMBER OF THREADS (will be ignored in case of sequential Geant4)
+## ---------------------------------------------------------------------
+/run/numberOfThreads 1
+/control/cout/prefixString G4Worker_
+########################################################################
+##  DETECTOR AND MAGNETIC FIELD
+## ---------------------------------------------------------------------
+###/mydet/setGdmlFile  atlas2018.gdml
+## ---------------------------------------------------------------------
+## To Switch off the field set it to 0 tesla
+/mydet/setField 4.0 tesla
+########################################################################
+##  INIT
+## ---------------------------------------------------------------------
+/run/initialize
+########################################################################
+##  EXECUTE with 10 events and print the list of processes at the end
+## ---------------------------------------------------------------------
+/run/beamOn 10
+## ---------------------------------------------------------------------
+/process/list
-- 
GitLab