Geant4
10.01.p03
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
ElectronActionInitialization.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: ElectronActionInitialization.cc 70916 2013-06-07 12:00:42Z jjacquem $
27
//
30
31
#include "
globals.hh
"
32
#include "
ElectronActionInitialization.hh
"
33
#include "
ElectronRunAction.hh
"
34
#include "
ElectronPrimaryGeneratorAction.hh
"
35
#include "
G4GeneralParticleSource.hh
"
36
37
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
38
39
ElectronActionInitialization::ElectronActionInitialization
(
const
G4String
&
40
outputFile)
41
:
G4VUserActionInitialization
(), fOutputFileSpec(outputFile)
42
{
43
//AND->3June2014, temporary to take into account new GPS
44
//Create an instance of GPS in master so shared resources and messenger
45
//exist in master.
46
masterGPS
=
new
G4GeneralParticleSource
();
47
//AND<-3June2014
48
}
49
50
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
51
52
ElectronActionInitialization::~ElectronActionInitialization
()
53
{
54
delete
masterGPS
;
55
}
56
57
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
58
59
void
ElectronActionInitialization::BuildForMaster
()
const
60
{
61
SetUserAction
(
new
ElectronRunAction
(
fOutputFileSpec
));
62
}
63
64
65
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
66
67
void
ElectronActionInitialization::Build
()
const
68
{
69
SetUserAction
(
new
ElectronRunAction
(
fOutputFileSpec
));
70
SetUserAction
(
new
ElectronPrimaryGeneratorAction
);
71
}
72
73
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
ElectronActionInitialization::Build
virtual void Build() const
Definition:
ElectronActionInitialization.cc:67
G4GeneralParticleSource
Andrea Dotti Feb 2015 GPS messenger design requires some explanation for what distributions parameter...
Definition:
G4GeneralParticleSource.hh:179
ElectronActionInitialization::ElectronActionInitialization
ElectronActionInitialization(const G4String &)
Definition:
ElectronActionInitialization.cc:39
G4VUserActionInitialization
Definition:
G4VUserActionInitialization.hh:59
ElectronPrimaryGeneratorAction.hh
Definition of the ElectronPrimaryGeneratorAction class.
globals.hh
ElectronRunAction
Definition:
ElectronRunAction.hh:41
ElectronActionInitialization::BuildForMaster
virtual void BuildForMaster() const
Definition:
ElectronActionInitialization.cc:59
ElectronPrimaryGeneratorAction
Definition:
ElectronPrimaryGeneratorAction.hh:41
G4VUserActionInitialization::SetUserAction
void SetUserAction(G4VUserPrimaryGeneratorAction *) const
Definition:
G4VUserActionInitialization.cc:38
ElectronActionInitialization.hh
Definition of the ElectronActionInitialization class.
ElectronActionInitialization::~ElectronActionInitialization
virtual ~ElectronActionInitialization()
Definition:
ElectronActionInitialization.cc:52
ElectronActionInitialization::fOutputFileSpec
G4String fOutputFileSpec
Definition:
ElectronActionInitialization.hh:51
G4GeneralParticleSource.hh
ElectronActionInitialization::masterGPS
G4GeneralParticleSource * masterGPS
Definition:
ElectronActionInitialization.hh:52
ElectronRunAction.hh
Definition of the ElectronRunAction class.
G4String
Definition:
G4String.hh:45
geant4.10.01.p03
examples
extended
medical
electronScattering2
src
ElectronActionInitialization.cc
Generated on Fri Feb 19 2016 15:53:11 for Geant4 by
1.8.8