Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4VoxelRightBreast Class Reference

#include <G4VoxelRightBreast.hh>

Inheritance diagram for G4VoxelRightBreast:
G4VOrgan

Public Member Functions

 G4VoxelRightBreast ()
 
 ~G4VoxelRightBreast ()
 
G4VPhysicalVolumeConstruct (const G4String &, G4VPhysicalVolume *, const G4String &, G4bool, G4bool)
 
- Public Member Functions inherited from G4VOrgan
 G4VOrgan ()
 
virtual ~G4VOrgan ()
 

Detailed Description

Definition at line 42 of file G4VoxelRightBreast.hh.

Constructor & Destructor Documentation

G4VoxelRightBreast::G4VoxelRightBreast ( )

Definition at line 53 of file G4VoxelRightBreast.cc.

54 {
55 }
G4VoxelRightBreast::~G4VoxelRightBreast ( )

Definition at line 57 of file G4VoxelRightBreast.cc.

58 {
59 }

Member Function Documentation

G4VPhysicalVolume * G4VoxelRightBreast::Construct ( const G4String volumeName,
G4VPhysicalVolume mother,
const G4String colourName,
G4bool  wireFrame,
G4bool   
)
virtual

Implements G4VOrgan.

Definition at line 62 of file G4VoxelRightBreast.cc.

References python.hepunit::cm, python.hepunit::degree, G4cout, G4endl, G4VPhysicalVolume::GetName(), and eplot::material.

67 {
68  G4cout<<"Construct "<<volumeName<<" with mother volume "<<mother->GetName()<<G4endl;
70  G4Material* adipose = material -> GetMaterial("adipose");
71  G4Material* adipose_glandular = material -> GetMaterial("adipose_glandular");
72  delete material;
73 
74  G4double rmin = 0.* cm;
75  G4double rmax = 6. * cm;
76  G4double zz = 6. * cm;
77  G4double startPhi = 0.* degree;
78  G4double spanningPhi = 180. * degree;
79 
80  G4Tubs* breast = new G4Tubs("out_breast", rmin, rmax,
81  zz/2., startPhi, spanningPhi);
82 
83  G4LogicalVolume* breast_log = new G4LogicalVolume(breast,
84  adipose,
85  "logicalOut"+ volumeName,
86  0, 0, 0);
87  rmax = 5.5 *cm;
88  zz = 5. *cm;
89  G4Tubs* innerBreast = new G4Tubs("inner_breast",
90  rmin, rmax,
91  zz/2., startPhi, spanningPhi);
92 
93  G4LogicalVolume* innerBreast_log = new G4LogicalVolume(innerBreast,
94  adipose_glandular,
95  "logical"+ volumeName,
96  0, 0, 0);
97 
98  G4RotationMatrix* matrix = new G4RotationMatrix();
99  matrix -> rotateX(0.* degree);
100  matrix -> rotateY(0.* degree);
101  matrix -> rotateZ(-18. *degree);
102 
103 
104  G4VPhysicalVolume* physBreast = new G4PVPlacement(matrix,G4ThreeVector(-10.*cm, 8.7 *cm, 52.* cm),
105  "physicalVoxelRightBreast",
106  breast_log,
107  mother,
108  false,
109  0, true);
110 
111  G4VPhysicalVolume* physInnerBreast = new G4PVPlacement(0,G4ThreeVector(),
112  "RightBreast",
113  innerBreast_log,
114  physBreast,
115  false,
116  0, true);
117 
118  G4HumanPhantomColour* colourPointer = new G4HumanPhantomColour();
119  G4Colour colour = colourPointer -> GetColour(colourName);
120  delete colourPointer;
121 
122  G4VisAttributes* BreastVisAtt = new G4VisAttributes(colour);
123  BreastVisAtt -> SetForceSolid(wireFrame);
124  breast_log -> SetVisAttributes(BreastVisAtt);
125 
126  G4VisAttributes* innerBreastVisAtt = new G4VisAttributes(colour);
127  innerBreastVisAtt -> SetForceSolid(false);
128  innerBreast_log -> SetVisAttributes(innerBreastVisAtt);
129 
130 
131  G4cout << "Voxel Right Breast created !!!!!! This model must be refined!" << G4endl;
132 
133 
134  return physInnerBreast;
135 }
CLHEP::Hep3Vector G4ThreeVector
CLHEP::HepRotation G4RotationMatrix
Definition: G4Tubs.hh:84
string material
Definition: eplot.py:19
G4GLOB_DLL std::ostream G4cout
const G4String & GetName() const
tuple degree
Definition: hepunit.py:69
#define G4endl
Definition: G4ios.hh:61
double G4double
Definition: G4Types.hh:76

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