Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4tgbDetectorBuilder Class Reference

#include <G4tgbDetectorBuilder.hh>

Public Member Functions

 G4tgbDetectorBuilder ()
 
virtual ~G4tgbDetectorBuilder ()
 
virtual const G4tgrVolumeReadDetector ()
 
virtual G4VPhysicalVolumeConstructDetector (const G4tgrVolume *tgrVoltop)
 

Detailed Description

Definition at line 57 of file G4tgbDetectorBuilder.hh.

Constructor & Destructor Documentation

G4tgbDetectorBuilder::G4tgbDetectorBuilder ( )

Definition at line 53 of file G4tgbDetectorBuilder.cc.

54 {
55 }
G4tgbDetectorBuilder::~G4tgbDetectorBuilder ( )
virtual

Definition at line 58 of file G4tgbDetectorBuilder.cc.

59 {
60 }

Member Function Documentation

G4VPhysicalVolume * G4tgbDetectorBuilder::ConstructDetector ( const G4tgrVolume tgrVoltop)
virtual

Definition at line 76 of file G4tgbDetectorBuilder.cc.

77 {
78  //---------- copy list of G4tgrVolume's to list of G4tgbVolume's
79  // (just a trick to make all GEANT4 volume building in this class)
81  tgbVolmgr->CopyVolumes();
82  //---------- find corresponding volume in list of G4tgbVolume's
83  G4tgbVolume* tgbVoltop = tgbVolmgr->FindVolume( tgrVoltop->GetName() );
84 
85  //---------- ConstructG4Volumes of top G4tgbVolume
86  // (it will recursively build the whole tree)
87  tgbVoltop->ConstructG4Volumes( 0, (const G4LogicalVolume*)0 );
88 
89  G4VPhysicalVolume* physvol = tgbVolmgr->GetTopPhysVol();
90 
91 #ifdef G4VERBOSE
93  {
94  G4cout << " G4tgbDetectorConstruction::ConstructDetector() - Volume: "
95  << physvol->GetName() << G4endl;
96  }
97 #endif
98 
99  return physvol;
100 
101 }
G4GLOB_DLL std::ostream G4cout
const G4String & GetName() const
static G4int GetVerboseLevel()
G4VPhysicalVolume * GetTopPhysVol()
G4tgbVolume * FindVolume(const G4String &volname)
void ConstructG4Volumes(const G4tgrPlace *place, const G4LogicalVolume *parentLV)
Definition: G4tgbVolume.cc:130
#define G4endl
Definition: G4ios.hh:61
static G4tgbVolumeMgr * GetInstance()
const G4String & GetName() const
Definition: G4tgrVolume.hh:89

Here is the call graph for this function:

Here is the caller graph for this function:

const G4tgrVolume * G4tgbDetectorBuilder::ReadDetector ( )
virtual

Definition at line 63 of file G4tgbDetectorBuilder.cc.

64 {
65  //------------------- construct g4 geometry
66  //---------- find top G4tgrVolume
69  const G4tgrVolume* tgrVoltop = tgrVolmgr->GetTopVolume();
70  return tgrVoltop;
71 }
static G4tgrFileReader * GetInstance()
static G4tgrVolumeMgr * GetInstance()
const G4tgrVolume * GetTopVolume()

Here is the call graph for this function:

Here is the caller graph for this function:


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