Geant4
10.02.p02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
PurgMagActionInitializer.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
// $Id: PurgMagActionInitializer.cc 66241 2012-12-13 18:34:42Z gunter $
27
// GEANT4 tag $Name: $
28
//
29
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
30
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
31
32
#include "
PurgMagActionInitializer.hh
"
33
#include "
PurgMagDetectorConstruction.hh
"
34
#include "
PurgMagPrimaryGeneratorAction.hh
"
35
#include "
PurgMagRunAction.hh
"
36
#include "
PurgMagEventAction.hh
"
37
#include "
PurgMagTrackingAction.hh
"
38
#include "
PurgMagSteppingAction.hh
"
39
#include "
PurgMagSteppingVerbose.hh
"
40
41
#include "
G4RunManager.hh
"
42
43
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
44
45
PurgMagActionInitializer::PurgMagActionInitializer
() :
46
G4VUserActionInitialization
()
47
{;}
48
49
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
50
51
void
PurgMagActionInitializer::Build
()
const
52
{
53
const
PurgMagDetectorConstruction
* detector =
54
static_cast<
const
PurgMagDetectorConstruction
*
>
55
(
G4RunManager::GetRunManager
()->
GetUserDetectorConstruction
());
56
57
SetUserAction
(
new
PurgMagPrimaryGeneratorAction
());
58
59
//Optional user classes
60
SetUserAction
(
new
PurgMagRunAction
());
61
SetUserAction
(
new
PurgMagEventAction
());
62
SetUserAction
(
new
PurgMagTrackingAction
());
63
SetUserAction
(
new
PurgMagSteppingAction
(detector));
64
}
65
66
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
67
68
void
PurgMagActionInitializer::BuildForMaster
()
const
69
{
70
SetUserAction
(
new
PurgMagRunAction
());
71
}
72
73
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
74
G4VSteppingVerbose
*
PurgMagActionInitializer::InitializeSteppingVerbose
()
const
75
{
76
// Verbose output class
77
return
new
PurgMagSteppingVerbose
();
78
}
79
PurgMagActionInitializer::Build
void Build() const
Definition:
PurgMagActionInitializer.cc:51
PurgMagActionInitializer::InitializeSteppingVerbose
G4VSteppingVerbose * InitializeSteppingVerbose() const
Definition:
PurgMagActionInitializer.cc:74
PurgMagRunAction
Definition:
PurgMagRunAction.hh:49
PurgMagPrimaryGeneratorAction.hh
G4RunManager.hh
G4RunManager::GetUserDetectorConstruction
const G4VUserDetectorConstruction * GetUserDetectorConstruction() const
Definition:
G4RunManager.hh:348
PurgMagEventAction
Definition:
PurgMagEventAction.hh:48
PurgMagPrimaryGeneratorAction
Definition:
PurgMagPrimaryGeneratorAction.hh:52
PurgMagSteppingVerbose.hh
PurgMagActionInitializer::BuildForMaster
void BuildForMaster() const
Definition:
PurgMagActionInitializer.cc:68
G4VUserActionInitialization
Definition:
G4VUserActionInitialization.hh:59
PurgMagDetectorConstruction
Definition:
PurgMagDetectorConstruction.hh:61
PurgMagEventAction.hh
PurgMagSteppingVerbose
Definition:
PurgMagSteppingVerbose.hh:46
PurgMagSteppingAction.hh
PurgMagActionInitializer.hh
PurgMagRunAction.hh
G4RunManager::GetRunManager
static G4RunManager * GetRunManager()
Definition:
G4RunManager.cc:79
PurgMagTrackingAction.hh
PurgMagActionInitializer::PurgMagActionInitializer
PurgMagActionInitializer()
Definition:
PurgMagActionInitializer.cc:45
G4VUserActionInitialization::SetUserAction
void SetUserAction(G4VUserPrimaryGeneratorAction *) const
Definition:
G4VUserActionInitialization.cc:38
PurgMagTrackingAction
Definition:
PurgMagTrackingAction.hh:46
PurgMagSteppingAction
Definition:
PurgMagSteppingAction.hh:52
PurgMagDetectorConstruction.hh
G4VSteppingVerbose
Definition:
G4VSteppingVerbose.hh:70
geant4.10.02.p02
examples
advanced
purging_magnet
src
PurgMagActionInitializer.cc
Generated on Fri Jul 1 2016 14:10:39 for Geant4 by
1.8.8