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

#include <BrachyDetectorConstructionLeipzig.hh>

Public Member Functions

 BrachyDetectorConstructionLeipzig ()
 
 ~BrachyDetectorConstructionLeipzig ()
 
void ConstructLeipzig (G4VPhysicalVolume *)
 
void CleanLeipzigApplicator ()
 

Detailed Description

Definition at line 53 of file BrachyDetectorConstructionLeipzig.hh.

Constructor & Destructor Documentation

BrachyDetectorConstructionLeipzig::BrachyDetectorConstructionLeipzig ( )

Definition at line 65 of file BrachyDetectorConstructionLeipzig.cc.

65  :
66 capsule(0),capsuleTip(0), iridiumCore(0), applicator1(0), applicator2(0),
67 capsuleLog(0), capsuleTipLog(0), iridiumCoreLog(0), applicator1Log(0),
68 applicator2Log(0),capsulePhys(0), capsuleTipPhys(0),iridiumCorePhys(0),
69 applicator1Phys(0), applicator2Phys(0)
70 {
71  pMaterial = new BrachyMaterial();
72 }
BrachyDetectorConstructionLeipzig::~BrachyDetectorConstructionLeipzig ( )

Definition at line 74 of file BrachyDetectorConstructionLeipzig.cc.

75 {
76  delete pMaterial;
77 }

Member Function Documentation

void BrachyDetectorConstructionLeipzig::CleanLeipzigApplicator ( )

Definition at line 135 of file BrachyDetectorConstructionLeipzig.cc.

136 {
137 delete applicatorVisAtt; applicatorVisAtt = 0;
138 delete simpleCapsuleTipVisAtt; simpleCapsuleTipVisAtt = 0;
139 delete simpleCapsuleVisAtt; simpleCapsuleVisAtt = 0;
140 delete applicator2Phys; applicator2Phys = 0;
141 delete applicator1Phys; applicator1Phys = 0;
142 delete iridiumCorePhys; iridiumCorePhys = 0;
143 delete capsuleTipPhys; capsuleTipPhys = 0;
144 delete capsulePhys; capsulePhys = 0;
145 delete applicator2Log; applicator2Log = 0;
146 delete applicator1Log; applicator1Log = 0;
147 delete iridiumCoreLog; iridiumCoreLog = 0;
148 delete capsuleTipLog; capsuleTipLog = 0;
149 delete capsuleLog; capsuleLog = 0;
150 }
void BrachyDetectorConstructionLeipzig::ConstructLeipzig ( G4VPhysicalVolume mother)

Definition at line 79 of file BrachyDetectorConstructionLeipzig.cc.

80 {
81  G4Colour red (1.0, 0.0, 0.0) ;
82  G4Colour lblue (0.0, 0.0, .75);
83 
84  G4Material* capsuleMat = pMaterial -> GetMat("Stainless steel");
85  G4Material* iridium = pMaterial -> GetMat("Iridium");
86  G4Material* tungsten = pMaterial -> GetMat("Tungsten");
87 
88  //Iridium source ...
89 
90  capsule = new G4Tubs("Capsule",0,0.55*mm,3.725*mm,0.*deg,360.*deg);
91  capsuleLog = new G4LogicalVolume(capsule,capsuleMat,"CapsuleLog");
92  capsulePhys = new G4PVPlacement(0, G4ThreeVector(0,0,-1.975*mm),"CapsulePhys",
93  capsuleLog,mother, //mother volume: phantom
94  false,0, true);
95 
96  // Capsule tip
97  capsuleTip = new G4Sphere("CapsuleTip",0.*mm,0.55*mm,0.*deg,360.*deg,0.*deg,90.*deg);
98  capsuleTipLog = new G4LogicalVolume(capsuleTip,capsuleMat,"CapsuleTipLog");
99  capsuleTipPhys = new G4PVPlacement(0,G4ThreeVector(0.,0.,1.75*mm),"CapsuleTipPhys",
100  capsuleTipLog,mother,false,0, true);
101  // Iridium core
102  iridiumCore = new G4Tubs("IrCore",0,0.30*mm,1.75*mm,0.*deg,360.*deg);
103  iridiumCoreLog = new G4LogicalVolume(iridiumCore, iridium, "IridiumCoreLog");
104  iridiumCorePhys = new G4PVPlacement(0,G4ThreeVector(0.,0.,1.975*mm),"IridiumCorePhys",
105  iridiumCoreLog,capsulePhys,false,0, true);
106 
107  //Leipzig Applicator is modelled with two different volumes
108  applicator1 = new G4Tubs("Appl1",5*mm,10.5*mm,12*mm,0.*deg,360.*deg);
109  applicator1Log = new G4LogicalVolume(applicator1,tungsten,"Appl1Log");
110  applicator1Phys = new G4PVPlacement(0,G4ThreeVector(0,0,4.0*mm),"Appl1Phys",applicator1Log,
111  mother,false,0, true);
112 
113  applicator2 = new G4Tubs("Appl2",0.55*mm,5.*mm,3.125*mm,0.*deg,360.*deg);
114  applicator2Log = new G4LogicalVolume(applicator2,tungsten,"Appl2");
115  applicator2Phys = new G4PVPlacement(0,G4ThreeVector(0,0,-4.875*mm),
116  "Appl2Phys",applicator2Log,mother,false,0, true);
117 
118  simpleCapsuleVisAtt = new G4VisAttributes(red);
119  simpleCapsuleVisAtt -> SetVisibility(true);
120  simpleCapsuleVisAtt -> SetForceWireframe(true);
121  capsuleLog -> SetVisAttributes(simpleCapsuleVisAtt);
122 
123  simpleCapsuleTipVisAtt = new G4VisAttributes(red);
124  simpleCapsuleTipVisAtt -> SetVisibility(true);
125  simpleCapsuleTipVisAtt -> SetForceSolid(true);
126  capsuleTipLog -> SetVisAttributes(simpleCapsuleTipVisAtt);
127  iridiumCoreLog -> SetVisAttributes(simpleCapsuleTipVisAtt);
128 
129  applicatorVisAtt = new G4VisAttributes(lblue);
130  applicatorVisAtt -> SetVisibility(true);
131  applicatorVisAtt -> SetForceWireframe(true);
132  applicator1Log -> SetVisAttributes(applicatorVisAtt);
133  applicator2Log -> SetVisAttributes(applicatorVisAtt);
134 }
static constexpr double mm
Definition: G4SIunits.hh:115
Definition: test07.cc:36
CLHEP::Hep3Vector G4ThreeVector
Definition: G4Tubs.hh:85
static constexpr double deg
Definition: G4SIunits.hh:152

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