Import Geant4 9.0.0 source tree
This commit is contained in:
@@ -35,245 +35,125 @@
|
||||
#include "G4MIRDStomach.hh"
|
||||
#include "G4MIRDUpperLargeIntestine.hh"
|
||||
#include "G4MIRDLowerLargeIntestine.hh"
|
||||
#include "G4MIRDKidney.hh"
|
||||
#include "G4MIRDAdrenal.hh"
|
||||
#include "G4MIRDLeftKidney.hh"
|
||||
#include "G4MIRDRightKidney.hh"
|
||||
#include "G4MIRDLiver.hh"
|
||||
#include "G4MIRDPancreas.hh"
|
||||
#include "G4MIRDSpleen.hh"
|
||||
#include "G4MIRDUrinaryBladder.hh"
|
||||
#include "G4MIRDLung.hh"
|
||||
#include "G4MIRDLeftLung.hh"
|
||||
#include "G4MIRDRightLung.hh"
|
||||
#include "G4MIRDHeart.hh"
|
||||
#include "G4MIRDBrain.hh"
|
||||
#include "G4MIRDHead.hh"
|
||||
#include "G4MIRDTrunk.hh"
|
||||
#include "G4MIRDLegs.hh"
|
||||
#include "G4MIRDLeftLeg.hh"
|
||||
#include "G4MIRDRightLeg.hh"
|
||||
#include "G4MIRDThyroid.hh"
|
||||
#include "G4MIRDUterus.hh"
|
||||
#include "G4MIRDBreast.hh"
|
||||
#include "G4MIRDOvary.hh"
|
||||
#include "G4MIRDLeftBreast.hh"
|
||||
#include "G4MIRDRightBreast.hh"
|
||||
#include "G4MIRDRightOvary.hh"
|
||||
#include "G4MIRDLeftOvary.hh"
|
||||
#include "G4MIRDUpperSpine.hh"
|
||||
#include "G4MIRDMiddleLowerSpine.hh"
|
||||
#include "G4MIRDLegBone.hh"
|
||||
#include "G4MIRDArmBone.hh"
|
||||
#include "G4MIRDLeftLegBone.hh"
|
||||
#include "G4MIRDRightLegBone.hh"
|
||||
#include "G4MIRDLeftArmBone.hh"
|
||||
#include "G4MIRDRightArmBone.hh"
|
||||
#include "G4MIRDSkull.hh"
|
||||
#include "G4MIRDRibCage.hh"
|
||||
#include "G4MIRDPelvis.hh"
|
||||
#include "G4MIRDTestes.hh"
|
||||
#include "G4ParameterisedBreast.hh"
|
||||
#include "G4MIRDLeftScapula.hh"
|
||||
#include "G4MIRDRightScapula.hh"
|
||||
#include "G4MIRDLeftAdrenal.hh"
|
||||
#include "G4MIRDRightAdrenal.hh"
|
||||
|
||||
G4MIRDBodyFactory::G4MIRDBodyFactory()
|
||||
{
|
||||
// Map with name of the organ and pointer to the MIRDOrgan class
|
||||
// organ["ParameterisedRightBreast"] = new G4ParameterisedRightBreast();
|
||||
//organ["ParameterisedLeftBreast"] = new G4ParameterisedLeftBreast();
|
||||
organ["Head"] = new G4MIRDHead();
|
||||
organ["Trunk"] = new G4MIRDTrunk();
|
||||
organ["LeftLeg"] = new G4MIRDLeftLeg();
|
||||
organ["RightLeg"] = new G4MIRDRightLeg();
|
||||
organ["Brain"] = new G4MIRDBrain();
|
||||
organ["LeftArmBone"] = new G4MIRDLeftArmBone();
|
||||
organ["RightArmBone"] = new G4MIRDRightArmBone();
|
||||
organ["Skull"] = new G4MIRDSkull();
|
||||
organ["UpperSpine"] = new G4MIRDUpperSpine();
|
||||
organ["MiddleLowerSpine"] = new G4MIRDMiddleLowerSpine();
|
||||
organ["Pelvis"]= new G4MIRDPelvis();
|
||||
organ["Stomach"] = new G4MIRDStomach();
|
||||
organ["UpperLargeIntestine"] = new G4MIRDUpperLargeIntestine();
|
||||
organ["LowerLargeIntestine"] = new G4MIRDLowerLargeIntestine();
|
||||
organ["RibCage"] = new G4MIRDRibCage();
|
||||
organ["Spleen"] = new G4MIRDSpleen();
|
||||
organ["Pancreas"] = new G4MIRDPancreas();
|
||||
organ["LeftKidney"] = new G4MIRDLeftKidney();
|
||||
organ["RightKidney"] = new G4MIRDRightKidney();
|
||||
organ["UrinaryBladder"] = new G4MIRDUrinaryBladder();
|
||||
organ["Uterus"] = new G4MIRDUterus();
|
||||
organ["LeftLung"]= new G4MIRDLeftLung();
|
||||
organ["RightLung"] = new G4MIRDRightLung();
|
||||
organ["LeftOvary"] = new G4MIRDLeftOvary();
|
||||
organ["RightOvary"] = new G4MIRDRightOvary();
|
||||
organ["LeftLegBone"] = new G4MIRDLeftLegBone();
|
||||
organ["RightLegBone"] = new G4MIRDRightLegBone();
|
||||
organ["RightBreast"] = new G4MIRDRightBreast();
|
||||
organ["LeftBreast"] = new G4MIRDLeftBreast();
|
||||
organ["LeftScapula"]= new G4MIRDLeftScapula();
|
||||
organ["RightScapula"]= new G4MIRDRightScapula();
|
||||
organ["LeftAdrenal"]= new G4MIRDLeftAdrenal();
|
||||
organ["RightAdrenal"]= new G4MIRDRightAdrenal();
|
||||
}
|
||||
|
||||
G4MIRDBodyFactory::~G4MIRDBodyFactory()
|
||||
{
|
||||
delete organ["RightAdrenal"]; organ["RightAdrenal"]=0;
|
||||
delete organ["LeftAdrenal"]; organ["LeftAdrenal"]=0;
|
||||
delete organ["RightScapula"];organ["RightScapula"] =0;
|
||||
delete organ["LeftScapula"];organ["LeftScapula"] =0;
|
||||
delete organ["LeftBreast"]; organ["LeftBreast"]=0;
|
||||
delete organ["RightBreast"]; organ["RightBreast"]=0;
|
||||
delete organ["RightLegBone"]; organ["RightLegBone"]=0;
|
||||
delete organ["LeftLegBone"]; organ["LeftLegBone"]=0;
|
||||
delete organ["RightOvary"]; organ["RightOvary"]=0;
|
||||
delete organ["LeftOvary"]; organ["LeftOvary"]=0;
|
||||
delete organ["RightLung"]; organ["RightLung"] =0;
|
||||
delete organ["LeftLung"]; organ["LeftLung"]=0;
|
||||
delete organ["Uterus"]; organ["Uterus"]=0;
|
||||
delete organ["UrinaryBladder"]; organ["UrinaryBladder"]=0;
|
||||
delete organ["RightKidney"]; organ["RightKidney"] =0;
|
||||
delete organ["LeftKidney"]; organ["LeftKidney"] =0;
|
||||
delete organ["Pancreas"]; organ["Pancreas"] =0;
|
||||
delete organ["Spleen"]; organ["Spleen"] =0;
|
||||
delete organ["RibCage"]; organ["RibCage"] =0;
|
||||
delete organ["LowerLargeIntestine"]; organ["LowerLargeIntestine"] =0;
|
||||
delete organ["UpperLargeIntestine"]; organ["UpperLargeIntestine"] =0;
|
||||
delete organ["Stomach"]; organ["Stomach"] =0;
|
||||
delete organ["Pelvis"]; organ["Pelvis"] =0;
|
||||
delete organ["MiddleLowerSpine"]; organ["MidlleLowerSpine"]=0;
|
||||
delete organ["UpperSpine"]; organ["UpperSpine"]=0;
|
||||
delete organ["Skull"]; organ["Skull"] =0;
|
||||
delete organ["RightArmBone"]; organ["RightArmBone"] =0;
|
||||
delete organ["LeftArmBone"]; organ["LeftArmBone"] =0;
|
||||
delete organ["Brain"]; organ["Brain"]=0;
|
||||
delete organ["Head"]; organ["Head"]=0;
|
||||
delete organ["Trunk"]; organ["Trunk"]=0;
|
||||
delete organ["RightLeg"]; organ["RightLeg"]=0;
|
||||
delete organ["LeftLeg"]; organ["LeftLeg"]=0;
|
||||
}
|
||||
|
||||
G4VPhysicalVolume* G4MIRDBodyFactory::CreateStomach(G4VPhysicalVolume* motherVolume, G4String sex, G4bool sensitivity)
|
||||
|
||||
|
||||
G4VPhysicalVolume* G4MIRDBodyFactory::CreateOrgan(const G4String& organ_name,G4VPhysicalVolume* motherVolume,
|
||||
const G4String& colourName, G4bool visAttribute,
|
||||
G4bool sensitivity)
|
||||
{
|
||||
G4MIRDStomach* stomach = new G4MIRDStomach();
|
||||
return stomach -> ConstructStomach(motherVolume,sex,sensitivity);
|
||||
delete stomach;
|
||||
return organ[organ_name] -> Construct(organ_name,motherVolume,colourName, visAttribute, sensitivity);
|
||||
}
|
||||
|
||||
G4VPhysicalVolume* G4MIRDBodyFactory::CreateUpperLargeIntestine(G4VPhysicalVolume* motherVolume, G4String sex, G4bool sensitivity)
|
||||
{
|
||||
G4MIRDUpperLargeIntestine* upperLargeIntestine = new G4MIRDUpperLargeIntestine();
|
||||
return upperLargeIntestine -> ConstructUpperLargeIntestine(motherVolume,sex,sensitivity);
|
||||
delete upperLargeIntestine;
|
||||
}
|
||||
G4VPhysicalVolume* G4MIRDBodyFactory::CreateLowerLargeIntestine(G4VPhysicalVolume* motherVolume, G4String sex, G4bool sensitivity)
|
||||
{
|
||||
G4MIRDLowerLargeIntestine* lowerLargeIntestine = new G4MIRDLowerLargeIntestine();
|
||||
return lowerLargeIntestine -> ConstructLowerLargeIntestine(motherVolume,sex,sensitivity);
|
||||
delete lowerLargeIntestine;
|
||||
}
|
||||
|
||||
G4VPhysicalVolume* G4MIRDBodyFactory::CreateKidney(G4VPhysicalVolume* motherVolume, G4String sex, G4bool sensitivity)
|
||||
{
|
||||
G4MIRDKidney* kidney = new G4MIRDKidney();
|
||||
return kidney -> ConstructKidney(motherVolume,sex,sensitivity);
|
||||
delete kidney;
|
||||
}
|
||||
G4VPhysicalVolume* G4MIRDBodyFactory::CreateAdrenal(G4VPhysicalVolume* motherVolume, G4String sex, G4bool sensitivity)
|
||||
{
|
||||
G4MIRDAdrenal* adrenal = new G4MIRDAdrenal();
|
||||
return adrenal -> ConstructAdrenal(motherVolume,sex,sensitivity);
|
||||
delete adrenal;
|
||||
}
|
||||
G4VPhysicalVolume* G4MIRDBodyFactory::CreateLiver(G4VPhysicalVolume* motherVolume, G4String sex, G4bool sensitivity)
|
||||
{
|
||||
G4MIRDLiver* liver = new G4MIRDLiver();
|
||||
return liver -> ConstructLiver(motherVolume,sex,sensitivity);
|
||||
delete liver;
|
||||
}
|
||||
G4VPhysicalVolume* G4MIRDBodyFactory::CreatePancreas(G4VPhysicalVolume* motherVolume, G4String sex, G4bool sensitivity)
|
||||
{
|
||||
G4MIRDPancreas* pancreas = new G4MIRDPancreas();
|
||||
return pancreas -> ConstructPancreas(motherVolume,sex,sensitivity);
|
||||
delete pancreas;
|
||||
}
|
||||
G4VPhysicalVolume* G4MIRDBodyFactory::CreateSpleen(G4VPhysicalVolume* motherVolume, G4String sex, G4bool sensitivity)
|
||||
{
|
||||
G4MIRDSpleen* spleen = new G4MIRDSpleen();
|
||||
return spleen -> ConstructSpleen(motherVolume,sex,sensitivity);
|
||||
delete spleen;
|
||||
}
|
||||
G4VPhysicalVolume* G4MIRDBodyFactory::CreateUrinaryBladder(G4VPhysicalVolume* motherVolume, G4String sex, G4bool sensitivity)
|
||||
{
|
||||
G4MIRDUrinaryBladder* urinaryBladder = new G4MIRDUrinaryBladder();
|
||||
return urinaryBladder -> ConstructUrinaryBladder(motherVolume,sex,sensitivity);
|
||||
}
|
||||
G4VPhysicalVolume* G4MIRDBodyFactory::CreateLung(G4VPhysicalVolume* motherVolume, G4String sex, G4bool sensitivity)
|
||||
{
|
||||
G4MIRDLung* lung = new G4MIRDLung();
|
||||
return lung -> ConstructLung(motherVolume,sex,sensitivity);
|
||||
delete lung;
|
||||
}
|
||||
G4VPhysicalVolume* G4MIRDBodyFactory::CreateHeart(G4VPhysicalVolume* motherVolume, G4String sex, G4bool sensitivity)
|
||||
{
|
||||
G4MIRDHeart* heart = new G4MIRDHeart();
|
||||
return heart -> ConstructHeart(motherVolume,sex,sensitivity);
|
||||
delete heart;
|
||||
}
|
||||
G4VPhysicalVolume* G4MIRDBodyFactory::CreateBrain(G4VPhysicalVolume* motherVolume, G4String sex, G4bool sensitivity)
|
||||
{
|
||||
G4MIRDBrain* brain = new G4MIRDBrain();
|
||||
return brain -> ConstructBrain(motherVolume,sex,sensitivity);
|
||||
delete brain;
|
||||
}
|
||||
|
||||
G4VPhysicalVolume* G4MIRDBodyFactory::CreateHead(G4VPhysicalVolume* motherVolume, G4String sex, G4bool sensitivity)
|
||||
{
|
||||
G4MIRDHead* head = new G4MIRDHead();
|
||||
return head -> ConstructHead(motherVolume, sex, sensitivity);
|
||||
delete head;
|
||||
}
|
||||
G4VPhysicalVolume* G4MIRDBodyFactory::CreateTrunk(G4VPhysicalVolume* motherVolume, G4String sex, G4bool sensitivity)
|
||||
{
|
||||
G4MIRDTrunk* trunk = new G4MIRDTrunk();
|
||||
return trunk -> ConstructTrunk(motherVolume,sex,sensitivity);
|
||||
delete trunk;
|
||||
}
|
||||
G4VPhysicalVolume* G4MIRDBodyFactory::CreateLegs(G4VPhysicalVolume* motherVolume, G4String sex, G4bool sensitivity)
|
||||
{
|
||||
G4MIRDLegs* legs = new G4MIRDLegs();
|
||||
return legs -> ConstructLegs(motherVolume,sex,sensitivity);
|
||||
delete legs;
|
||||
}
|
||||
G4VPhysicalVolume* G4MIRDBodyFactory::CreateThyroid(G4VPhysicalVolume* motherVolume, G4String sex, G4bool sensitivity)
|
||||
{
|
||||
G4MIRDThyroid* thyroid = new G4MIRDThyroid();
|
||||
return thyroid -> ConstructThyroid(motherVolume,sex,sensitivity);
|
||||
delete thyroid;
|
||||
}
|
||||
G4VPhysicalVolume* G4MIRDBodyFactory::CreateUterus(G4VPhysicalVolume* motherVolume, G4String sex, G4bool sensitivity)
|
||||
{
|
||||
G4MIRDUterus* uterus = new G4MIRDUterus();
|
||||
return uterus -> ConstructUterus(motherVolume,sex,sensitivity);
|
||||
delete uterus;
|
||||
}
|
||||
G4VPhysicalVolume* G4MIRDBodyFactory::CreateBreast(G4VPhysicalVolume* motherVolume, G4String sex, G4bool sensitivity)
|
||||
{
|
||||
G4MIRDBreast* breast = new G4MIRDBreast();
|
||||
return breast -> ConstructBreast(motherVolume,sex,sensitivity);
|
||||
delete breast;
|
||||
}
|
||||
|
||||
G4VPhysicalVolume* G4MIRDBodyFactory::CreateParameterisedBreast(G4VPhysicalVolume* motherVolume, G4String sex, G4bool sensitivity)
|
||||
{
|
||||
G4cout << "G4MIRDBodyFactory::CreateParameterisedBreast" << G4endl;
|
||||
G4ParameterisedBreast* breast = new G4ParameterisedBreast();
|
||||
return breast -> ConstructBreast(motherVolume,sex,sensitivity);
|
||||
delete breast;
|
||||
}
|
||||
|
||||
G4VPhysicalVolume* G4MIRDBodyFactory::CreateOvary(G4VPhysicalVolume* motherVolume, G4String sex, G4bool sensitivity)
|
||||
{
|
||||
G4MIRDOvary* ovary = new G4MIRDOvary();
|
||||
return ovary -> ConstructOvary(motherVolume,sex,sensitivity);
|
||||
delete ovary;
|
||||
}
|
||||
G4VPhysicalVolume* G4MIRDBodyFactory::CreateUpperSpine(G4VPhysicalVolume* motherVolume, G4String sex, G4bool sensitivity)
|
||||
{
|
||||
G4MIRDUpperSpine* upperSpine = new G4MIRDUpperSpine();
|
||||
return upperSpine -> ConstructUpperSpine(motherVolume,sex,sensitivity);
|
||||
delete upperSpine;
|
||||
}
|
||||
G4VPhysicalVolume* G4MIRDBodyFactory::CreateMiddleLowerSpine(G4VPhysicalVolume* motherVolume, G4String sex, G4bool sensitivity)
|
||||
{
|
||||
G4MIRDMiddleLowerSpine* middleLowerSpine = new G4MIRDMiddleLowerSpine();
|
||||
return middleLowerSpine -> ConstructMiddleLowerSpine(motherVolume,sex,sensitivity);
|
||||
delete middleLowerSpine;
|
||||
}
|
||||
G4VPhysicalVolume* G4MIRDBodyFactory::CreateLegBone(G4VPhysicalVolume* motherVolume, G4String sex, G4bool sensitivity)
|
||||
{
|
||||
G4MIRDLegBone* legBone = new G4MIRDLegBone();
|
||||
return legBone -> ConstructLegBone(motherVolume,sex,sensitivity);
|
||||
delete legBone;
|
||||
}
|
||||
G4VPhysicalVolume* G4MIRDBodyFactory::CreateArmBone(G4VPhysicalVolume* motherVolume, G4String sex, G4bool sensitivity)
|
||||
{
|
||||
G4MIRDArmBone* armBone = new G4MIRDArmBone();
|
||||
return armBone -> ConstructArmBone(motherVolume,sex,sensitivity);
|
||||
delete armBone;
|
||||
}
|
||||
G4VPhysicalVolume* G4MIRDBodyFactory::CreateSkull(G4VPhysicalVolume* motherVolume, G4String sex, G4bool sensitivity)
|
||||
{
|
||||
G4MIRDSkull* skull = new G4MIRDSkull();
|
||||
return skull -> ConstructSkull(motherVolume,sex,sensitivity);
|
||||
delete skull;
|
||||
}
|
||||
G4VPhysicalVolume* G4MIRDBodyFactory::CreateRibCage(G4VPhysicalVolume* motherVolume, G4String sex, G4bool sensitivity)
|
||||
{
|
||||
G4MIRDRibCage* ribCage = new G4MIRDRibCage();
|
||||
return ribCage -> ConstructRibCage(motherVolume,sex,sensitivity);
|
||||
delete ribCage;
|
||||
}
|
||||
G4VPhysicalVolume* G4MIRDBodyFactory::CreatePelvis(G4VPhysicalVolume* motherVolume, G4String sex, G4bool sensitivity)
|
||||
{
|
||||
G4MIRDPelvis* pelvis = new G4MIRDPelvis();
|
||||
return pelvis -> ConstructPelvis(motherVolume,sex,sensitivity);
|
||||
delete pelvis;
|
||||
}
|
||||
G4VPhysicalVolume* G4MIRDBodyFactory::CreateTestes(G4VPhysicalVolume* motherVolume, G4String sex, G4bool sensitivity)
|
||||
{
|
||||
G4MIRDTestes* testes = new G4MIRDTestes();
|
||||
return testes -> ConstructTestes(motherVolume,sex,sensitivity);
|
||||
delete testes;
|
||||
}
|
||||
G4VPhysicalVolume* G4MIRDBodyFactory::CreateEsophagus(G4VPhysicalVolume* motherVolume, G4String sex, G4bool sensitivity)
|
||||
{
|
||||
G4cout << motherVolume << ">>>> Cannot create Esophagus of " << sex
|
||||
<< "phantom and with sensitivity = " << sensitivity
|
||||
<< ": not yet implemented!" << G4endl;
|
||||
return 0;
|
||||
}
|
||||
G4VPhysicalVolume* G4MIRDBodyFactory::CreateClavicles(G4VPhysicalVolume* motherVolume, G4String sex, G4bool sensitivity)
|
||||
{
|
||||
G4cout << motherVolume << ">>>> Cannot create Clavicles of " << sex
|
||||
<< "phantom and with sensitivity = " << sensitivity
|
||||
<< ": not yet implemented!" << G4endl;
|
||||
return 0;
|
||||
}
|
||||
G4VPhysicalVolume* G4MIRDBodyFactory::CreateScapulae(G4VPhysicalVolume* motherVolume, G4String sex, G4bool sensitivity)
|
||||
{
|
||||
G4cout << motherVolume << ">>>> Cannot create Scapulae of " << sex
|
||||
<< "phantom and with sensitivity = " << sensitivity
|
||||
<< ": not yet implemented!" << G4endl;
|
||||
return 0;
|
||||
}
|
||||
G4VPhysicalVolume* G4MIRDBodyFactory::CreateNeck(G4VPhysicalVolume* motherVolume, G4String sex, G4bool sensitivity)
|
||||
{
|
||||
G4cout << motherVolume << ">>>> Cannot create Neck of " << sex
|
||||
<< "phantom and with sensitivity = " << sensitivity
|
||||
<< ": not yet implemented!" << G4endl;
|
||||
return 0;
|
||||
}
|
||||
G4VPhysicalVolume* G4MIRDBodyFactory::CreateMaleGenitalia(G4VPhysicalVolume* motherVolume, G4String sex, G4bool sensitivity)
|
||||
{
|
||||
G4cout << motherVolume << ">>>> Cannot create Male Genitalia of " << sex
|
||||
<< "phantom and with sensitivity = " << sensitivity
|
||||
<< ": not yet implemented!" << G4endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user