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

#include <G4MIRDRightClavicle.hh>

Inheritance diagram for G4MIRDRightClavicle:
G4VOrgan

Public Member Functions

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

Constructor & Destructor Documentation

G4MIRDRightClavicle::G4MIRDRightClavicle ( )

Definition at line 53 of file G4MIRDRightClavicle.cc.

54 {
55 }
G4MIRDRightClavicle::~G4MIRDRightClavicle ( )

Definition at line 57 of file G4MIRDRightClavicle.cc.

58 {
59 }

Member Function Documentation

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

Implements G4VOrgan.

Definition at line 62 of file G4MIRDRightClavicle.cc.

References python.hepunit::cm, python.hepunit::cm3, python.hepunit::degree, g(), G4cout, G4endl, G4VSolid::GetCubicVolume(), G4Material::GetDensity(), G4LogicalVolume::GetMaterial(), G4VPhysicalVolume::GetName(), G4Material::GetName(), G4LogicalVolume::GetSolid(), python.hepunit::gram, eplot::material, python.hepunit::rad, G4VisAttributes::SetForceSolid(), and G4LogicalVolume::SetVisAttributes().

64 {
65 
66  G4cout<<"Construct "<<volumeName<<" with mother volume "<<mother->GetName()<<G4endl;
67 
68 
70  G4Material* skeleton = material -> GetMaterial("skeleton");
71 
72  G4double rMin = 0*cm;
73  G4double rMax = 0.7883*cm;
74  G4double rTor = 10*cm;
75  G4double pSPhi = 201.75*degree;
76  G4double pDPhi = 0.7*rad;
77 
78 
79  G4Torus* clavicle = new G4Torus("Clavicle",rMin,rMax,rTor,pSPhi,pDPhi);
80 
81  G4LogicalVolume* logicRightClavicle = new G4LogicalVolume(clavicle,
82  skeleton,
83  "logical" + volumeName,
84  0, 0, 0);
85  G4VPhysicalVolume* physRightClavicle = new G4PVPlacement(0,
86  G4ThreeVector(0.*cm,0.*cm,33.25*cm),
87  "physicalRightClavicle",
88  logicRightClavicle,
89  mother,
90  false,
91  0, true);
92 
93  // Visualization Attributes
94  G4HumanPhantomColour* colourPointer = new G4HumanPhantomColour();
95  G4Colour colour = colourPointer -> GetColour(colourName);
96  G4VisAttributes* RightClavicleVisAtt = new G4VisAttributes(colour);
97  RightClavicleVisAtt->SetForceSolid(wireFrame);
98  logicRightClavicle->SetVisAttributes(RightClavicleVisAtt);
99  G4cout << "RightClavicle created !!!!!!" << G4endl;
100 
101  // Testing RightClavicle Volume
102  G4double RightClavicleVol = logicRightClavicle->GetSolid()->GetCubicVolume();
103  G4cout << "Volume of RightClavicle = " << RightClavicleVol/cm3 << " cm^3" << G4endl;
104 
105  // Testing RightClavicle Material
106  G4String RightClavicleMat = logicRightClavicle->GetMaterial()->GetName();
107  G4cout << "Material of RightClavicle = " << RightClavicleMat << G4endl;
108 
109  // Testing Density
110  G4double RightClavicleDensity = logicRightClavicle->GetMaterial()->GetDensity();
111  G4cout << "Density of Material = " << RightClavicleDensity*cm3/g << " g/cm^3" << G4endl;
112 
113  // Testing Mass
114  G4double RightClavicleMass = (RightClavicleVol)*RightClavicleDensity;
115  G4cout << "Mass of RightClavicle = " << RightClavicleMass/gram << " g" << G4endl;
116 
117 
118  return physRightClavicle;
119 }
CLHEP::Hep3Vector G4ThreeVector
G4Material * GetMaterial() const
const G4String & GetName() const
Definition: G4Material.hh:176
virtual G4double GetCubicVolume()
Definition: G4VSolid.cc:188
G4double GetDensity() const
Definition: G4Material.hh:178
void SetForceSolid(G4bool)
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
tuple degree
Definition: hepunit.py:69
#define G4endl
Definition: G4ios.hh:61
double G4double
Definition: G4Types.hh:76
void SetVisAttributes(const G4VisAttributes *pVA)
G4VSolid * GetSolid() const

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