Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/Geant4/G4WorkerTaskRunManagerKernel.hh was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

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 // Author: Jonathan Madsen (May 28st 2020)
0027 //
0028 // class description:
0029 //
0030 //     This is a class for mandatory control of GEANT4 kernel.
0031 //     This class implements Worker behavior in a MT application.
0032 //
0033 //     This class is constructed by G4WorkerTaskRunManager. If a user uses
0034 //     his/her own class instead of G4WorkerTaskRunManager, this class must be
0035 //     instantiated by him/herself at the very beginning of the application and
0036 //     must be deleted at the very end of the application. Also, following
0037 //     methods must be invoked in the proper order.
0038 //       DefineWorldVolume
0039 //       InitializePhysics
0040 //       RunInitialization
0041 //       RunTermination
0042 //
0043 //     User must provide his/her own classes derived from the following
0044 //     abstract class and register it to the RunManagerKernel.
0045 //        G4VUserPhysicsList - Particle types, Processes and Cuts
0046 //
0047 //     G4WorkerTaskRunManagerKernel does not have any eveny loop. Handling of
0048 //     events is managed by G4RunManager.
0049 //
0050 //     This class re-implements only the method that require special treatment
0051 //     to implement worker behavior
0052 //
0053 
0054 #ifndef G4WorkerTaskRunManagerKernel_h
0055 #define G4WorkerTaskRunManagerKernel_h 1
0056 
0057 #include "G4RunManagerKernel.hh"
0058 
0059 class G4WorkerTaskRunManagerKernel : public G4RunManagerKernel
0060 {
0061   public:
0062     G4WorkerTaskRunManagerKernel();
0063     ~G4WorkerTaskRunManagerKernel() override;
0064 
0065   protected:
0066     // Overwrite default behavior
0067     void SetupShadowProcess() const override;
0068 };
0069 
0070 #endif  // G4WorkerTaskRunManagerKernel_h