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

#include <G4MIRDUterus.hh>

Inheritance diagram for G4MIRDUterus:
Collaboration diagram for G4MIRDUterus:

Public Member Functions

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

Detailed Description

Definition at line 43 of file G4MIRDUterus.hh.

Constructor & Destructor Documentation

G4MIRDUterus::G4MIRDUterus ( )

Definition at line 51 of file G4MIRDUterus.cc.

52 {
53 }
G4MIRDUterus::~G4MIRDUterus ( )

Definition at line 55 of file G4MIRDUterus.cc.

56 {
57 }

Member Function Documentation

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

Implements G4VOrgan.

Definition at line 60 of file G4MIRDUterus.cc.

62 {
63 
64  G4cout<<"Construct "<<volumeName<<" with mother volume "<<mother->GetName()<<G4endl;
65 
67  G4Material* soft = material -> GetMaterial("soft_tissue");
68  delete material;
69 
70  G4double ax= 2.5*cm; //a
71  G4double by= 1.5*cm; //c
72  G4double cz= 5.*cm; //b
73 
74  G4double zcut1= -5.* cm; //-b
75  G4double zcut2= 2.5*cm; //y1-y0
76 
77  G4Ellipsoid* uterus = new G4Ellipsoid("Uterus",
78  ax, by, cz,
79  zcut1, zcut2);
80 
81  G4LogicalVolume* logicUterus = new G4LogicalVolume(uterus,
82  soft,
83  "logical" + volumeName,
84  0, 0, 0);
85 
86 
87  // Define rotation and position here!
89  rm->rotateX(90.*degree);
90  G4VPhysicalVolume* physUterus = new G4PVPlacement(rm,
91  G4ThreeVector(0. *cm, 2*cm,-21 *cm),
92  "physicalUterus", //y0
93  logicUterus,
94  mother,
95  false,
96  0, true);
97 
98 
99 
100  // Visualization Attributes
101  // G4VisAttributes* UterusVisAtt = new G4VisAttributes(G4Colour(0.85,0.44,0.84));
102 
103  G4HumanPhantomColour* colourPointer = new G4HumanPhantomColour();
104  G4Colour colour = colourPointer -> GetColour(colourName);
105  G4VisAttributes* UterusVisAtt = new G4VisAttributes(colour);
106  UterusVisAtt->SetForceSolid(wireFrame);
107  logicUterus->SetVisAttributes(UterusVisAtt);
108 
109  G4cout << "Uterus created !!!!!!" << G4endl;
110 
111  // Testing Uterus Volume
112  G4double UterusVol = logicUterus->GetSolid()->GetCubicVolume();
113  G4cout << "Volume of Uterus = " << UterusVol/cm3 << " cm^3" << G4endl;
114 
115  // Testing Uterus Material
116  G4String UterusMat = logicUterus->GetMaterial()->GetName();
117  G4cout << "Material of Uterus = " << UterusMat << G4endl;
118 
119  // Testing Density
120  G4double UterusDensity = logicUterus->GetMaterial()->GetDensity();
121  G4cout << "Density of Material = " << UterusDensity*cm3/g << " g/cm^3" << G4endl;
122 
123  // Testing Mass
124  G4double UterusMass = (UterusVol)*UterusDensity;
125  G4cout << "Mass of Uterus = " << UterusMass/gram << " g" << G4endl;
126 
127  return physUterus;
128 }
G4Material * GetMaterial() const
CLHEP::Hep3Vector G4ThreeVector
HepRotation & rotateX(double delta)
Definition: Rotation.cc:66
CLHEP::HepRotation G4RotationMatrix
const G4String & GetName() const
Definition: G4Material.hh:178
virtual G4double GetCubicVolume()
Definition: G4VSolid.cc:189
G4double GetDensity() const
Definition: G4Material.hh:180
G4VSolid * GetSolid() const
void SetForceSolid(G4bool=true)
static constexpr double gram
Definition: G4SIunits.hh:178
string material
Definition: eplot.py:19
function g(Y1, Y2, PT2)
Definition: hijing1.383.f:5205
G4GLOB_DLL std::ostream G4cout
const G4String & GetName() const
static constexpr double degree
Definition: G4SIunits.hh:144
static constexpr double cm
Definition: G4SIunits.hh:119
static constexpr double cm3
Definition: G4SIunits.hh:121
#define G4endl
Definition: G4ios.hh:61
double G4double
Definition: G4Types.hh:76
void SetVisAttributes(const G4VisAttributes *pVA)

Here is the call graph for this function:


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