Geant4 VMC Version 6.6
Loading...
Searching...
No Matches
TG4WorkerInitialization.h
Go to the documentation of this file.
1#ifndef TG4_WORKER_INITIALIZATION_H
2#define TG4_WORKER_INITIALIZATION_H
3
4//------------------------------------------------
5// The Geant4 Virtual Monte Carlo package
6// Copyright (C) 2014 Ivana Hrivnacova
7// All rights reserved.
8//
9// For the licensing terms see geant4_vmc/LICENSE.
10// Contact: root-vmc@cern.ch
11//-------------------------------------------------
12
17
18#include <G4UserWorkerInitialization.hh>
19
24
26{
27 public:
30
31 // methods
32 //
33 // virtual void WorkerInitialize() const;
34 // This method is called after the tread is created but before the
35 // G4WorkerRunManager is instantiated.
36
37 // virtual void WorkerStart() const;
38 // This method is called once at the beginning of simulation job
39 // when kernel classes and user action classes have already instantiated
40 // but geometry and physics have not been yet initialized. This situation
41 // is identical to "PreInit" state in the sequential mode.
42
43 virtual void WorkerRunStart() const;
44 // This method is called before an event loop. Geometry and physics have
45 // already been set up for the thread. All threads are synchronized and
46 // ready to start the local event loop. This situation is identical to
47 // "Idle" state in the sequential mode.
48
49 virtual void WorkerRunEnd() const;
50 // This method is called for each thread, when the local event loop has
51 // finished but before the synchronization over threads.
52
53 virtual void WorkerStop() const;
54 // This method is called once at the end of simulation job.
55 // Implement here a clean up action.
56
57 private:
62};
63
64#endif // TG4_WORKER_INITIALIZATION_H
Actions at start and end of run on a worker (call in MT mode only)
TG4WorkerInitialization(const TG4WorkerInitialization &right)
Not implemented.
virtual void WorkerRunStart() const
TG4WorkerInitialization & operator=(const TG4WorkerInitialization &right)
Not implemented.