Geant4
11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4VUserActionInitialization.cc
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
// G4VUserActionInitialization implementation
27
//
28
// Author: M.Asai (SLAC), 17 April 2013
29
// --------------------------------------------------------------------
30
31
#include "
G4VUserActionInitialization.hh
"
32
#include "
G4RunManager.hh
"
33
34
// --------------------------------------------------------------------
35
G4VUserActionInitialization::G4VUserActionInitialization
()
36
{
37
}
38
39
// --------------------------------------------------------------------
40
G4VUserActionInitialization::~G4VUserActionInitialization
()
41
{
42
}
43
44
// --------------------------------------------------------------------
45
void
G4VUserActionInitialization::BuildForMaster
()
const
46
{
47
}
48
49
// --------------------------------------------------------------------
50
void
G4VUserActionInitialization::
51
SetUserAction
(
G4VUserPrimaryGeneratorAction
* action)
const
52
{
53
G4RunManager::GetRunManager
()->
SetUserAction
(action);
54
}
55
56
// --------------------------------------------------------------------
57
void
G4VUserActionInitialization::SetUserAction
(
G4UserRunAction
* action)
const
58
{
59
G4RunManager::GetRunManager
()->
SetUserAction
(action);
60
}
61
62
// --------------------------------------------------------------------
63
void
G4VUserActionInitialization::SetUserAction
(
G4UserEventAction
* action)
const
64
{
65
G4RunManager::GetRunManager
()->
SetUserAction
(action);
66
}
67
68
// --------------------------------------------------------------------
69
void
G4VUserActionInitialization::
70
SetUserAction
(
G4UserStackingAction
* action)
const
71
{
72
G4RunManager::GetRunManager
()->
SetUserAction
(action);
73
}
74
75
// --------------------------------------------------------------------
76
void
G4VUserActionInitialization::
77
SetUserAction
(
G4UserTrackingAction
* action)
const
78
{
79
G4RunManager::GetRunManager
()->
SetUserAction
(action);
80
}
81
82
// --------------------------------------------------------------------
83
void
G4VUserActionInitialization::
84
SetUserAction
(
G4UserSteppingAction
* action)
const
85
{
86
G4RunManager::GetRunManager
()->
SetUserAction
(action);
87
}
88
89
// --------------------------------------------------------------------
90
G4VSteppingVerbose
*
G4VUserActionInitialization::
91
InitializeSteppingVerbose
()
const
92
{
93
return
nullptr
;
94
}
G4RunManager.hh
G4VUserActionInitialization.hh
G4RunManager::GetRunManager
static G4RunManager * GetRunManager()
Definition:
G4RunManager.cc:111
G4RunManager::SetUserAction
virtual void SetUserAction(G4UserRunAction *userAction)
Definition:
G4RunManager.cc:1077
G4UserEventAction
Definition:
G4UserEventAction.hh:49
G4UserRunAction
Definition:
G4UserRunAction.hh:53
G4UserStackingAction
Definition:
G4UserStackingAction.hh:45
G4UserSteppingAction
Definition:
G4UserSteppingAction.hh:45
G4UserTrackingAction
Definition:
G4UserTrackingAction.hh:45
G4VSteppingVerbose
Definition:
G4VSteppingVerbose.hh:65
G4VUserActionInitialization::BuildForMaster
virtual void BuildForMaster() const
Definition:
G4VUserActionInitialization.cc:45
G4VUserActionInitialization::SetUserAction
void SetUserAction(G4VUserPrimaryGeneratorAction *) const
Definition:
G4VUserActionInitialization.cc:51
G4VUserActionInitialization::G4VUserActionInitialization
G4VUserActionInitialization()
Definition:
G4VUserActionInitialization.cc:35
G4VUserActionInitialization::~G4VUserActionInitialization
virtual ~G4VUserActionInitialization()
Definition:
G4VUserActionInitialization.cc:40
G4VUserActionInitialization::InitializeSteppingVerbose
virtual G4VSteppingVerbose * InitializeSteppingVerbose() const
Definition:
G4VUserActionInitialization.cc:91
G4VUserPrimaryGeneratorAction
Definition:
G4VUserPrimaryGeneratorAction.hh:48
geant4-v11.1.1
source
run
src
G4VUserActionInitialization.cc
Generated by
1.9.6