Geant4_10
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"
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"
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 
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 
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 
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 
G4VPhysicalVolume * CreateOrgan(const G4String &, G4VPhysicalVolume *, const G4String &, G4bool, G4bool)
bool G4bool
Definition: G4Types.hh:79