Geant4
10.03.p03
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
G4MIRDBodyFactory.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
// Authors: S. Guatelli , M. G. Pia, INFN Genova and F. Ambroglini INFN Perugia, Italy
27
//
28
// Based on code developed by the undergraduate student G. Guerrieri
29
// Note: this is a preliminary beta-version of the code; an improved
30
// version will be distributed in the next Geant4 public release, compliant
31
// with the design in a forthcoming publication, and subject to a
32
// design and code review.
33
//
34
#include "
G4MIRDBodyFactory.hh
"
35
#include "
G4MIRDStomach.hh
"
36
#include "
G4MIRDSmallIntestine.hh
"
37
#include "
G4MIRDUpperLargeIntestine.hh
"
38
#include "
G4MIRDLowerLargeIntestine.hh
"
39
#include "
G4MIRDLeftKidney.hh
"
40
#include "
G4MIRDRightKidney.hh
"
41
#include "
G4MIRDLiver.hh
"
42
#include "
G4MIRDPancreas.hh
"
43
#include "
G4MIRDSpleen.hh
"
44
#include "
G4MIRDUrinaryBladder.hh
"
45
#include "
G4MIRDLeftLung.hh
"
46
#include "
G4MIRDRightLung.hh
"
47
#include "
G4MIRDHeart.hh
"
48
#include "
G4MIRDBrain.hh
"
49
#include "
G4MIRDHead.hh
"
50
#include "
G4MIRDTrunk.hh
"
51
#include "
G4MIRDMaleGenitalia.hh
"
52
#include "
G4MIRDLeftLeg.hh
"
53
#include "
G4MIRDRightLeg.hh
"
54
#include "
G4MIRDThyroid.hh
"
55
#include "
G4MIRDThymus.hh
"
56
#include "
G4MIRDUterus.hh
"
57
#include "
G4MIRDLeftBreast.hh
"
58
#include "
G4MIRDRightBreast.hh
"
59
#include "
G4MIRDRightOvary.hh
"
60
#include "
G4MIRDLeftOvary.hh
"
61
#include "
G4MIRDUpperSpine.hh
"
62
#include "
G4MIRDMiddleLowerSpine.hh
"
63
#include "
G4MIRDLeftLegBone.hh
"
64
#include "
G4MIRDRightLegBone.hh
"
65
#include "
G4MIRDLeftClavicle.hh
"
66
#include "
G4MIRDRightClavicle.hh
"
67
#include "
G4MIRDLeftArmBone.hh
"
68
#include "
G4MIRDRightArmBone.hh
"
69
#include "
G4MIRDSkull.hh
"
70
#include "
G4MIRDRibCage.hh
"
71
#include "
G4MIRDPelvis.hh
"
72
#include "
G4MIRDLeftTeste.hh
"
73
#include "
G4MIRDRightTeste.hh
"
74
#include "
G4MIRDLeftScapula.hh
"
75
#include "
G4MIRDRightScapula.hh
"
76
#include "
G4MIRDLeftAdrenal.hh
"
77
#include "
G4MIRDRightAdrenal.hh
"
78
79
G4MIRDBodyFactory::G4MIRDBodyFactory
()
80
{
81
// Map with name of the organ and pointer to the MIRDOrgan class
82
// organ["ParameterisedRightBreast"] = new G4ParameterisedRightBreast();
83
//organ["ParameterisedLeftBreast"] = new G4ParameterisedLeftBreast();
84
organ[
"Head"
] =
new
G4MIRDHead
();
85
organ[
"Trunk"
] =
new
G4MIRDTrunk
();
86
organ[
"LeftLeg"
] =
new
G4MIRDLeftLeg
();
87
organ[
"RightLeg"
] =
new
G4MIRDRightLeg
();
88
89
organ[
"Skull"
] =
new
G4MIRDSkull
();
90
organ[
"LeftArmBone"
] =
new
G4MIRDLeftArmBone
();
91
organ[
"RightArmBone"
] =
new
G4MIRDRightArmBone
();
92
organ[
"UpperSpine"
] =
new
G4MIRDUpperSpine
();
93
organ[
"MiddleLowerSpine"
] =
new
G4MIRDMiddleLowerSpine
();
94
organ[
"Pelvis"
]=
new
G4MIRDPelvis
();
95
organ[
"RibCage"
] =
new
G4MIRDRibCage
();
96
organ[
"LeftClavicle"
]=
new
G4MIRDLeftClavicle
();
97
organ[
"RightClavicle"
] =
new
G4MIRDRightClavicle
();
98
organ[
"LeftLegBone"
] =
new
G4MIRDLeftLegBone
();
99
organ[
"RightLegBone"
] =
new
G4MIRDRightLegBone
();
100
organ[
"LeftScapula"
]=
new
G4MIRDLeftScapula
();
101
organ[
"RightScapula"
]=
new
G4MIRDRightScapula
();
102
103
organ[
"Heart"
] =
new
G4MIRDHeart
();
104
organ[
"Thyroid"
] =
new
G4MIRDThyroid
();
105
organ[
"Thymus"
] =
new
G4MIRDThymus
();
106
organ[
"MaleGenitalia"
] =
new
G4MIRDMaleGenitalia
();
107
organ[
"Brain"
] =
new
G4MIRDBrain
();
108
organ[
"Stomach"
] =
new
G4MIRDStomach
();
109
organ[
"UpperLargeIntestine"
] =
new
G4MIRDUpperLargeIntestine
();
110
organ[
"LowerLargeIntestine"
] =
new
G4MIRDLowerLargeIntestine
();
111
organ[
"SmallIntestine"
] =
new
G4MIRDSmallIntestine
();
112
organ[
"Spleen"
] =
new
G4MIRDSpleen
();
113
organ[
"Pancreas"
] =
new
G4MIRDPancreas
();
114
organ[
"LeftKidney"
] =
new
G4MIRDLeftKidney
();
115
organ[
"RightKidney"
] =
new
G4MIRDRightKidney
();
116
organ[
"UrinaryBladder"
] =
new
G4MIRDUrinaryBladder
();
117
organ[
"Uterus"
] =
new
G4MIRDUterus
();
118
organ[
"Liver"
] =
new
G4MIRDLiver
();
119
organ[
"LeftLung"
]=
new
G4MIRDLeftLung
();
120
organ[
"RightLung"
] =
new
G4MIRDRightLung
();
121
organ[
"LeftOvary"
] =
new
G4MIRDLeftOvary
();
122
organ[
"RightOvary"
] =
new
G4MIRDRightOvary
();
123
organ[
"LeftTeste"
] =
new
G4MIRDLeftTeste
();
124
organ[
"RightTeste"
] =
new
G4MIRDRightTeste
();
125
organ[
"RightBreast"
] =
new
G4MIRDRightBreast
();
126
organ[
"LeftBreast"
] =
new
G4MIRDLeftBreast
();
127
organ[
"LeftAdrenal"
]=
new
G4MIRDLeftAdrenal
();
128
organ[
"RightAdrenal"
]=
new
G4MIRDRightAdrenal
();
129
}
130
131
G4MIRDBodyFactory::~G4MIRDBodyFactory
()
132
{
133
delete
organ[
"Head"
]; organ[
"Head"
]=0;
134
delete
organ[
"RightLeg"
]; organ[
"RightLeg"
]=0;
135
delete
organ[
"LeftLeg"
]; organ[
"LeftLeg"
]=0;
136
delete
organ[
"Trunk"
]; organ[
"Trunk"
]=0;
137
138
delete
organ[
"RightScapula"
];organ[
"RightScapula"
] =0;
139
delete
organ[
"LeftScapula"
];organ[
"LeftScapula"
] =0;
140
delete
organ[
"RightLegBone"
]; organ[
"RightLegBone"
]=0;
141
delete
organ[
"LeftLegBone"
]; organ[
"LeftLegBone"
]=0;
142
delete
organ[
"RibCage"
]; organ[
"RibCage"
] =0;
143
delete
organ[
"MiddleLowerSpine"
]; organ[
"MidlleLowerSpine"
]=0;
144
delete
organ[
"UpperSpine"
]; organ[
"UpperSpine"
]=0;
145
delete
organ[
"Skull"
]; organ[
"Skull"
] =0;
146
delete
organ[
"RightArmBone"
]; organ[
"RightArmBone"
] =0;
147
delete
organ[
"LeftArmBone"
]; organ[
"LeftArmBone"
] =0;
148
delete
organ[
"RightClavicle"
]; organ[
"RightClavicle"
]=0;
149
delete
organ[
"LeftClavicle"
]; organ[
"LeftClavicle"
]=0;
150
delete
organ[
"Pelvis"
]; organ[
"Pelvis"
] =0;
151
152
delete
organ[
"RightAdrenal"
]; organ[
"RightAdrenal"
]=0;
153
delete
organ[
"LeftAdrenal"
]; organ[
"LeftAdrenal"
]=0;
154
delete
organ[
"LeftBreast"
]; organ[
"LeftBreast"
]=0;
155
delete
organ[
"RightBreast"
]; organ[
"RightBreast"
]=0;
156
delete
organ[
"RightOvary"
]; organ[
"RightOvary"
]=0;
157
delete
organ[
"LeftOvary"
]; organ[
"LeftOvary"
]=0;
158
delete
organ[
"RightTeste"
]; organ[
"RightTeste"
]=0;
159
delete
organ[
"LeftTeste"
]; organ[
"LeftTeste"
]=0;
160
delete
organ[
"RightLung"
]; organ[
"RightLung"
] =0;
161
delete
organ[
"LeftLung"
]; organ[
"LeftLung"
]=0;
162
delete
organ[
"Uterus"
]; organ[
"Uterus"
]=0;
163
delete
organ[
"UrinaryBladder"
]; organ[
"UrinaryBladder"
]=0;
164
delete
organ[
"RightKidney"
]; organ[
"RightKidney"
] =0;
165
delete
organ[
"LeftKidney"
]; organ[
"LeftKidney"
] =0;
166
delete
organ[
"Pancreas"
]; organ[
"Pancreas"
] =0;
167
delete
organ[
"Spleen"
]; organ[
"Spleen"
] =0;
168
delete
organ[
"LowerLargeIntestine"
]; organ[
"LowerLargeIntestine"
] =0;
169
delete
organ[
"SmallIntestine"
]; organ[
"SmallIntestine"
] =0;
170
delete
organ[
"UpperLargeIntestine"
]; organ[
"UpperLargeIntestine"
] =0;
171
delete
organ[
"Stomach"
]; organ[
"Stomach"
] =0;
172
delete
organ[
"Brain"
]; organ[
"Brain"
]=0;
173
delete
organ[
"Heart"
]; organ[
"Heart"
]=0;
174
delete
organ[
"Thymus"
]; organ[
"Thymus"
]=0;
175
delete
organ[
"MaleGenitalia"
]; organ[
"MaleGenitalia"
]=0;
176
delete
organ[
"Thyroid"
]; organ[
"Thyroid"
]=0;
177
delete
organ[
"Liver"
]; organ[
"Liver"
]=0;
178
}
179
180
181
182
G4VPhysicalVolume
*
G4MIRDBodyFactory::CreateOrgan
(
const
G4String
& organ_name,
G4VPhysicalVolume
* motherVolume,
183
const
G4String
& colourName,
G4bool
visAttribute,
184
G4bool
sensitivity)
185
{
186
return
organ[organ_name]->Construct(organ_name,motherVolume,colourName, visAttribute, sensitivity);
187
}
188
189
G4MIRDRightAdrenal.hh
G4MIRDRightLung.hh
G4MIRDStomach
Definition:
G4MIRDStomach.hh:43
G4MIRDRightKidney
Definition:
G4MIRDRightKidney.hh:42
G4MIRDUrinaryBladder.hh
G4MIRDLeftScapula.hh
G4MIRDUpperLargeIntestine
Definition:
G4MIRDUpperLargeIntestine.hh:42
G4MIRDLowerLargeIntestine
Definition:
G4MIRDLowerLargeIntestine.hh:42
G4MIRDLeftBreast
Definition:
G4MIRDLeftBreast.hh:43
G4MIRDLeftClavicle.hh
G4MIRDRightArmBone
Definition:
G4MIRDRightArmBone.hh:43
G4MIRDTrunk
Definition:
G4MIRDTrunk.hh:43
G4MIRDLeftOvary.hh
G4MIRDLeftLegBone
Definition:
G4MIRDLeftLegBone.hh:42
G4MIRDRightLegBone
Definition:
G4MIRDRightLegBone.hh:42
G4MIRDBrain
Definition:
G4MIRDBrain.hh:43
G4MIRDHeart
Definition:
G4MIRDHeart.hh:43
G4MIRDLeftLegBone.hh
G4MIRDSmallIntestine
Definition:
G4MIRDSmallIntestine.hh:42
G4MIRDLeftAdrenal.hh
G4MIRDThymus.hh
G4MIRDLeftLeg.hh
G4VPhysicalVolume
Definition:
G4VPhysicalVolume.hh:82
G4MIRDPelvis.hh
G4MIRDRightScapula.hh
G4MIRDTrunk.hh
G4MIRDRightArmBone.hh
G4MIRDUpperSpine.hh
G4MIRDLeftClavicle
Definition:
G4MIRDLeftClavicle.hh:42
G4MIRDBodyFactory::CreateOrgan
G4VPhysicalVolume * CreateOrgan(const G4String &, G4VPhysicalVolume *, const G4String &, G4bool, G4bool)
Definition:
G4MIRDBodyFactory.cc:182
G4MIRDMaleGenitalia
Definition:
G4MIRDMaleGenitalia.hh:42
G4MIRDSkull.hh
G4MIRDPancreas.hh
G4MIRDSpleen
Definition:
G4MIRDSpleen.hh:43
G4MIRDLeftKidney
Definition:
G4MIRDLeftKidney.hh:42
G4MIRDUpperLargeIntestine.hh
G4MIRDHead
Definition:
G4MIRDHead.hh:44
G4MIRDRightOvary
Definition:
G4MIRDRightOvary.hh:43
G4MIRDRightKidney.hh
G4MIRDLiver.hh
G4MIRDUrinaryBladder
Definition:
G4MIRDUrinaryBladder.hh:44
G4MIRDLeftTeste
Definition:
G4MIRDLeftTeste.hh:42
G4MIRDThyroid.hh
G4MIRDRightTeste
Definition:
G4MIRDRightTeste.hh:43
G4MIRDRightBreast
Definition:
G4MIRDRightBreast.hh:43
G4MIRDLeftLung
Definition:
G4MIRDLeftLung.hh:43
G4MIRDLeftTeste.hh
G4MIRDLeftKidney.hh
G4MIRDRightTeste.hh
G4MIRDSmallIntestine.hh
G4MIRDMiddleLowerSpine.hh
G4bool
bool G4bool
Definition:
G4Types.hh:79
G4MIRDRightLeg.hh
G4MIRDMiddleLowerSpine
Definition:
G4MIRDMiddleLowerSpine.hh:43
G4MIRDRightClavicle
Definition:
G4MIRDRightClavicle.hh:42
G4MIRDLeftArmBone.hh
G4MIRDHead.hh
G4MIRDThyroid
Definition:
G4MIRDThyroid.hh:42
G4MIRDRightLung
Definition:
G4MIRDRightLung.hh:43
G4MIRDPancreas
Definition:
G4MIRDPancreas.hh:43
G4MIRDUterus.hh
G4MIRDLowerLargeIntestine.hh
G4MIRDRibCage
Definition:
G4MIRDRibCage.hh:43
G4MIRDPelvis
Definition:
G4MIRDPelvis.hh:42
G4MIRDLeftAdrenal
Definition:
G4MIRDLeftAdrenal.hh:42
G4MIRDBrain.hh
G4MIRDRightClavicle.hh
G4MIRDSpleen.hh
G4MIRDLeftLung.hh
G4MIRDLiver
Definition:
G4MIRDLiver.hh:41
G4MIRDRightOvary.hh
G4MIRDRightLegBone.hh
G4MIRDBodyFactory::~G4MIRDBodyFactory
~G4MIRDBodyFactory()
Definition:
G4MIRDBodyFactory.cc:131
G4MIRDBodyFactory::G4MIRDBodyFactory
G4MIRDBodyFactory()
Definition:
G4MIRDBodyFactory.cc:79
G4MIRDSkull
Definition:
G4MIRDSkull.hh:43
G4MIRDUpperSpine
Definition:
G4MIRDUpperSpine.hh:43
G4MIRDStomach.hh
G4MIRDUterus
Definition:
G4MIRDUterus.hh:43
G4MIRDLeftBreast.hh
G4MIRDRibCage.hh
G4MIRDBodyFactory.hh
G4MIRDMaleGenitalia.hh
G4MIRDLeftOvary
Definition:
G4MIRDLeftOvary.hh:42
G4MIRDThymus
Definition:
G4MIRDThymus.hh:43
G4MIRDLeftScapula
Definition:
G4MIRDLeftScapula.hh:42
G4MIRDHeart.hh
G4MIRDRightAdrenal
Definition:
G4MIRDRightAdrenal.hh:42
G4MIRDLeftArmBone
Definition:
G4MIRDLeftArmBone.hh:44
G4MIRDRightBreast.hh
G4MIRDLeftLeg
Definition:
G4MIRDLeftLeg.hh:42
G4MIRDRightLeg
Definition:
G4MIRDRightLeg.hh:42
G4MIRDRightScapula
Definition:
G4MIRDRightScapula.hh:42
G4String
Definition:
G4String.hh:45
source
geant4.10.03.p03
examples
advanced
human_phantom
src
G4MIRDBodyFactory.cc
Generated on Tue Nov 28 2017 21:43:46 for Geant4 by
1.8.5