Geant4_10
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
source
examples
advanced
hadrontherapy
include
HadrontherapyDetectorROGeometry.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
//
26
// This is the *BASIC* version of Hadrontherapy, a Geant4-based application
27
// See more at: http://g4advancedexamples.lngs.infn.it/Examples/hadrontherapy
28
//
29
// Visit the Hadrontherapy web site (http://www.lns.infn.it/link/Hadrontherapy) to request
30
// the *COMPLETE* version of this program, together with its documentation;
31
// Hadrontherapy (both basic and full version) are supported by the Italian INFN
32
// Institute in the framework of the MC-INFN Group
33
//
34
35
//The detectior is devided in voxels.
36
//
37
//
38
#ifndef HadrontherapyDetectorROGeometry_h
39
#define HadrontherapyDetectorROGeometry_h
40
41
//#include "G4VReadOutGeometry.hh"
42
#include "
G4VUserParallelWorld.hh
"
43
#include "
G4ThreeVector.hh
"
44
#include "
G4Box.hh
"
45
46
class
HadrontherapyDetectorROGeometry
:
public
G4VUserParallelWorld
47
{
48
public
:
49
HadrontherapyDetectorROGeometry
(
G4String
);
50
~HadrontherapyDetectorROGeometry
();
51
52
void
Initialize
(
G4ThreeVector
detectorPos,
53
G4double
detectorDimX,
54
G4double
detectorDimY,
55
G4double
detectorDimZ,
56
G4int
numberOfVoxelsX,
57
G4int
numberOfVoxelsY,
58
G4int
numberOfVoxelsZ);
59
60
void
UpdateROGeometry
();
61
62
virtual
void
Construct
();
63
virtual
void
ConstructSD
();
64
65
private
:
66
//Parameters used for the construction
67
G4ThreeVector
detectorToWorldPosition;
68
G4double
detectorSizeX;
69
G4double
detectorSizeY;
70
G4double
detectorSizeZ;
71
72
G4int
numberOfVoxelsAlongX;
73
G4int
numberOfVoxelsAlongY;
74
G4int
numberOfVoxelsAlongZ;
75
76
//Solids that are updated on-the fly
77
G4Box
* RODetector;
78
G4Box
* RODetectorXDivision;
79
G4Box
* RODetectorYDivision;
80
G4Box
* RODetectorZDivision;
81
82
//Logical volumes used for the re-build on-the-fly
83
G4LogicalVolume
* worldLogical;
84
G4LogicalVolume
* RODetectorLog;
85
G4LogicalVolume
* RODetectorXDivisionLog;
86
G4LogicalVolume
* RODetectorYDivisionLog;
87
G4LogicalVolume
* RODetectorZDivisionLog;
88
G4LogicalVolume
* sensitiveLogicalVolume;
89
90
91
G4bool
isBuilt;
92
G4bool
isInitialized;
93
};
94
#endif
HadrontherapyDetectorROGeometry::HadrontherapyDetectorROGeometry
HadrontherapyDetectorROGeometry(G4String)
Definition:
HadrontherapyDetectorROGeometry.cc:70
CLHEP::Hep3Vector
Definition:
ThreeVector.h:41
HadrontherapyDetectorROGeometry
Definition:
HadrontherapyDetectorROGeometry.hh:46
G4Box
Definition:
G4Box.hh:63
G4Box.hh
HadrontherapyDetectorROGeometry::Initialize
void Initialize(G4ThreeVector detectorPos, G4double detectorDimX, G4double detectorDimY, G4double detectorDimZ, G4int numberOfVoxelsX, G4int numberOfVoxelsY, G4int numberOfVoxelsZ)
Definition:
HadrontherapyDetectorROGeometry.cc:82
G4VUserParallelWorld
Definition:
G4VUserParallelWorld.hh:48
HadrontherapyDetectorROGeometry::~HadrontherapyDetectorROGeometry
~HadrontherapyDetectorROGeometry()
Definition:
HadrontherapyDetectorROGeometry.cc:196
G4int
int G4int
Definition:
G4Types.hh:78
HadrontherapyDetectorROGeometry::ConstructSD
virtual void ConstructSD()
Definition:
HadrontherapyDetectorROGeometry.cc:326
G4bool
bool G4bool
Definition:
G4Types.hh:79
G4LogicalVolume
Definition:
G4LogicalVolume.hh:187
HadrontherapyDetectorROGeometry::Construct
virtual void Construct()
Definition:
HadrontherapyDetectorROGeometry.cc:200
HadrontherapyDetectorROGeometry::UpdateROGeometry
void UpdateROGeometry()
Definition:
HadrontherapyDetectorROGeometry.cc:104
G4VUserParallelWorld.hh
G4double
double G4double
Definition:
G4Types.hh:76
G4ThreeVector.hh
G4String
Definition:
G4String.hh:45
Generated on Sat Dec 14 2013 14:32:59 for Geant4_10 by
1.8.5