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

#include <G4MIRDRightArmBone.hh>

Inheritance diagram for G4MIRDRightArmBone:
Collaboration diagram for G4MIRDRightArmBone:

Public Member Functions

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

Constructor & Destructor Documentation

G4MIRDRightArmBone::G4MIRDRightArmBone ( )

Definition at line 51 of file G4MIRDRightArmBone.cc.

52 {
53 }
G4MIRDRightArmBone::~G4MIRDRightArmBone ( )

Definition at line 55 of file G4MIRDRightArmBone.cc.

56 {
57 }

Member Function Documentation

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

Implements G4VOrgan.

Definition at line 59 of file G4MIRDRightArmBone.cc.

61 {
62  // Remind! the elliptical cone gives problems! Intersections of volumes,
63  // wrong calculation of the volume!
64 
66 
67  G4cout<<"Construct "<<volumeName<<" with mother volume "<<mother->GetName()<<G4endl;
68 
69  G4Material* skeleton = material -> GetMaterial("skeleton");
70 
71  delete material;
72 
73  G4double dx = 1.4 * cm;//a
74  G4double dy = 2.7 * cm;//b
75  // G4double dz= 46. * cm;//z0
76 
77  //G4EllipticalCone* arm = new G4EllipticalCone("OneRightArmBone",dx/2.,dy/2.,dz, 34.5 *cm);
78  G4EllipticalTube* rightArm = new G4EllipticalTube("OneRightArmBone",dx,dy,34.5 *cm);
79 
80  G4LogicalVolume* logicRightArmBone = new G4LogicalVolume(rightArm,
81  skeleton,
82  "logical" + volumeName,
83  0, 0,0);
84 
86  rm->rotateX(180.*degree);
87  G4VPhysicalVolume* physRightArmBone = new G4PVPlacement(rm,
88  G4ThreeVector(-18.4 * cm, 0.0, -0.5*cm),
89  //-x0
90  "physicalRightArmBone",
91  logicRightArmBone,
92  mother,
93  false,0,true);
94 
95 
96 
97  // Visualization Attributes
98  //G4VisAttributes* RightArmBoneVisAtt = new G4VisAttributes(G4Colour(0.46,0.53,0.6));
99  G4HumanPhantomColour* colourPointer = new G4HumanPhantomColour();
100  G4Colour colour = colourPointer -> GetColour(colourName);
101  G4VisAttributes* RightArmBoneVisAtt = new G4VisAttributes(colour);
102 
103  RightArmBoneVisAtt->SetForceSolid(wireFrame);
104  logicRightArmBone->SetVisAttributes(RightArmBoneVisAtt);
105 
106  G4cout << "RightArmBone created !!!!!!" << G4endl;
107 
108  // Testing RightArmBone Volume
109  G4double RightArmBoneVol = logicRightArmBone->GetSolid()->GetCubicVolume();
110  G4cout << "Volume of RightArmBone = " << RightArmBoneVol/cm3 << " cm^3" << G4endl;
111 
112  // Testing RightArmBone Material
113  G4String RightArmBoneMat = logicRightArmBone->GetMaterial()->GetName();
114  G4cout << "Material of RightArmBone = " << RightArmBoneMat << G4endl;
115 
116  // Testing Density
117  G4double RightArmBoneDensity = logicRightArmBone->GetMaterial()->GetDensity();
118  G4cout << "Density of Material = " << RightArmBoneDensity*cm3/g << " g/cm^3" << G4endl;
119 
120  // Testing Mass
121  G4double RightArmBoneMass = (RightArmBoneVol)*RightArmBoneDensity;
122  G4cout << "Mass of RightArmBone = " << RightArmBoneMass/gram << " g" << G4endl;
123 
124  return physRightArmBone;
125 }
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: