Geant4  10.02.p03
BrachyDetectorConstructionI Class Reference

#include <BrachyDetectorConstructionI.hh>

Collaboration diagram for BrachyDetectorConstructionI:

Public Member Functions

 BrachyDetectorConstructionI ()
 
More...
 
 ~BrachyDetectorConstructionI ()
 
void ConstructIodium (G4VPhysicalVolume *)
 
void CleanIodium ()
 

Private Attributes

G4Tubs * defaultTub
 
G4Tubs * capsule
 
G4Sphere * capsuleTip
 
G4Tubs * iodiumCore
 
G4LogicalVolume * defaultTubLog
 
G4LogicalVolume * capsuleLog
 
G4LogicalVolume * capsuleTipLog
 
G4LogicalVolume * iodiumCoreLog
 
G4VPhysicalVolume * defaultTubPhys
 
G4VPhysicalVolume * capsulePhys
 
G4VPhysicalVolume * capsuleTipPhys1
 
G4VPhysicalVolume * capsuleTipPhys2
 
G4VPhysicalVolume * iodiumCorePhys
 
G4VisAttributes * simpleiodiumVisAtt
 
G4VisAttributes * simpleCapsuleVisAtt
 
G4VisAttributes * simpleCapsuleTipVisAtt
 
BrachyMaterial * pMaterial
 

Detailed Description

Definition at line 49 of file BrachyDetectorConstructionI.hh.

Constructor & Destructor Documentation

◆ BrachyDetectorConstructionI()

BrachyDetectorConstructionI::BrachyDetectorConstructionI ( )


Definition at line 60 of file BrachyDetectorConstructionI.cc.

60  :
65 {
66  pMaterial = new BrachyMaterial();
67 }

◆ ~BrachyDetectorConstructionI()

BrachyDetectorConstructionI::~BrachyDetectorConstructionI ( )

Definition at line 69 of file BrachyDetectorConstructionI.cc.

70 {
71  delete pMaterial;
72 }

Member Function Documentation

◆ CleanIodium()

void BrachyDetectorConstructionI::CleanIodium ( )

Definition at line 164 of file BrachyDetectorConstructionI.cc.

165 {
169 delete capsuleTipPhys1; capsuleTipPhys1 = 0;
170 delete capsuleTipPhys2; capsuleTipPhys2 = 0;
171 delete iodiumCorePhys; iodiumCorePhys = 0;
172 delete capsulePhys; capsulePhys = 0;
173 delete defaultTubPhys; defaultTubPhys = 0;
174 delete defaultTubLog; defaultTubLog = 0;
175 delete capsuleLog; capsuleLog = 0;
176 delete capsuleTipLog; capsuleTipLog = 0;
177 delete iodiumCoreLog; iodiumCoreLog = 0;
178 delete defaultTub; defaultTub = 0;
179 delete capsule; capsule = 0;
180 delete capsuleTip; capsuleTip = 0;
181 delete iodiumCore; iodiumCore = 0;
182 
184 }
static G4RunManager * GetRunManager()
Definition: G4RunManager.cc:79
Here is the call graph for this function:

◆ ConstructIodium()

void BrachyDetectorConstructionI::ConstructIodium ( G4VPhysicalVolume *  mother)

Definition at line 74 of file BrachyDetectorConstructionI.cc.

75 {
76  // source Bebig Isoseed I-125 ...
77 
78  //Get materials for source construction ...
79  G4Material* titanium = pMaterial -> GetMat("titanium");
80  G4Material* air = pMaterial -> GetMat("Air");
81  G4Material* iodium = pMaterial -> GetMat("Iodium");
82 
83  G4Colour red (1.0, 0.0, 0.0) ;
84  G4Colour magenta (1.0, 0.0, 1.0) ;
85  G4Colour lblue (0.0, 0.0, .75);
86 
87  // Air tub
88  defaultTub = new G4Tubs("DefaultTub",0.*mm, 0.40*mm, 1.84*mm, 0.*deg, 360.*deg);
89  defaultTubLog = new G4LogicalVolume(defaultTub,air,"DefaultTub_Log");
91  G4ThreeVector(),
92  "defaultTub_Phys",
94  mother,
95  false,
96  0, true);
97  // Capsule main body ...
98  G4double capsuleR = 0.35*mm;
99  capsule = new G4Tubs("Capsule", capsuleR,0.40*mm,1.84*mm,0.*deg,360.*deg);
100  capsuleLog = new G4LogicalVolume(capsule,titanium,"CapsuleLog");
101  capsulePhys = new G4PVPlacement(0,
102  G4ThreeVector(),
103  "CapsulePhys",
104  capsuleLog,
106  false,
107  0, true);
108  // Capsule tips
109  capsuleTip = new G4Sphere("CapsuleTip",
110  0.*mm,
111  0.40*mm,
112  0.*deg,
113  360.*deg,
114  0.*deg,
115  90.*deg);
116  capsuleTipLog = new G4LogicalVolume(capsuleTip,titanium,"CapsuleTipLog");
118  G4ThreeVector(0.,0.,1.84*mm),
119  "IodineCapsuleTipPhys1",
121  mother,
122  false,
123  0, true);
124 
125  G4RotationMatrix* rotateMatrix = new G4RotationMatrix();
126  rotateMatrix -> rotateX(180.0*deg);
127  capsuleTipPhys2 = new G4PVPlacement(rotateMatrix,
128  G4ThreeVector(0,0,-1.84*mm),
129  "IodineCapsuleTipPhys2",
131  mother,
132  false,
133  0, true);
134 
135  // Radiactive core ...
136  iodiumCore = new G4Tubs("ICore",0.085*mm,0.35*mm,1.75*mm,0.*deg,360.*deg);
137  iodiumCoreLog = new G4LogicalVolume(iodiumCore,iodium,"iodiumCoreLog");
139  G4ThreeVector(0.,0.,0.),
140  "iodiumCorePhys",
143  false,
144  0, true);
145 
146  // Visual attributes ...
147 
148  simpleiodiumVisAtt= new G4VisAttributes(magenta);
149  simpleiodiumVisAtt -> SetVisibility(true);
150  simpleiodiumVisAtt -> SetForceSolid(true);
151  iodiumCoreLog -> SetVisAttributes(simpleiodiumVisAtt);
152 
154  simpleCapsuleVisAtt -> SetVisibility(true);
155  simpleCapsuleVisAtt -> SetForceWireframe(true);
156  capsuleLog -> SetVisAttributes( simpleCapsuleVisAtt);
157 
159  simpleCapsuleTipVisAtt -> SetVisibility(true);
160  simpleCapsuleTipVisAtt -> SetForceSolid(true);
161  capsuleTipLog -> SetVisAttributes( simpleCapsuleTipVisAtt);
162 }
Definition: test07.cc:36
CLHEP::Hep3Vector G4ThreeVector
CLHEP::HepRotation G4RotationMatrix
Definition: G4Tubs.hh:85
static const double deg
Definition: G4SIunits.hh:151
double G4double
Definition: G4Types.hh:76
static const double mm
Definition: G4SIunits.hh:114

Member Data Documentation

◆ capsule

G4Tubs* BrachyDetectorConstructionI::capsule
private

Definition at line 58 of file BrachyDetectorConstructionI.hh.

◆ capsuleLog

G4LogicalVolume* BrachyDetectorConstructionI::capsuleLog
private

Definition at line 62 of file BrachyDetectorConstructionI.hh.

◆ capsulePhys

G4VPhysicalVolume* BrachyDetectorConstructionI::capsulePhys
private

Definition at line 66 of file BrachyDetectorConstructionI.hh.

◆ capsuleTip

G4Sphere* BrachyDetectorConstructionI::capsuleTip
private

Definition at line 59 of file BrachyDetectorConstructionI.hh.

◆ capsuleTipLog

G4LogicalVolume* BrachyDetectorConstructionI::capsuleTipLog
private

Definition at line 63 of file BrachyDetectorConstructionI.hh.

◆ capsuleTipPhys1

G4VPhysicalVolume* BrachyDetectorConstructionI::capsuleTipPhys1
private

Definition at line 67 of file BrachyDetectorConstructionI.hh.

◆ capsuleTipPhys2

G4VPhysicalVolume* BrachyDetectorConstructionI::capsuleTipPhys2
private

Definition at line 68 of file BrachyDetectorConstructionI.hh.

◆ defaultTub

G4Tubs* BrachyDetectorConstructionI::defaultTub
private

Definition at line 57 of file BrachyDetectorConstructionI.hh.

◆ defaultTubLog

G4LogicalVolume* BrachyDetectorConstructionI::defaultTubLog
private

Definition at line 61 of file BrachyDetectorConstructionI.hh.

◆ defaultTubPhys

G4VPhysicalVolume* BrachyDetectorConstructionI::defaultTubPhys
private

Definition at line 65 of file BrachyDetectorConstructionI.hh.

◆ iodiumCore

G4Tubs* BrachyDetectorConstructionI::iodiumCore
private

Definition at line 60 of file BrachyDetectorConstructionI.hh.

◆ iodiumCoreLog

G4LogicalVolume* BrachyDetectorConstructionI::iodiumCoreLog
private

Definition at line 64 of file BrachyDetectorConstructionI.hh.

◆ iodiumCorePhys

G4VPhysicalVolume* BrachyDetectorConstructionI::iodiumCorePhys
private

Definition at line 69 of file BrachyDetectorConstructionI.hh.

◆ pMaterial

BrachyMaterial* BrachyDetectorConstructionI::pMaterial
private

Definition at line 74 of file BrachyDetectorConstructionI.hh.

◆ simpleCapsuleTipVisAtt

G4VisAttributes* BrachyDetectorConstructionI::simpleCapsuleTipVisAtt
private

Definition at line 72 of file BrachyDetectorConstructionI.hh.

◆ simpleCapsuleVisAtt

G4VisAttributes* BrachyDetectorConstructionI::simpleCapsuleVisAtt
private

Definition at line 71 of file BrachyDetectorConstructionI.hh.

◆ simpleiodiumVisAtt

G4VisAttributes* BrachyDetectorConstructionI::simpleiodiumVisAtt
private

Definition at line 70 of file BrachyDetectorConstructionI.hh.


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