Geant4
v4-10.4-release
메인 페이지
관련된 페이지
모듈
네임스페이스
클래스
파일들
파일 목록
파일 멤버
모두
클래스
네임스페이스들
파일들
함수
변수
타입정의
열거형 타입
열거형 멤버
Friends
매크로
그룹들
페이지들
examples
advanced
hadrontherapy
src
HadrontherapyPrimaryGeneratorAction.cc
이 파일의 문서화 페이지로 가기
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
// Hadrontherapy advanced example for Geant4
27
// See more at: https://twiki.cern.ch/twiki/bin/view/Geant4/AdvancedExamplesHadrontherapy
28
29
#include "
HadrontherapyPrimaryGeneratorAction.hh
"
30
#include "
HadrontherapyPrimaryGeneratorMessenger.hh
"
31
32
#include "
HadrontherapyMatrix.hh
"
33
#include "
HadrontherapyDetectorSD.hh
"
34
#include "
G4SystemOfUnits.hh
"
35
#include "
G4Event.hh
"
36
#include "
G4ParticleGun.hh
"
37
#include "
G4GeneralParticleSource.hh
"
38
#include "
G4ParticleTable.hh
"
39
#include "
G4ParticleDefinition.hh
"
40
#include "
Randomize.hh
"
41
#include "
G4IonTable.hh
"
42
43
44
#include "
G4VUserPrimaryGeneratorAction.hh
"
45
#include "
G4ParticleTable.hh
"
46
47
#include "
G4Event.hh
"
48
#include "
G4Timer.hh
"
49
50
#include "
G4RunManager.hh
"
51
52
53
55
HadrontherapyPrimaryGeneratorAction::HadrontherapyPrimaryGeneratorAction
()
56
{
57
PrimaryGeneratorMessenger
=
new
HadrontherapyPrimaryGeneratorMessenger
(
this
);
58
SetDefaultPrimaryParticle
();
59
particleGun
=
new
G4GeneralParticleSource
();
60
61
}
62
64
HadrontherapyPrimaryGeneratorAction::~HadrontherapyPrimaryGeneratorAction
()
65
{
66
delete
PrimaryGeneratorMessenger
;
67
delete
particleGun
;
68
}
69
71
void
HadrontherapyPrimaryGeneratorAction::SetDefaultPrimaryParticle
()
72
{
73
74
}
75
77
void
HadrontherapyPrimaryGeneratorAction::GeneratePrimaries
(
G4Event
* anEvent)
78
{
79
particleGun
->
GeneratePrimaryVertex
(anEvent);
80
81
}
82
83
G4ParticleGun.hh
G4Timer.hh
Randomize.hh
G4GeneralParticleSource::GeneratePrimaryVertex
void GeneratePrimaryVertex(G4Event *)
Definition:
G4GeneralParticleSource.cc:187
HadrontherapyPrimaryGeneratorAction.hh
HadrontherapyPrimaryGeneratorAction::HadrontherapyPrimaryGeneratorAction
HadrontherapyPrimaryGeneratorAction()
Definition:
HadrontherapyPrimaryGeneratorAction.cc:55
G4IonTable.hh
HadrontherapyPrimaryGeneratorAction::~HadrontherapyPrimaryGeneratorAction
~HadrontherapyPrimaryGeneratorAction()
Definition:
HadrontherapyPrimaryGeneratorAction.cc:64
HadrontherapyPrimaryGeneratorMessenger.hh
G4GeneralParticleSource.hh
G4Event.hh
G4VUserPrimaryGeneratorAction.hh
HadrontherapyPrimaryGeneratorAction::PrimaryGeneratorMessenger
HadrontherapyPrimaryGeneratorMessenger * PrimaryGeneratorMessenger
Definition:
HadrontherapyPrimaryGeneratorAction.hh:68
HadrontherapyMatrix.hh
G4Event
Definition:
G4Event.hh:52
HadrontherapyDetectorSD.hh
G4SystemOfUnits.hh
G4ParticleTable.hh
HadrontherapyPrimaryGeneratorAction::GeneratePrimaries
void GeneratePrimaries(G4Event *)
Definition:
HadrontherapyPrimaryGeneratorAction.cc:77
G4RunManager.hh
PrimaryGeneratorMessenger
Definition:
advanced/amsEcal/include/PrimaryGeneratorMessenger.hh:44
G4GeneralParticleSource
Definition:
G4GeneralParticleSource.hh:179
G4ParticleDefinition.hh
HadrontherapyPrimaryGeneratorMessenger
Definition:
HadrontherapyPrimaryGeneratorMessenger.hh:40
HadrontherapyPrimaryGeneratorAction::particleGun
G4GeneralParticleSource * particleGun
Definition:
HadrontherapyPrimaryGeneratorAction.hh:73
HadrontherapyPrimaryGeneratorAction::SetDefaultPrimaryParticle
void SetDefaultPrimaryParticle()
Definition:
HadrontherapyPrimaryGeneratorAction.cc:71
다음에 의해 생성됨 :
1.8.5