include/BDSRunManager.hh

00001 /* BDSIM code.    Version 1.0
00002    Author: Grahame A. Blair, Royal Holloway, Univ. of London.
00003    Last modified 24.7.2002
00004    Copyright (c) 2002 by G.A.Blair.  ALL RIGHTS RESERVED. 
00005 */
00006 
00007 // $Id: BDSRunManager.hh,v 1.2 2007/07/18 13:35:01 malton Exp $
00008 // GEANT4 tag $Name:  $
00009 #ifndef BDSRunManager_h
00010 #define BDSRunManager_h 1
00011 
00012 #include "G4RunManager.hh"
00013 
00014 #include "G4Event.hh"
00015 #include "G4EventManager.hh"
00016 #include "globals.hh"
00017 #include  <vector>
00018 #include "BDSWorld.hh"
00019 
00020 class BDSRunManager:public G4RunManager
00021 {
00022   public: // with description
00023 
00024     static BDSRunManager* GetRunManager();
00025     //  Static method which returns the singleton pointer of BDSRunManager or
00026     // its derived class.
00027 
00028   private:
00029   G4int nptwiss;
00030   static BDSRunManager* fRunManager;
00031   int GetNumberOfMesh();
00032 
00033   public: // with description
00034     BDSRunManager();
00035     virtual ~BDSRunManager();
00036     //  The constructor and the destructor. The user must construct this class
00037     // object at the beginning of his/her main() and must delete it at the 
00038     // bottom of the main().
00039 
00040   public: // with description
00041 //SPM
00042   virtual void DoEventLoop(G4int n_event,const char* macroFile,G4int n_select);
00043   virtual void BeamOn(G4int n_event,const char* macroFile=0,G4int n_select=-1);
00044   inline void RunInit(){
00045     RunInitialization();
00046   }
00047 };
00048 #endif
00049 

Generated on 27 Aug 2013 for BDSIM by  doxygen 1.4.7