Geant4
10.02.p02
|
Main of the ThreadsafeScorers example. More...
#include "G4RunManager.hh"
#include "Randomize.hh"
#include "TSDetectorConstruction.hh"
#include "TSPhysicsList.hh"
#include "TSActionInitialization.hh"
#include "G4UImanager.hh"
#include "G4VisExecutive.hh"
#include "G4UIExecutive.hh"
Go to the source code of this file.
Typedefs | |
typedef G4RunManager | RunManager |
ts_scorers example shows how to use global scorers. The benefit of using global scorers in memory-savings for problems with very large amounts of scoring volumes. Additionally, the global scorers are more precise w.r.t. the serial solution because of the lack of compounding round-off error from multiple threads More... | |
Functions | |
int | main (int argc, char **argv) |
Main of the ThreadsafeScorers example.
Definition in file ts_scorers.cc.
typedef G4RunManager RunManager |
ts_scorers example shows how to use global scorers. The benefit of using global scorers in memory-savings for problems with very large amounts of scoring volumes. Additionally, the global scorers are more precise w.r.t. the serial solution because of the lack of compounding round-off error from multiple threads
In this example, the global scorers are implemented as static member variables in TSRun because TSRun is thread-local. The G4atomic class is the core of the thread-safe scorers and can be uses
Definition at line 54 of file ts_scorers.cc.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 68 of file ts_scorers.cc.
References G4UImanager::ApplyCommand(), G4UImanager::GetUIpointer(), G4RunManager::Initialize(), G4VisManager::Initialize(), G4UIExecutive::SessionStart(), and G4RunManager::SetUserInitialization().