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

#include <G4MIRDUpperLargeIntestine.hh>

Inheritance diagram for G4MIRDUpperLargeIntestine:
Collaboration diagram for G4MIRDUpperLargeIntestine:

Public Member Functions

 G4MIRDUpperLargeIntestine ()
 
 ~G4MIRDUpperLargeIntestine ()
 
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 G4MIRDUpperLargeIntestine.hh.

Constructor & Destructor Documentation

G4MIRDUpperLargeIntestine::G4MIRDUpperLargeIntestine ( )

Definition at line 50 of file G4MIRDUpperLargeIntestine.cc.

51 {
52 }
G4MIRDUpperLargeIntestine::~G4MIRDUpperLargeIntestine ( )

Definition at line 54 of file G4MIRDUpperLargeIntestine.cc.

55 {
56 }

Member Function Documentation

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

Implements G4VOrgan.

Definition at line 59 of file G4MIRDUpperLargeIntestine.cc.

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 dx = 2.5 * cm; // aU
71  G4double dy = 2.5* cm; //bU
72  G4double dz = 4.775 * cm; //dzU
73 
74  G4VSolid* AscendingColonUpperLargeIntestine = new G4EllipticalTube("AscendingColon",dx, dy, dz);
75 
76  dx = 2.5 * cm;//bt
77  dy = 1.5 *cm;//ct
78  dz = 10.5* cm;//x1t
79 
80  G4VSolid* TraverseColonUpperLargeIntestine = new G4EllipticalTube("TraverseColon",dx, dy, dz);
81 
82  G4RotationMatrix* relative_rm = new G4RotationMatrix();
83  relative_rm -> rotateX(90. * degree);
84  relative_rm -> rotateZ(0. * degree);
85  relative_rm -> rotateY(90. * degree);
86  G4UnionSolid* upperLargeIntestine = new G4UnionSolid("UpperLargeIntestine",
87  AscendingColonUpperLargeIntestine,
88  TraverseColonUpperLargeIntestine,
89  relative_rm,
90  G4ThreeVector(8.0 *cm, 0.0,6.275 * cm)); //,0,dzU + ct transverse
91 
92 
93  G4LogicalVolume* logicUpperLargeIntestine = new G4LogicalVolume(upperLargeIntestine, soft,
94  "logical" + volumeName,
95  0, 0, 0);
96 
97  G4VPhysicalVolume* physUpperLargeIntestine = new G4PVPlacement(0,
98  G4ThreeVector(-8.0 * cm, -2.36 *cm,-15.775 *cm),
99  "physicalUpperLargeIntestine", //xo, yo, zo ascending colon
100  logicUpperLargeIntestine,
101  mother,
102  false,
103  0, true);
104 
105 
106 
107  // Visualization Attributes
108  // G4VisAttributes* UpperLargeIntestineVisAtt = new G4VisAttributes(G4Colour(1.0,1.0,0.0));
109  G4HumanPhantomColour* colourPointer = new G4HumanPhantomColour();
110  G4Colour colour = colourPointer -> GetColour(colourName);
111  G4VisAttributes* UpperLargeIntestineVisAtt = new G4VisAttributes(colour);
112  UpperLargeIntestineVisAtt->SetForceSolid(wireFrame);
113  logicUpperLargeIntestine->SetVisAttributes(UpperLargeIntestineVisAtt);
114 
115  G4cout << "UpperLargeIntestine created !!!!!!" << G4endl;
116 
117  // Testing UpperLargeIntestine Volume
118  G4double UpperLargeIntestineVol = logicUpperLargeIntestine->GetSolid()->GetCubicVolume();
119  G4cout << "Volume of UpperLargeIntestine = " << UpperLargeIntestineVol/cm3 << " cm^3" << G4endl;
120 
121  // Testing UpperLargeIntestine Material
122  G4String UpperLargeIntestineMat = logicUpperLargeIntestine->GetMaterial()->GetName();
123  G4cout << "Material of UpperLargeIntestine = " << UpperLargeIntestineMat << G4endl;
124 
125  // Testing Density
126  G4double UpperLargeIntestineDensity = logicUpperLargeIntestine->GetMaterial()->GetDensity();
127  G4cout << "Density of Material = " << UpperLargeIntestineDensity*cm3/g << " g/cm^3" << G4endl;
128 
129  // Testing Mass
130  G4double UpperLargeIntestineMass = (UpperLargeIntestineVol)*UpperLargeIntestineDensity;
131  G4cout << "Mass of UpperLargeIntestine = " << UpperLargeIntestineMass/gram << " g" << G4endl;
132 
133 
134  return physUpperLargeIntestine;
135 }
G4Material * GetMaterial() const
CLHEP::Hep3Vector G4ThreeVector
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: