Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:59:29

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 // G4WorkerRunManagerKernel
0027 //
0028 // Class description:
0029 //
0030 // This is a class for mandatory control of the Geant4 kernel.
0031 // Implements Worker behavior in a MT application.
0032 // This class is constructed by G4WorkerRunManager. If a user uses his/her
0033 // own class instead of G4WorkerRunManager, this class must be instantiated
0034 // at the very beginning of the application and must be deleted at the very
0035 // end. Also, following methods must be invoked in the proper order:
0036 //   DefineWorldVolume()
0037 //   InitializePhysics()
0038 //   RunInitialization()
0039 //   RunTermination()
0040 //
0041 // User must provide his/her own classes derived from the following
0042 // abstract class and register it to the RunManagerKernel:
0043 //   G4VUserPhysicsList - Particle types, Processes and Cuts
0044 //
0045 // G4WorkerRunManagerKernel does not have any event loop. Handling of events
0046 // is managed by G4RunManager.
0047 //
0048 // This class re-implements only the method that require special treatment
0049 // to implement worker behavior
0050 
0051 // Authors: M.Asai, A.Dotti (SLAC), 2013
0052 // --------------------------------------------------------------------
0053 #ifndef G4WorkerRunManagerKernel_hh
0054 #define G4WorkerRunManagerKernel_hh 1
0055 
0056 #include "G4RunManagerKernel.hh"
0057 
0058 class G4WorkerRunManagerKernel : public G4RunManagerKernel
0059 {
0060   public:
0061     G4WorkerRunManagerKernel();
0062     ~G4WorkerRunManagerKernel() override;
0063 
0064   protected:
0065     // Overwrite default behavior.
0066     void SetupShadowProcess() const override;
0067 };
0068 
0069 #endif