Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4MIRDBodyFactory Class Reference

#include <G4MIRDBodyFactory.hh>

Inheritance diagram for G4MIRDBodyFactory:
Collaboration diagram for G4MIRDBodyFactory:

Public Member Functions

 G4MIRDBodyFactory ()
 
 ~G4MIRDBodyFactory ()
 
G4VPhysicalVolumeCreateOrgan (const G4String &, G4VPhysicalVolume *, const G4String &, G4bool, G4bool)
 
- Public Member Functions inherited from G4VBodyFactory
 G4VBodyFactory ()
 
virtual ~G4VBodyFactory ()
 

Detailed Description

Definition at line 45 of file G4MIRDBodyFactory.hh.

Constructor & Destructor Documentation

G4MIRDBodyFactory::G4MIRDBodyFactory ( )

Definition at line 79 of file G4MIRDBodyFactory.cc.

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 }
G4MIRDBodyFactory::~G4MIRDBodyFactory ( )

Definition at line 131 of file G4MIRDBodyFactory.cc.

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 }

Member Function Documentation

G4VPhysicalVolume * G4MIRDBodyFactory::CreateOrgan ( const G4String organ_name,
G4VPhysicalVolume motherVolume,
const G4String colourName,
G4bool  visAttribute,
G4bool  sensitivity 
)
virtual

Implements G4VBodyFactory.

Definition at line 182 of file G4MIRDBodyFactory.cc.

185 {
186  return organ[organ_name]->Construct(organ_name,motherVolume,colourName, visAttribute, sensitivity);
187 }

The documentation for this class was generated from the following files: