Geant4
10.03.p02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
GammaKnifeActionInitialization.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: GammaKnifeActionInitialization.cc 68058 2013-03-13 14:47:43Z gcosmo $
27
//
30
31
#include "
GammaKnifeActionInitialization.hh
"
32
#include "
GammaKnifePrimaryGeneratorAction.hh
"
33
#include "
GammaKnifeRunAction.hh
"
34
#include "
G4GeneralParticleSource.hh
"
35
#include "
G4ParticleTable.hh
"
36
37
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
38
39
GammaKnifeActionInitialization::GammaKnifeActionInitialization
()
40
:
G4VUserActionInitialization
()
41
{
42
//Defatults are set once by master
43
masterGPS =
new
G4GeneralParticleSource
();
44
G4ParticleTable
* particleTable =
G4ParticleTable::GetParticleTable
();
45
G4ParticleDefinition
* particle = particleTable->
FindParticle
(
"gamma"
);
46
masterGPS->
SetParticleDefinition
(particle);
47
}
48
49
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
50
51
GammaKnifeActionInitialization::~GammaKnifeActionInitialization
()
52
{
53
delete
masterGPS;
54
}
55
56
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
57
58
void
GammaKnifeActionInitialization::BuildForMaster
()
const
59
{
60
SetUserAction
(
new
GammaKnifeRunAction
(
true
));
61
}
62
63
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
64
65
void
GammaKnifeActionInitialization::Build
()
const
66
{
67
SetUserAction
(
new
GammaKnifePrimaryGeneratorAction
);
68
SetUserAction
(
new
GammaKnifeRunAction
(
false
));
69
70
}
71
72
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
GammaKnifeActionInitialization.hh
Definition of the GammaKnifeActionInitialization class.
G4ParticleTable::FindParticle
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
Definition:
G4ParticleTable.cc:566
G4GeneralParticleSource
Definition:
G4GeneralParticleSource.hh:179
GammaKnifeRunAction.hh
G4ParticleDefinition
Definition:
G4ParticleDefinition.hh:72
GammaKnifeActionInitialization::BuildForMaster
virtual void BuildForMaster() const
Definition:
GammaKnifeActionInitialization.cc:58
GammaKnifeActionInitialization::~GammaKnifeActionInitialization
virtual ~GammaKnifeActionInitialization()
Definition:
GammaKnifeActionInitialization.cc:51
G4VUserActionInitialization
Definition:
G4VUserActionInitialization.hh:59
G4GeneralParticleSource::SetParticleDefinition
void SetParticleDefinition(G4ParticleDefinition *aParticleDefinition)
Definition:
G4GeneralParticleSource.hh:214
G4ParticleTable.hh
GammaKnifeRunAction
Definition:
GammaKnifeRunAction.hh:46
GammaKnifeActionInitialization::Build
virtual void Build() const
Definition:
GammaKnifeActionInitialization.cc:65
G4ParticleTable
Definition:
G4ParticleTable.hh:65
GammaKnifeActionInitialization::GammaKnifeActionInitialization
GammaKnifeActionInitialization()
Definition:
GammaKnifeActionInitialization.cc:39
GammaKnifePrimaryGeneratorAction.hh
G4ParticleTable::GetParticleTable
static G4ParticleTable * GetParticleTable()
Definition:
G4ParticleTable.cc:96
G4VUserActionInitialization::SetUserAction
void SetUserAction(G4VUserPrimaryGeneratorAction *) const
Definition:
G4VUserActionInitialization.cc:38
G4GeneralParticleSource.hh
GammaKnifePrimaryGeneratorAction
Definition:
GammaKnifePrimaryGeneratorAction.hh:36
source
geant4.10.03.p02
examples
advanced
gammaknife
src
GammaKnifeActionInitialization.cc
Generated on Tue Nov 28 2017 21:43:09 for Geant4 by
1.8.5