Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
G4EzWorld.hh
이 파일의 문서화 페이지로 가기
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 // $Id: G4EzWorld.hh 66892 2013-01-17 10:57:59Z gunter $
27 // ====================================================================
28 // G4EzWorld.hh
29 //
30 // Utility class for supporting creating user geometry
31 //
32 // management of a world volume
33 //
34 // 2005 Q
35 // ====================================================================
36 #ifndef G4_EZ_WORLD_H
37 #define G4_EZ_WORLD_H
38 
39 #include "globals.hh"
40 #include "G4SystemOfUnits.hh"
41 
42 // ====================================================================
43 //
44 // class definition
45 //
46 // ====================================================================
47 class G4Material;
48 class G4VPhysicalVolume;
49 
50 class G4EzWorld {
51 protected:
52  // world volume is automatically presented.
55  G4double dy=1.*m,
56  G4double dz=1.*m);
57 public:
58  G4EzWorld();
59  ~G4EzWorld();
60 
62 
63  static void Reset(G4double dx, G4double dy, G4double dz);
64  static void Resize(G4double dx, G4double dy, G4double dz);
65  static void SetMaterial(G4Material* amaterial);
66  static void SetVisibility(G4bool qvis);
67 
68 };
69 
70 // ====================================================================
71 // inline functions
72 // ====================================================================
73 
75 
76 #endif
static G4VPhysicalVolume * CreateWorld(G4double dx=1.*m, G4double dy=1.*m, G4double dz=1.*m)
Definition: G4EzWorld.cc:66
static void Resize(G4double dx, G4double dy, G4double dz)
Definition: G4EzWorld.cc:109
~G4EzWorld()
Definition: G4EzWorld.cc:57
static void Reset(G4double dx, G4double dy, G4double dz)
Definition: G4EzWorld.cc:97
static constexpr double m
Definition: G4SIunits.hh:129
double G4double
Definition: G4Types.hh:76
bool G4bool
Definition: G4Types.hh:79
static G4VPhysicalVolume * world
Definition: G4EzWorld.hh:53
static void SetVisibility(G4bool qvis)
Definition: G4EzWorld.cc:131
static void SetMaterial(G4Material *amaterial)
Definition: G4EzWorld.cc:123
static G4VPhysicalVolume * GetWorldVolume()
Definition: G4EzWorld.hh:74