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
source
persistency
ascii
include
G4tgbVolume.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
//
27
// $Id: G4tgbVolume.hh 69803 2013-05-15 15:24:50Z gcosmo $
28
//
29
//
30
// class G4tgbVolume
31
//
32
// Class description:
33
//
34
// Class to manage the geometry info of any detector unit. The detector units
35
// created in this class are essentially transient copies of Geant4 physical
36
// volumes. Thus, they are characterized by a name and the parameters of a
37
// Geant4 physical volume.
38
// They have associated several detector positions, that can be instances of
39
// G4tgrPlace, G4tgrPlaceDivRep or G4tgrPlaceParameterisation.
40
// Each detector positioning is done inside a parent. As there can be several
41
// parents, we will write one parent for each detector position, even if that
42
// means that parents are repeated.
43
44
// History:
45
// - Created. P.Arce, CIEMAT (November 2007)
46
// -------------------------------------------------------------------------
47
48
#ifndef G4tgbVolume_h
49
#define G4tgbVolume_h
50
51
#include "
globals.hh
"
52
53
#include <vector>
54
#include <map>
55
56
#include "
G4tgrVolume.hh
"
57
#include "
geomdefs.hh
"
58
59
class
G4tgrPlace
;
60
class
G4tgrSolid
;
61
class
G4VSolid
;
62
class
G4LogicalVolume
;
63
class
G4VPhysicalVolume
;
64
class
G4AssemblyVolume
;
65
66
class
G4tgbVolume
67
{
68
public
:
// with description
69
70
G4tgbVolume
();
71
~G4tgbVolume
();
72
G4tgbVolume
(
G4tgrVolume
* vol);
73
74
void
ConstructG4Volumes
(
const
G4tgrPlace
* place,
75
const
G4LogicalVolume
* parentLV );
76
// Construct the G4VSolid, G4LogicalVolume and the G4VPhysicalVolume
77
// of copy 'copyNo'
78
79
G4VSolid
*
FindOrConstructG4Solid
(
const
G4tgrSolid
* vol);
80
// Construct the G4VSolid from the data of the corresponding G4tgrVolume.
81
// Allow to use data from another G4tgrVolume, needed by Boolean solids
82
// (that have to construct two solids and then do the Boolean operation)
83
84
G4LogicalVolume
*
ConstructG4LogVol
(
const
G4VSolid
* solid );
85
// Construct the G4LogicalVolume and then call the construction of
86
// volumes that are positioned inside this LV
87
88
G4VPhysicalVolume
*
ConstructG4PhysVol
(
const
G4tgrPlace
* place,
89
const
G4LogicalVolume
* currentLV,
90
const
G4LogicalVolume
* parentLV );
91
// Construct the G4VPhysicalVolume placing 'curentLV' with position
92
// given by the G4tgrPlace 'copyNo' inside 'parentLV'
93
94
void
SetCutsInRange
(
G4LogicalVolume
* logvol,
95
std::map<G4String,G4double> cuts );
96
void
SetCutsInEnergy
(
G4LogicalVolume
* logvol,
97
std::map<G4String,G4double> cuts );
98
99
100
void
CheckNoSolidParams
(
const
G4String
& solidType,
101
const
unsigned
int
NoParamExpected,
102
const
unsigned
int
NoParam );
103
// Before building a solid of type 'solydType', check if the number
104
// of paramenters is the expected one
105
106
G4VSolid
*
BuildSolidForDivision
(
G4VSolid
* parentSolid,
EAxis
axis );
107
108
const
G4String
&
GetName
()
const
{
return
theTgrVolume->
GetName
(); }
109
G4bool
GetVisibility
()
const
{
return
theTgrVolume->
GetVisibility
(); }
110
const
G4double
*
GetColour
()
const
{
return
theTgrVolume->
GetColour
(); }
111
112
private
:
113
114
G4tgrVolume
* theTgrVolume;
115
// The G4tgrVolume to which it corresponds
116
117
G4AssemblyVolume
* theG4AssemblyVolume;
118
};
119
120
#endif
Generated on Sat May 25 2013 14:33:24 for Geant4 by
1.8.4