Geant4 VMC
Version 6.8
Toggle main menu visibility
Loading...
Searching...
No Matches
source
geometry
src
TG4DetConstruction.cxx
Go to the documentation of this file.
1
//------------------------------------------------
2
// The Geant4 Virtual Monte Carlo package
3
// Copyright (C) 2007 - 2014 Ivana Hrivnacova
4
// All rights reserved.
5
//
6
// For the licensing terms see geant4_vmc/LICENSE.
7
// Contact: root-vmc@cern.ch
8
//-------------------------------------------------
9
14
15
#include "
TG4DetConstruction.h
"
16
#include "
TG4GeometryManager.h
"
17
#include "
TG4GeometryServices.h
"
18
#include "
TG4Globals.h
"
19
20
#include <G4VPhysicalVolume.hh>
21
22
//_____________________________________________________________________________
23
TG4DetConstruction::TG4DetConstruction
()
24
:
G4VUserDetectorConstruction
(),
fWorld
(0)
25
{
27
}
28
29
//_____________________________________________________________________________
30
TG4DetConstruction::~TG4DetConstruction
()
31
{
33
}
34
35
//
36
// public methods
37
//
38
39
//_____________________________________________________________________________
40
G4VPhysicalVolume*
TG4DetConstruction::Construct
()
41
{
43
// --
44
45
// Build G4 geometry
46
TG4GeometryManager::Instance
()->
ConstructGeometry
();
47
48
fWorld
=
TG4GeometryServices::Instance
()->
GetWorld
();
49
50
return
fWorld
;
51
}
52
53
//_____________________________________________________________________________
54
void
TG4DetConstruction::ConstructSDandField
()
55
{
57
// --
58
59
TG4GeometryManager::Instance
()->
ConstructSDandField
();
60
}
TG4DetConstruction.h
Definition of the TG4DetConstruction class.
TG4GeometryManager.h
Definition of the TG4GeometryManager class.
TG4GeometryServices.h
Definition of the TG4GeometryServices class.
TG4Globals.h
Definition of the TG4Globals class and basic container types.
G4VUserDetectorConstruction
TG4DetConstruction::~TG4DetConstruction
virtual ~TG4DetConstruction()
Definition
TG4DetConstruction.cxx:30
TG4DetConstruction::fWorld
G4VPhysicalVolume * fWorld
Definition
TG4DetConstruction.h:46
TG4DetConstruction::TG4DetConstruction
TG4DetConstruction()
Definition
TG4DetConstruction.cxx:23
TG4DetConstruction::ConstructSDandField
virtual void ConstructSDandField()
Definition
TG4DetConstruction.cxx:54
TG4DetConstruction::Construct
virtual G4VPhysicalVolume * Construct()
Definition
TG4DetConstruction.cxx:40
TG4GeometryManager::ConstructSDandField
void ConstructSDandField()
Definition
TG4GeometryManager.cxx:819
TG4GeometryManager::ConstructGeometry
void ConstructGeometry()
Definition
TG4GeometryManager.cxx:797
TG4GeometryManager::Instance
static TG4GeometryManager * Instance()
Definition
TG4GeometryManager.h:189
TG4GeometryServices::GetWorld
G4VPhysicalVolume * GetWorld() const
Definition
TG4GeometryServices.h:187
TG4GeometryServices::Instance
static TG4GeometryServices * Instance()
Definition
TG4GeometryServices.h:169
Generated on
for Geant4 VMC by
1.17.0