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
medical
electronScattering2
include
ElectronBenchmarkDetector.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
30
#ifndef ElectronBenchmarkDetector_h
31
#define ElectronBenchmarkDetector_h 1
32
33
#include "
G4VUserDetectorConstruction.hh
"
34
#include "
globals.hh
"
35
#include "
G4ThreeVector.hh
"
36
37
class
G4LogicalVolume
;
38
class
G4VPhysicalVolume
;
39
class
G4Material
;
40
class
G4VisAttributes
;
41
class
ElectronBenchmarkDetectorMessenger
;
42
43
class
ElectronBenchmarkDetector
:
public
G4VUserDetectorConstruction
44
{
45
public
:
46
47
ElectronBenchmarkDetector
();
48
virtual
~ElectronBenchmarkDetector
();
49
50
virtual
G4VPhysicalVolume
*
Construct
();
51
52
// Material Definition
53
void
DefineMaterials
();
54
55
// Geometry Definition
56
G4VPhysicalVolume
*
CreateWorld
();
57
void
CreateExitWindow
(
G4LogicalVolume
* logicWorld);
58
void
CreatePrimaryFoil
(
G4LogicalVolume
* logicWorld);
59
void
CreateMonitor
(
G4LogicalVolume
* logicWorld);
60
void
CreateHeliumBag
(
G4LogicalVolume
* logicWorld);
61
void
CreateScorer
(
G4LogicalVolume
* logicWorld);
62
G4VPhysicalVolume
*
CreateGeometry
();
63
void
UpdateGeometry
();
64
65
// Scorer Activation
66
void
ActivateScorer
();
67
68
// Command Interface
69
void
SetPrimFoilMaterial
(
G4String
matname);
70
void
SetPrimFoilThickness
(
G4double
thicknessPrimFoil);
71
72
private
:
73
// Exit Window
74
G4double
fPosWindow0;
75
G4double
fPosWindow1;
76
77
// Primary Foil
78
G4Material
* fMaterialPrimFoil;
79
G4double
fHalfThicknessPrimFoil;
80
G4double
fPosPrimFoil;
81
82
// Monitor Chambers
83
G4double
fPosMon0;
84
G4double
fPosMon1;
85
86
// Helium Bag
87
G4double
fPosBag0;
88
G4double
fPosBag1;
89
G4double
fPosHelium0;
90
G4double
fPosHelium1;
91
G4double
fThicknessRing;
92
93
// Scoring Plane
94
G4double
fPosScorer;
95
G4double
fThicknessScorer;
96
G4double
fWidthScorerRing;
97
G4LogicalVolume
* fScorerRingLog;
98
99
// Radii
100
G4double
fRadOverall;
101
G4double
fRadRingInner;
102
103
// Extra space remaining in world volume around apparatus
104
G4double
fPosDelta;
105
G4double
fRadDelta;
106
107
// World volume
108
G4LogicalVolume
* fLogWorld;
109
110
// Messenger
111
ElectronBenchmarkDetectorMessenger
* fMessenger;
112
113
// Visualization Attributes
114
G4VisAttributes
* fWorldVisAtt;
115
G4VisAttributes
* fWindowVisAtt;
116
G4VisAttributes
* fPrimFoilVisAtt;
117
G4VisAttributes
* fMonVisAtt;
118
G4VisAttributes
* fBagVisAtt;
119
G4VisAttributes
* fHeliumVisAtt;
120
G4VisAttributes
* fRingVisAtt;
121
G4VisAttributes
* fScorerVisAtt;
122
};
123
124
#endif
Generated on Sat May 25 2013 14:32:57 for Geant4 by
1.8.4