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

#include <G4MIRDLeftClavicle.hh>

Inheritance diagram for G4MIRDLeftClavicle:
G4VOrgan

Public Member Functions

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

Constructor & Destructor Documentation

G4MIRDLeftClavicle::G4MIRDLeftClavicle ( )

Definition at line 53 of file G4MIRDLeftClavicle.cc.

54 {
55 }
G4MIRDLeftClavicle::~G4MIRDLeftClavicle ( )

Definition at line 57 of file G4MIRDLeftClavicle.cc.

58 {
59 }

Member Function Documentation

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

Implements G4VOrgan.

Definition at line 61 of file G4MIRDLeftClavicle.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().

63 {
64 
65  G4cout<<"Construct "<<volumeName<<" with mother volume "<<mother->GetName()<<G4endl;
66 
68  G4Material* skeleton = material -> GetMaterial("skeleton");
69 
70  G4double rMin = 0*cm;
71  G4double rMax = 0.7883*cm;
72  G4double rTor = 10*cm;
73  G4double pSPhi = 298.15*degree;
74  G4double pDPhi = 0.7*rad;
75 
76 
77  G4Torus* clavicle = new G4Torus("Clavicle",rMin,rMax,rTor,pSPhi,pDPhi);
78 
79  G4LogicalVolume* logicLeftClavicle = new G4LogicalVolume(clavicle,
80  skeleton,
81  "logical" + volumeName,
82  0, 0, 0);
83 
84 
85  G4VPhysicalVolume* physLeftClavicle = new G4PVPlacement(0,
86  G4ThreeVector(0.*cm,0.*cm,33.25*cm),
87  "physicalLeftClavicle",
88  logicLeftClavicle,
89  mother,
90  false,
91  0, true);
92 
93  // Visualization Attributes
94  //G4VisAttributes* LeftClavicleVisAtt = new G4VisAttributes(G4Colour(0.94,0.5,0.5));
95  G4HumanPhantomColour* colourPointer = new G4HumanPhantomColour();
96  G4Colour colour = colourPointer -> GetColour(colourName);
97  G4VisAttributes* LeftClavicleVisAtt = new G4VisAttributes(colour);
98  LeftClavicleVisAtt->SetForceSolid(wireFrame);
99  logicLeftClavicle->SetVisAttributes(LeftClavicleVisAtt);
100 
101  G4cout << "LeftClavicle created !!!!!!" << G4endl;
102 
103  // Testing LeftClavicle Volume
104  G4double LeftClavicleVol = logicLeftClavicle->GetSolid()->GetCubicVolume();
105  G4cout << "Volume of LeftClavicle = " << LeftClavicleVol/cm3 << " cm^3" << G4endl;
106 
107  // Testing LeftClavicle Material
108  G4String LeftClavicleMat = logicLeftClavicle->GetMaterial()->GetName();
109  G4cout << "Material of LeftClavicle = " << LeftClavicleMat << G4endl;
110 
111  // Testing Density
112  G4double LeftClavicleDensity = logicLeftClavicle->GetMaterial()->GetDensity();
113  G4cout << "Density of Material = " << LeftClavicleDensity*cm3/g << " g/cm^3" << G4endl;
114 
115  // Testing Mass
116  G4double LeftClavicleMass = (LeftClavicleVol)*LeftClavicleDensity;
117  G4cout << "Mass of LeftClavicle = " << LeftClavicleMass/gram << " g" << G4endl;
118 
119 
120  return physLeftClavicle;
121 }
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: