geant4-B1-example  1.0
 All Classes Files Functions Variables Pages
B1DetectorConstruction Class Reference

Detector construction class to define materials and geometry. More...

#include <B1DetectorConstruction.hh>

Inheritance diagram for B1DetectorConstruction:
Collaboration diagram for B1DetectorConstruction:

Public Member Functions

 B1DetectorConstruction ()
 iniitalize fScoringVolume to 0 More...
 
virtual ~B1DetectorConstruction ()
 do nothing. More...
 
virtual G4VPhysicalVolume * Construct ()
 the main place for geometry setting. the scoring volume is set to shape2 (bone) More...
 
G4LogicalVolume * GetScoringVolume () const
 

Protected Attributes

G4LogicalVolume * fScoringVolume
 

Detailed Description

Detector construction class to define materials and geometry.

Definition at line 16 of file B1DetectorConstruction.hh.

Constructor & Destructor Documentation

B1DetectorConstruction::B1DetectorConstruction ( )

iniitalize fScoringVolume to 0

Definition at line 19 of file B1DetectorConstruction.cc.

B1DetectorConstruction::~B1DetectorConstruction ( )
virtual

do nothing.

Definition at line 26 of file B1DetectorConstruction.cc.

Member Function Documentation

G4VPhysicalVolume * B1DetectorConstruction::Construct ( )
virtual

the main place for geometry setting. the scoring volume is set to shape2 (bone)

create a world

world is the largest object.

  1. box shape ==> x={-24, 24}, y={-24,24}, z={-18,18} cm.
  2. material=> air.
  3. objects=> solidWorld, logicWorld, physWorld.

create an envelope

  1. box shape ==> x={-20, 20}, y={-20,20}, z={-15,15} cm.
  2. center ==> {0,0,0}
  3. material=> water.
  4. objects=> solidEnv, logicEnv, (no variable for phyEnv)

create "shape1" to represent tissue

  1. cone shape ==> r1 = {0,2}cm, r2 ={0,2}cm, height=3cm, phi= 360 deg
  2. center ==> {0,+2,-7} cm
  3. material=> G4_A-150_TISSUE.
  4. objects=> solidShape1, logicShape1, (no variable for phyShape1)

create "shape2" to represent bone

  1. Trapezoid shape ==> area1 = 12x10, area2=12x16, height=6cm
  2. center ==> {0,-1,-7} cm
  3. material=> G4_BONE_COMPACT_ICRU
  4. objects=> solidShape2, logicShape2, (no variable for phyShape2)

Set logicShape2 as scoring volume (fScoringVolume)

always return the physical World

Definition at line 33 of file B1DetectorConstruction.cc.

References fScoringVolume.

G4LogicalVolume* B1DetectorConstruction::GetScoringVolume ( ) const
inline

Definition at line 26 of file B1DetectorConstruction.hh.

References fScoringVolume.

Referenced by B1RunAction::EndOfRunAction(), and B1SteppingAction::UserSteppingAction().

Here is the caller graph for this function:

Member Data Documentation

G4LogicalVolume* B1DetectorConstruction::fScoringVolume
protected

Definition at line 29 of file B1DetectorConstruction.hh.

Referenced by Construct(), and GetScoringVolume().


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