Geant4
9.6.p02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
geant4_9_6_p02
examples
extended
electromagnetic
TestEm11
include
DetectorConstruction.hh
Go to the documentation of this file.
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
//
28
//
29
// $Id$
30
//
31
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
32
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
33
34
#ifndef DetectorConstruction_h
35
#define DetectorConstruction_h 1
36
37
#include "
G4VUserDetectorConstruction.hh
"
38
#include "
globals.hh
"
39
40
class
G4Box
;
41
class
G4LogicalVolume
;
42
class
G4VPhysicalVolume
;
43
class
G4Material
;
44
class
G4UniformMagField
;
45
class
DetectorMessenger
;
46
47
const
G4int
MaxAbsor
= 10;
// 0 + 9
48
49
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
50
51
class
DetectorConstruction
:
public
G4VUserDetectorConstruction
52
{
53
public
:
54
55
DetectorConstruction
();
56
~DetectorConstruction
();
57
58
public
:
59
60
void
SetNbOfAbsor
(
G4int
);
61
void
SetAbsorMaterial
(
G4int
,
const
G4String
&);
62
void
SetAbsorThickness
(
G4int
,
G4double
);
63
64
void
SetAbsorSizeYZ
(
G4double
);
65
void
SetNbOfDivisions
(
G4int
,
G4int
);
66
67
void
SetMagField
(
G4double
);
68
69
virtual
G4VPhysicalVolume
*
Construct
();
70
void
UpdateGeometry
();
71
72
public
:
73
74
G4int
GetNbOfAbsor
() {
return
fNbOfAbsor;}
75
G4Material
*
GetAbsorMaterial
(
G4int
i) {
return
fAbsorMaterial[i];};
76
G4double
GetAbsorThickness
(
G4int
i) {
return
fAbsorThickness[i];};
77
G4double
GetXfront
(
G4int
i) {
return
fXfront[i];};
78
79
G4double
GetAbsorSizeX
() {
return
fAbsorSizeX;};
80
G4double
GetAbsorSizeYZ
() {
return
fAbsorSizeYZ;};
81
82
G4int
GetNbOfDivisions
(
G4int
i) {
return
fNbOfDivisions[i];};
83
84
void
PrintParameters
();
85
86
private
:
87
88
G4int
fNbOfAbsor;
89
G4Material
* fAbsorMaterial [
MaxAbsor
];
90
G4double
fAbsorThickness[
MaxAbsor
];
91
G4double
fXfront[
MaxAbsor
];
92
93
G4int
fNbOfDivisions[
MaxAbsor
];
94
95
G4double
fAbsorSizeX;
96
G4double
fAbsorSizeYZ;
97
G4Material
* fDefaultMaterial;
98
99
G4VPhysicalVolume
* fPhysiWorld;
100
101
G4UniformMagField
* fMagField;
102
103
DetectorMessenger
* fDetectorMessenger;
104
105
private
:
106
107
void
DefineMaterials();
108
void
ComputeParameters();
109
G4VPhysicalVolume
* ConstructVolumes();
110
};
111
112
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
113
114
#endif
115
Generated on Sat May 25 2013 14:31:56 for Geant4 by
1.8.4