aboutsummaryrefslogtreecommitdiffstats
path: root/include/G4BeamTestRunManager.h
diff options
context:
space:
mode:
authorshivesh <s.p.mandalia@qmul.ac.uk>2018-11-20 17:26:02 +0000
committershivesh <s.p.mandalia@qmul.ac.uk>2018-11-20 17:26:02 +0000
commitd0533d03d0c85f2f993f1793a6b9ea2af3391207 (patch)
tree682c2fefe2d113319f21c07bded00fed5245e19b /include/G4BeamTestRunManager.h
parent738c2f88939a041fbc8b6b9cfa3c547b86bc6e42 (diff)
downloadG4BeamTest-d0533d03d0c85f2f993f1793a6b9ea2af3391207.tar.gz
G4BeamTest-d0533d03d0c85f2f993f1793a6b9ea2af3391207.zip
Tue 20 Nov 17:26:02 GMT 2018
Diffstat (limited to 'include/G4BeamTestRunManager.h')
-rw-r--r--include/G4BeamTestRunManager.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/include/G4BeamTestRunManager.h b/include/G4BeamTestRunManager.h
new file mode 100644
index 0000000..a7eaff0
--- /dev/null
+++ b/include/G4BeamTestRunManager.h
@@ -0,0 +1,34 @@
+#ifndef TOPSIMULATOR_G4BEAMTESTRUNMANAGER_H
+#define TOPSIMULATOR_G4BEAMTESTRUNMANAGER_H
+
+#include <G4RunManager.hh>
+
+class G4ParticleGun;
+
+/**
+ * Implementation of G4RunManager
+ */
+class G4BeamTestRunManager: public G4RunManager
+{
+ public:
+ G4BeamTestRunManager();
+
+ static G4BeamTestRunManager* GetIceTopRunManager() {return (G4BeamTestRunManager*)GetRunManager();}
+
+ // Disable BeamOn
+ void BeamOn(G4int n_event,const char* macroFile=0,G4int n_select=-1);
+
+ void InitializeRun();
+ void InjectParticle(G4ParticleGun* particleGun);
+ void TerminateRun();
+
+ protected:
+ G4Event* GenerateEvent(G4int i_event);
+
+ private:
+ // This method is an exact copy of UpdateScoring which is private in the G4RunManager
+ void Update_Scoring();
+
+};
+
+#endif