Geant4
10.03.p03
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
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: DetectorConstruction.hh 99442 2016-09-22 08:36:14Z gcosmo $
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
#include <vector>
40
41
class
G4VPhysicalVolume
;
42
class
G4LogicalVolume
;
43
class
G4Sphere
;
44
class
G4Material
;
45
class
DetectorMessenger
;
46
47
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
48
49
class
DetectorConstruction
:
public
G4VUserDetectorConstruction
50
{
51
public
:
52
53
DetectorConstruction
();
54
virtual
~DetectorConstruction
();
55
56
public
:
57
58
void
SetRadius
(
G4double
);
59
void
SetMaterial
(
G4String
);
60
void
SetNbOfLayers
(
G4int
nb);
61
62
virtual
G4VPhysicalVolume
*
Construct
();
63
64
public
:
65
66
G4double
GetAbsorRadius
() {
return
fAbsorRadius;};
67
G4Material
*
GetAbsorMaterial
() {
return
fAbsorMaterial;};
68
G4int
GetNbOfLayers
() {
return
fNbOfLayers;};
69
70
void
PrintParameters
();
71
void
DefineMaterials();
72
73
private
:
74
75
G4double
fAbsorRadius;
76
G4Material
* fAbsorMaterial;
77
G4int
fNbOfLayers;
78
G4double
fLayerThickness;
79
G4VPhysicalVolume
* fAbsor;
80
81
DetectorMessenger
* fDetectorMessenger;
82
83
std::vector<G4LogicalVolume*> fLVolumes;
84
std::vector<G4Sphere*> fSpheres;
85
86
};
87
88
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
89
90
#endif
91
DetectorConstruction::~DetectorConstruction
~DetectorConstruction()
Definition:
DetectorConstruction.cc:65
G4Sphere
Definition:
G4Sphere.hh:87
G4VPhysicalVolume
Definition:
G4VPhysicalVolume.hh:82
DetectorConstruction::Construct
G4VPhysicalVolume * Construct()
Definition:
DetectorConstruction.cc:70
G4Material
Definition:
G4Material.hh:120
DetectorConstruction::PrintParameters
void PrintParameters()
Definition:
DetectorConstruction.cc:173
DetectorConstruction::SetRadius
void SetRadius(G4double)
Definition:
DetectorConstruction.cc:172
DetectorConstruction::GetAbsorMaterial
G4Material * GetAbsorMaterial()
Definition:
DetectorConstruction.hh:67
G4int
int G4int
Definition:
G4Types.hh:78
DetectorConstruction::SetNbOfLayers
void SetNbOfLayers(G4int)
Definition:
DetectorConstruction.cc:334
G4VUserDetectorConstruction
Definition:
G4VUserDetectorConstruction.hh:50
DetectorConstruction::GetNbOfLayers
G4int GetNbOfLayers()
Definition:
DetectorConstruction.hh:68
DetectorConstruction::GetAbsorRadius
G4double GetAbsorRadius()
Definition:
DetectorConstruction.hh:66
G4VUserDetectorConstruction.hh
G4LogicalVolume
Definition:
G4LogicalVolume.hh:190
globals.hh
DetectorConstruction
Detector construction class to define materials and geometry.
Definition:
DetectorConstruction.hh:46
G4double
double G4double
Definition:
G4Types.hh:76
DetectorConstruction::DetectorConstruction
DetectorConstruction()
Definition:
DetectorConstruction.cc:54
DetectorMessenger
Definition:
DetectorMessenger.hh:43
DetectorConstruction::SetMaterial
void SetMaterial(G4String)
Definition:
DetectorConstruction.cc:183
G4String
Definition:
G4String.hh:45
source
geant4.10.03.p03
examples
extended
electromagnetic
TestEm12
include
DetectorConstruction.hh
Generated on Tue Nov 28 2017 21:43:40 for Geant4 by
1.8.5