Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4RunManager.hh
Go to the documentation of this file.
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26//
27//
28//
29
30// class description:
31//
32// This is a class for run control in GEANT4
33//
34// For the sequential mode of Geant4 application,
35// user must provide his own classes derived from the following
36// three abstract classes and register them to the RunManager.
37// G4VUserDetectorConstruction - Detector Geometry, Materials
38// G4VUserPhysicsList - Particle types and Processes
39// G4VUserPrimaryGeneratorAction - Event Generator selection
40//
41// In addition to the above mandatory classes, user can easily
42// customize of the default functionality of GEANT4 simulation
43// by making his own classes derived from the following 5 user
44// action classes.
45// G4UserRunAction - Actions for each Run
46// G4UserEventAction - Actions for each Event
47// G4UserStackingAction - Tracks Stacking selection
48// G4UserTrackingAction - Actions for each Track
49// G4UserSteppingAction - Actions for each Step
50//
51// User may use G4VUserActionInitialization class to instantiate
52// any of the six user action classes (1 mandatory + 6 optional).
53// In this case, user's concrete G4VUserActionInitialization should
54// be defined to RunManager.
55//
56// For the multi-threaed mode of Geant4 application,
57// user must provide his own classes derived from the following
58// two abstract classes and register them to the MTRunManager.
59// G4VUserDetectorConstruction - Detector Geometry, Materials
60// G4VUserPhysicsList - Particle types and Processes
61// In addition, user may optionally specify the following.
62// G4UserWorkerInitialization - Defining thread-local actions
63// G4UserRunAction - Actions for entire Run
64//
65// For the multi-threaded mode, use of G4VUserActionInitialization
66// is mandatory.
67// In G4VUserActionInitialization, the user has to specify
68// G4VUserPrimaryGeneratorAction class. In addition user may
69// customize of the default functionality of GEANT4 simulation
70// by making his own classes derived from the following 5 user
71// action classes.
72// G4VUserPrimaryGeneratorAction - Event Generator selection
73// G4UserRunAction - Actions for each tread-local Run
74// G4UserEventAction - Actions for each Event
75// G4UserStackingAction - Tracks Stacking selection
76// G4UserTrackingAction - Actions for each Track
77// G4UserSteppingAction - Actions for each Step
78//
79// G4RunManager is the only manager class in Geant4 kernel which
80// the user MUST construct an object by him/herself in the main()
81// for sequential mode of Geant4 application.
82//
83// In the multi-threaded mode, G4MTRunManager is the dedicated
84// run manager which the user MUST construct an object by him/herself
85// in the main().
86//
87// Note) G4WorkerRunManager is the run manager for individual
88// thread, and is instantiated automatically, and the user needs
89// not to take care of instantiating/deleting it.
90//
91// Also, G4RunManager is the only manager class in Geant4 kernel
92// which the user CAN derive it to costomize the behavior of the
93// run control. For this case, user should use protected methods
94// provided in this class for procedures he/she does not want to
95// change.
96//
97// G4RunManager or the derived class of it MUST be a singleton.
98// The user MUST NOT construct more than one object even if there
99// are two different concrete implementations.
100//
101// G4RunManager controls all of state changes. See G4ApplicationState.hh
102// in intercoms category for the meanings of each state.
103//
104
105#ifndef G4RunManager_h
106#define G4RunManager_h 1
107
108// userAction classes
114class G4UserRunAction;
120
122class G4LogicalVolume;
123class G4Region;
124class G4Timer;
125class G4RunMessenger;
126class G4DCtable;
127class G4Run;
129
130#include "rundefs.hh"
131#include "G4Event.hh"
132#include "G4EventManager.hh"
133#include "G4RunManagerKernel.hh"
134#include "G4Profiler.hh"
135#include "globals.hh"
136#include <algorithm>
137#include <list>
138
140
142{
144 public:
145 // the profiler aliases are only used when compiled with GEANT4_USE_TIMEMORY
147
148 public: // with description
149 static G4RunManager* GetRunManager();
150 // Static method which returns the singleton pointer of G4RunManager or
151 // its derived class.
152 // Note this returns the per-thread singleton in case of multi-threaded
153 // build
154
155 private:
156 static G4ThreadLocal G4RunManager* fRunManager;
157 // Per-thread static instance of the run manager singleton
158
159 public: // with description
160 G4RunManager();
161
162 virtual ~G4RunManager();
163 // The constructor and the destructor. The user must construct this class
164 // object at the beginning of his/her main() and must delete it at the
165 // bottom of the main().
166
167 public: // with description
168 virtual void BeamOn(G4int n_event, const char* macroFile = 0,
169 G4int n_select = -1);
170 // This method starts an event loop of "n_event" events. The condition of
171 // Geant4
172 // is examined before starting the event loop. This method must be invoked at
173 // Idle state. The state will be changed to GeomClosed during the event loop
174 // and will go back to Idle when the loop is over or aborted.
175 // In case a string "macroFile" which represents the name of a macro file is
176 // given,
177 // this macro file will be executed AT THE END of each event processing. In
178 // case "n_select" is greater than zero, at the end of first "n_select" events
179 // the macro file is executed.
180 virtual void Initialize();
181 // This method invokes all the necessary initialization procedures for an
182 // event
183 // loop. This method must be invoked at the Geant4 state of PreInit or Idle.
184 // The state will be changed to Init during the initialization procedures and
185 // then changed to Idle.
186 // This method invokes two protected methods, InitializeGeometry() and
187 // InitializePhysics().
188 // After some event loops, the user can invoke this method once again. It is
189 // required if the user changes geometry, physics process, and/or cut off
190 // value. If the user forget the second invokation, G4RunManager will invoke
191 // BeamOn() method will invoke this method. (Note that this feature is not
192 // valid for the first initialization.)
193 virtual void DefineWorldVolume(G4VPhysicalVolume* worldVol,
194 G4bool topologyIsChanged = true);
195 // This method must be invoked if the geometry setup has been changed between
196 // runs. The flag 'topologyIsChanged' will specify if the geometry topology is
197 // different from the original one used in the previous run; if not, it must
198 // be set to false, so that the original optimisation and navigation history
199 // is preserved. This method is invoked also at initialisation.
200 //////////////////////////////////////////////////////virtual void
201 ///ResetNavigator()
202 /// const;
203 // Resets the state of the navigator for tracking; needed for geometry
204 // updates.
205 // It forces the optimisation and navigation history to be reset.
206 virtual void AbortRun(G4bool softAbort = false);
207 // This method safely aborts the current event loop even if an event is in
208 // progress.
209 // This method is available for Geant4 states of GeomClosed and EventProc. The
210 // state will be changed to Idle, so that another event loop can be done.
211 // If softAbort is true, the event loop is aborted after processing the
212 // current
213 // event, while the current event is aborted if it is false.
214 virtual void AbortEvent();
215 // This method aborts the currently processing event, remaining events in the
216 // current event loop will be processed. This method is available only for
217 // EventProc state.
218 public: // with description
219 virtual void InitializeGeometry();
220 virtual void InitializePhysics();
221 // These protected methods are invoked from Initialize() method for the
222 // initializations of geometry and physics processes. The user's concrete
223 // G4VUserDetectorConstruction class will be accessed from
224 // InitializeGeometry() and G4VUserPhysicsList class will be accessed from
225 // InitializePhysics().
226
228 virtual void RunInitialization();
229 virtual void DoEventLoop(G4int n_event, const char* macroFile = 0,
230 G4int n_select = -1);
231 virtual void RunTermination();
232 // These four protected methods are invoked from BeamOn() method. These four
233 // methods
234 // are invoked in this order.
235 // ConfirmBeamOnCondition() method checks if all the necessary
236 // initializations have
237 // already done. If the condition is not satisfied, false is returned and the
238 // follwing three methods will be skipped.
239 // RunInitialization() method initializes a run. For example, a G4Run class
240 // object
241 // is constructed in this method.
242 // DoEventLoop() method control an event loop. Arguments are same as BeamOn()
243 // method.
244 // Inide the event loop, two following protected methods are invoked at the
245 // begining and the end of each event.
246 // RunTermination() method terminates a run processing. For example, a G4Run
247 // class
248 // object is deleted in this class. If the user uses ODBMS and wants to store
249 // the G4Run class object, he/she must override this method.
250
251 virtual void InitializeEventLoop(G4int n_event, const char* macroFile = 0,
252 G4int n_select = -1);
253 virtual void ProcessOneEvent(G4int i_event);
254 virtual void TerminateOneEvent();
255 virtual void TerminateEventLoop();
256 // Granular virtual methods invoked from DoEventLoop() method.
257
258 ///////////////////////////////////////////////////////////virtual void
259 /// BuildPhysicsTables();
260 // This method is invoked from RunInitialization() to create physics tables.
261
262 virtual G4Event* GenerateEvent(G4int i_event);
263 virtual void AnalyzeEvent(G4Event* anEvent);
264 // These two protected methods are invoked from DoEventLoop() method at the
265 // begining
266 // and the end of each event processing.
267 // GenerateEvent() method constructs a G4Event class object and invoke the
268 // user's
269 // G4VUserPrimaryGeneratorAction concrete class. If the user is using ODBMS
270 // and event objects have been created and stored in the data base, he/she
271 // must override this method.
272 // AnalyzeEvent() stores an event to a data base if a concrete
273 // G4VPersistentManager
274 // class is defined.
275
276 virtual void ConfigureProfilers(const std::vector<std::string>& args = {});
277 // This method configures the global fallback query and label generators
278
279 void ConfigureProfilers(int argc, char** argv);
280 // calls the above virtual method
281
282 virtual void SetNumberOfThreads(G4int) {}
283 virtual G4int GetNumberOfThreads() const { return 1; }
284 // Dummy methods to dispatch generic inheritance calls from G4RunManager
285 // base class.
286
287 public: // with description
288 //////////////////////////////////////////////////////void UpdateRegion();
289 // Update region list.
290 // This method is mandatory before invoking following two dump methods.
291 // At RunInitialization(), this method is automatically invoked, and thus
292 // the user needs not invoke.
293
294 void DumpRegion(const G4String& rname) const;
295 // Dump information of a region.
296
297 void DumpRegion(G4Region* region = 0) const;
298 // Dump information of a region.
299 // If the pointer is NULL, all regions are shown.
300
301 protected:
303 void CleanUpUnnecessaryEvents(G4int keepNEvents);
304 void StackPreviousEvent(G4Event* anEvent);
305
306 public:
308 {
312 };
313
314 protected:
315 // This constructor is called in case of Geant4 Multi-threaded build
316 G4RunManager(RMType rmType);
317
318 protected:
321
333
334 private:
335 G4RunMessenger* runMessenger;
336
337 protected:
343
349
352 std::list<G4Event*>* previousEvents;
355
362 virtual void StoreRNGStatus(const G4String& filenamePrefix);
363
365
367
374
375 public:
376 virtual void rndmSaveThisRun();
377 virtual void rndmSaveThisEvent();
378 virtual void RestoreRandomNumberStatus(const G4String& fileN);
379
380 public: // with description
381 // The following set user-actions and user-initialization to the kernel
382 // In MT mode, actions are shared among all threads, and should be set
383 // in the master thread, while user-actions are thread-private and each `
384 // thread has private instances. Master thread does not have user-actions
385 // except for the (optional) run-action.
386 // User should instantiate the user-actions in the action-initialization
387 // and use that class set method to set user-actions and not directly
388 // the methods provided here.
389 // Multiple Run,Event,Tracking, and Stepping actions are allowed, set
390 // multiple instances and these will be appended to the current configuration
391 // Multiple Stacking and PrimaryGeneration are not allowed
393 virtual void SetUserInitialization(G4VUserPhysicsList* userInit);
396 virtual void SetUserInitialization(
398 virtual void SetUserAction(G4UserRunAction* userAction);
399 virtual void SetUserAction(G4VUserPrimaryGeneratorAction* userAction);
400 virtual void SetUserAction(G4UserEventAction* userAction);
401 virtual void SetUserAction(G4UserStackingAction* userAction);
402 virtual void SetUserAction(G4UserTrackingAction* userAction);
403 virtual void SetUserAction(G4UserSteppingAction* userAction);
404
405 // These methods store respective user initialization and action classes.
407 {
408 return userDetector;
409 }
411 {
412 return physicsList;
413 }
415 {
417 }
419 const
420 {
422 }
424 {
426 }
429 {
431 }
432 inline const G4UserRunAction* GetUserRunAction() const
433 {
434 return userRunAction;
435 }
437 const
438 {
440 }
442 {
443 return userEventAction;
444 }
446 {
447 return userStackingAction;
448 }
450 {
451 return userTrackingAction;
452 }
454 {
455 return userSteppingAction;
456 }
457 // These methods returns respective user initialization and action classes.
458
460 {
462 }
463 // Set the number of additional (optional) waiting stacks.
464 // This method must be invoked at PreInit, Init or Idle states.
465 // Once the user set the number of additional waiting stacks,
466 // he/she can use the corresponding ENUM in G4ClassificationOfNewTrack.
467
468 inline const G4String& GetVersionString() const
469 {
470 return kernel->GetVersionString();
471 }
472
474 {
476 }
477
479 // if vl = 1 : status before primary particle generation is stored
480 // if vl = 2 : status before event processing (after primary particle
481 // generation) is stored if vl = 3 : both are stored if vl = 0 : none is
482 // stored (default)
483 {
486 }
488 {
490 }
491
492 public:
493 inline void SetRandomNumberStore(G4bool flag)
494 {
496 }
498 inline void SetRandomNumberStoreDir(const G4String& dir)
499 {
500 G4String dirStr = dir;
501 if(dirStr(dirStr.length() - 1) != '/')
502 dirStr += "/";
503#ifndef WIN32
504 G4String shellCmd = "mkdir -p ";
505#else
506 std::replace(dirStr.begin(), dirStr.end(), '/', '\\');
507 G4String shellCmd = "if not exist " + dirStr + " mkdir ";
508#endif
509 shellCmd += dirStr;
510 randomNumberStatusDir = dirStr;
511 G4int sysret = system(shellCmd);
512 if(sysret != 0)
513 {
514 G4String errmsg = "\"" + shellCmd +
515 "\" returns non-zero value. Directory creation failed.";
516 G4Exception("GrRunManager::SetRandomNumberStoreDir", "Run0071",
517 JustWarning, errmsg);
518 G4cerr << " return value = " << sysret << G4endl;
519 }
520 }
521 inline const G4String& GetRandomNumberStoreDir() const
522 {
524 }
526 {
528 }
530 {
533 {
534 G4Exception("GrRunManager::SetRandomNumberStoreDir", "Run0072",
536 "Random number status is not available for this event.");
537 }
539 }
541 {
542 rngStatusEventsFlag = flag;
543 }
545 {
546 return rngStatusEventsFlag;
547 }
548
549 public: // with description
550 void GeometryHasBeenModified(G4bool prop = true);
551 // This method must be invoked (or equivalent UI command can be used)
552 // in case the user changes his/her detector geometry after Initialize()
553 // method has been invoked. Then, at the begining of the next BeamOn(),
554 // all necessary re-voxelization will be made.
555 // The parameter "prop" has to be true if this C++ method is directly
556 // invoked.
557
558 void ReinitializeGeometry(G4bool destroyFirst = false, G4bool prop = true);
559 // This method must be invoked (or equivalent UI command can be used)
560 // in case the user needs his/her detector construction has to be
561 // re-invoked. Re-voxelization will be also done.
562 // If the first parameter "destroyFirst" is true, G4SolidStore,
563 // G4LogicalVolumeStore and G4PhysicalVolumeStore are cleaned up, and
564 // thus all solids, logical volumes and physical volumes previously defined
565 // are deleted.
566 // The second parameter "prop" has to be true if this C++ method is directly
567 // invoked.
568
570 // This method must be invoked (or equivalent UI command can be used)
571 // in case the user changes his/her physics process(es), e.g. (in)activate
572 // some processes. Once this method is invoked, regardless of cuts are
573 // changed or not, BuildPhysicsTable() of PhysicsList is invoked for
574 // refreshing all physics tables.
575
577 {
578 G4cerr << "CutOffHasBeenModified becomes obsolete." << G4endl;
579 G4cerr << "It is safe to remove invoking this method." << G4endl;
580 }
581
582 public: // with description
584 // This method may be used if the orientation and/or size of this
585 // particular physical volume has been modified while rest of the
586 // geometries in the world has not been changed. This avoids the
587 // full re-optimization of the entire geometry tree which is forced
588 // if GeometryHasBeenModified() method is invoked.
589
591 // Same as above, but the mother logical volume is specified.
592
593 public:
594 inline void SetVerboseLevel(G4int vl)
595 {
596 verboseLevel = vl;
598 }
599 inline G4int GetVerboseLevel() const { return verboseLevel; }
600 inline G4int GetPrintProgress() { return printModulo; }
601 inline void SetPrintProgress(G4int i) { printModulo = i; }
602
604 {
605 if(geometryToBeOptimized != vl)
606 {
610 }
611 }
613
614 public: // with description
616 {
618 }
619 // Sets the number of events to be kept after processing. That is, "val"
620 // previous
621 // events can be used with the most recent event for digitizing pileup.
622 // "val"+1 previous event is deleted.
623 // This method must be invoked before starting the event loop.
624 inline const G4Run* GetCurrentRun() const { return currentRun; }
625 inline G4Run* GetNonConstCurrentRun() const { return currentRun; }
626 // Returns the pointer to the current run. This method is available for
627 // Geant4
628 // states of GeomClosed and EventProc.
629 inline const G4Event* GetCurrentEvent() const { return currentEvent; }
630 // Returns the pointer to the current event. This method is available for
631 // EventProc
632 // state.
633 inline const G4Event* GetPreviousEvent(G4int i) const
634 {
635 if(i >= 1 && i <= n_perviousEventsToBeStored)
636 {
637 std::list<G4Event*>::iterator itr = previousEvents->begin();
638 for(G4int j = 1; j < i; j++)
639 {
640 itr++;
641 }
642 return *itr;
643 }
644 return 0;
645 }
646 // Returns the pointer to the "i" previous event. This method is availavle
647 // for
648 // EventProc state. In case the event loop has not yet to reach to the
649 // requested event, null will be returned. To use this method,
650 // SetNumberOfEventsToBeStored() method mentioned above must be invoked
651 // previously to the event loop.
652 inline void SetRunIDCounter(G4int i) { runIDCounter = i; }
653 // Set the run number counter. Initially, the counter is initialized to zero
654 // and
655 // incremented by one for every BeamOn().
656
657 public:
660 {
662 }
664 {
666 }
667 inline G4int GetNumberOfSelectEvents() const { return n_select_msg; }
668 inline G4String GetSelectMacro() const { return selectMacro; }
669 inline void SetDCtable(G4DCtable* DCtbl) { DCtable = DCtbl; }
670
671 public:
672 inline RMType GetRunManagerType() const { return runManagerType; }
673
674 protected:
676
677 public:
678 virtual void ConstructScoringWorlds();
679
680 protected:
681 void UpdateScoring();
682 virtual void DeleteUserInitializations();
683 // Called by destructor to delete user detector. Note: the userdetector is
684 // shared by threads Thus this should be re-implemented to empty in derived
685 // classes that implement the worker model
686 private:
687 // disable assignment and copy constructors
688 G4RunManager(const G4RunManager&) {}
689 G4RunManager& operator=(const G4RunManager&) { return *this; }
690
691 protected:
692 // This boolean flag has to be shared by all G4RunManager objects
694
695 public:
697 // This is used only by workers thread to reset RNG engines from files
698 // that are event specific. Not implemented for sequential since run seed
699 // defines event seeds
701 { /*No effect in SEQ */
702 }
703
704 protected:
706
707 public:
709 {
711 }
712
713 private:
714 std::unique_ptr<ProfilerConfig> masterRunProfiler;
715};
716
717#endif
@ JustWarning
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
Definition: G4Exception.cc:35
bool G4bool
Definition: G4Types.hh:86
int G4int
Definition: G4Types.hh:85
G4GLOB_DLL std::ostream G4cerr
#define G4endl
Definition: G4ios.hh:57
void SetNumberOfAdditionalWaitingStacks(G4int iAdd)
void StoreRandomNumberStatusToG4Event(G4int vl)
void SetGeometryToBeOptimized(G4bool vl)
void SetPrimaryTransformer(G4PrimaryTransformer *pt)
const G4String & GetVersionString() const
void SetVerboseLevel(G4int vl)
const G4UserTrackingAction * GetUserTrackingAction() const
G4bool isScoreNtupleWriter
G4bool geometryInitialized
void CleanUpPreviousEvents()
void CleanUpUnnecessaryEvents(G4int keepNEvents)
G4int storeRandomNumberStatusToG4Event
G4UserWorkerInitialization * userWorkerInitialization
virtual void SetNumberOfThreads(G4int)
virtual void AbortRun(G4bool softAbort=false)
const G4UserWorkerInitialization * GetUserWorkerInitialization() const
virtual void Initialize()
G4int nParallelWorlds
std::list< G4Event * > * previousEvents
const G4VUserDetectorConstruction * GetUserDetectorConstruction() const
G4Timer * timer
void SetRunIDCounter(G4int i)
virtual G4int GetNumberOfThreads() const
G4UserWorkerThreadInitialization * userWorkerThreadInitialization
G4bool geometryDirectlyUpdated
G4int n_select_msg
G4int numberOfEventProcessed
virtual void RestoreRandomNumberStatus(const G4String &fileN)
const G4VUserPrimaryGeneratorAction * GetUserPrimaryGeneratorAction() const
G4int GetNumberOfEventsToBeProcessed() const
const G4UserEventAction * GetUserEventAction() const
virtual void BeamOn(G4int n_event, const char *macroFile=0, G4int n_select=-1)
G4UserEventAction * userEventAction
const G4VUserActionInitialization * GetUserActionInitialization() const
void ReinitializeGeometry(G4bool destroyFirst=false, G4bool prop=true)
void SetRandomNumberStoreDir(const G4String &dir)
virtual void DoEventLoop(G4int n_event, const char *macroFile=0, G4int n_select=-1)
G4Run * GetNonConstCurrentRun() const
virtual void rndmSaveThisEvent()
G4VUserActionInitialization * GetNonConstUserActionInitialization() const
virtual void DeleteUserInitializations()
G4int runIDCounter
const G4Event * GetPreviousEvent(G4int i) const
G4RunManagerKernel * kernel
G4int verboseLevel
G4Run * currentRun
virtual G4bool ConfirmBeamOnCondition()
G4bool geometryToBeOptimized
virtual void RestoreRndmEachEvent(G4bool)
static G4RunManager * GetRunManager()
Definition: G4RunManager.cc:84
virtual void AbortEvent()
virtual void rndmSaveThisRun()
virtual void InitializePhysics()
G4DCtable * DCtable
G4String randomNumberStatusForThisRun
G4bool runAborted
G4String msgText
static G4bool IfGeometryHasBeenDestroyed()
Definition: G4RunManager.cc:73
G4UserRunAction * userRunAction
const G4String & GetRandomNumberStatusForThisEvent() const
virtual void DefineWorldVolume(G4VPhysicalVolume *worldVol, G4bool topologyIsChanged=true)
const G4UserStackingAction * GetUserStackingAction() const
G4bool rngStatusEventsFlag
const G4String & GetVersionString() const
G4String selectMacro
virtual void InitializeGeometry()
RMType GetRunManagerType() const
virtual void RunTermination()
void SetNumberOfAdditionalWaitingStacks(G4int iAdd)
const G4UserSteppingAction * GetUserSteppingAction() const
void SetDCtable(G4DCtable *DCtbl)
void SetNumberOfEventsToBeStored(G4int val)
G4bool physicsInitialized
G4VUserActionInitialization * userActionInitialization
void PhysicsHasBeenModified()
G4VPhysicalVolume * currentWorld
const G4Event * GetCurrentEvent() const
void StackPreviousEvent(G4Event *anEvent)
static G4RUN_DLL G4bool fGeometryHasBeenDestroyed
void ReOptimize(G4LogicalVolume *)
const G4String & GetRandomNumberStatusForThisRun() const
void SetNumberOfEventsToBeProcessed(G4int val)
void SetVerboseLevel(G4int vl)
G4bool GetRandomNumberStore() const
const G4VUserPhysicsList * GetUserPhysicsList() const
G4VUserDetectorConstruction * userDetector
const G4String & GetRandomNumberStoreDir() const
G4VUserPrimaryGeneratorAction * userPrimaryGeneratorAction
const G4Run * GetCurrentRun() const
G4int numberOfEventToBeProcessed
virtual ~G4RunManager()
G4int GetNumberOfParallelWorld() const
G4String randomNumberStatusDir
virtual void TerminateEventLoop()
virtual void SetUserAction(G4UserRunAction *userAction)
void SetRandomNumberStorePerEvent(G4bool flag)
G4String randomNumberStatusForThisEvent
const G4UserRunAction * GetUserRunAction() const
const G4UserWorkerThreadInitialization * GetUserWorkerThreadInitialization() const
void GeometryHasBeenModified(G4bool prop=true)
void SetGeometryToBeOptimized(G4bool vl)
G4UserTrackingAction * userTrackingAction
RMType runManagerType
G4int n_perviousEventsToBeStored
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
void ReOptimizeMotherOf(G4VPhysicalVolume *)
void GeometryDirectlyUpdated(G4bool val=true)
void StoreRandomNumberStatusToG4Event(G4int vl)
virtual void ProcessOneEvent(G4int i_event)
void CutOffHasBeenModified()
virtual void ConfigureProfilers(const std::vector< std::string > &args={})
G4String GetSelectMacro() const
G4bool storeRandomNumberStatus
virtual G4Event * GenerateEvent(G4int i_event)
G4int GetFlagRandomNumberStatusToG4Event() const
void SetRandomNumberStore(G4bool flag)
G4bool initializedAtLeastOnce
G4EventManager * eventManager
virtual void StoreRNGStatus(const G4String &filenamePrefix)
virtual void TerminateOneEvent()
virtual void RunInitialization()
void DumpRegion(const G4String &rname) const
G4int GetNumberOfSelectEvents() const
G4int GetPrintProgress()
G4VUserPhysicsList * physicsList
virtual void AnalyzeEvent(G4Event *anEvent)
G4bool GetRandomNumberStorePerEvent() const
G4bool GetGeometryToBeOptimized()
G4UserStackingAction * userStackingAction
G4int GetVerboseLevel() const
void UpdateScoring()
G4Event * currentEvent
virtual void ConstructScoringWorlds()
void SetPrintProgress(G4int i)
void SetPrimaryTransformer(G4PrimaryTransformer *pt)
virtual void InitializeEventLoop(G4int n_event, const char *macroFile=0, G4int n_select=-1)
G4UserSteppingAction * userSteppingAction
Definition: G4Run.hh:49
#define G4RUN_DLL
Definition: rundefs.hh:47
#define G4ThreadLocal
Definition: tls.hh:77