Main of the ThreadsafeScorers example. More...
#include "G4Types.hh"
#include "G4RunManagerFactory.hh"
#include "G4Threading.hh"
#include "Randomize.hh"
#include "TSActionInitialization.hh"
#include "TSDetectorConstruction.hh"
#include "TSPhysicsList.hh"
#include "G4TiMemory.hh"
#include "G4UIExecutive.hh"
#include "G4UImanager.hh"
#include "G4VisExecutive.hh"
#include "G4Track.hh"
#include "G4Step.hh"
#include <cstdlib>
Go to the source code of this file.
Functions | |
void | message (G4RunManager *runmanager) |
ts_scorers example shows how to use global scorers. | |
int | main (int argc, char **argv) |
Main of the ThreadsafeScorers example.
Definition in file ts_scorers.cc.
void message | ( | 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 71 of file ts_scorers.cc.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 89 of file ts_scorers.cc.