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
G4VPVDivisionFactory.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: G4VPVDivisionFactory.hh 66872 2013-01-15 01:25:57Z japost $
28
//
29
//
30
// class G4VPVDivisionFactory
31
//
32
// Class description:
33
//
34
// Abstract factory that defines interfaces for creating
35
// volumes divisions.
36
37
// Author: Ivana Hrivnacova, 4.5.2004 (Ivana.Hrivnacova@cern.ch)
38
// ------------------------------------------------------------------------
39
#ifndef G4VPVDIVISION_FACTORY_HH
40
#define G4VPVDIVISION_FACTORY_HH
41
42
#include "
geomdefs.hh
"
43
44
class
G4LogicalVolume
;
45
class
G4VPhysicalVolume
;
46
class
G4VPVParameterisation
;
47
48
class
G4VPVDivisionFactory
49
{
50
public
:
// with description
51
52
virtual
~G4VPVDivisionFactory
();
53
54
static
G4VPVDivisionFactory
*
Instance
();
55
56
virtual
G4VPhysicalVolume
*
CreatePVDivision
(
57
const
G4String
& pName,
58
G4LogicalVolume
* pLogical,
59
G4LogicalVolume
* pMother,
60
const
EAxis
pAxis,
61
const
G4int
nReplicas,
62
const
G4double
width
,
63
const
G4double
offset ) = 0;
64
// Create division - with number of divisions and width.
65
66
virtual
G4VPhysicalVolume
*
CreatePVDivision
(
67
const
G4String
& pName,
68
G4LogicalVolume
* pLogical,
69
G4LogicalVolume
* pMotherLogical,
70
const
EAxis
pAxis,
71
const
G4int
nReplicas,
72
const
G4double
offset ) = 0;
73
// Create division - with number of divisions.
74
75
virtual
G4VPhysicalVolume
*
CreatePVDivision
(
76
const
G4String
& pName,
77
G4LogicalVolume
* pLogical,
78
G4LogicalVolume
* pMotherLogical,
79
const
EAxis
pAxis,
80
const
G4double
width,
81
const
G4double
offset ) = 0;
82
// Create division - with width.
83
84
virtual
G4VPhysicalVolume
*
CreatePVDivision
(
85
const
G4String
& pName,
86
G4LogicalVolume
* pLogical,
87
G4LogicalVolume
* pMotherLogical,
88
const
G4VPVParameterisation
* param) = 0;
89
// Create division - with parameterisation.
90
91
virtual
G4bool
IsPVDivision
(
const
G4VPhysicalVolume
* pv)
const
= 0;
92
// Returns true if pv is division.
93
94
protected
:
95
96
G4VPVDivisionFactory
();
97
98
protected
:
99
100
static
G4ThreadLocal
G4VPVDivisionFactory
*
fgInstance
;
101
102
};
103
104
#endif
G4VPhysicalVolume
Definition:
G4VPhysicalVolume.hh:82
geomdefs.hh
G4VPVDivisionFactory::IsPVDivision
virtual G4bool IsPVDivision(const G4VPhysicalVolume *pv) const =0
width
#define width
G4ThreadLocal
#define G4ThreadLocal
Definition:
tls.hh:89
G4int
int G4int
Definition:
G4Types.hh:78
G4VPVDivisionFactory::Instance
static G4VPVDivisionFactory * Instance()
Definition:
G4VPVDivisionFactory.cc:40
G4VPVDivisionFactory::G4VPVDivisionFactory
G4VPVDivisionFactory()
Definition:
G4VPVDivisionFactory.cc:50
G4VPVDivisionFactory::fgInstance
static G4ThreadLocal G4VPVDivisionFactory * fgInstance
Definition:
G4VPVDivisionFactory.hh:100
G4bool
bool G4bool
Definition:
G4Types.hh:79
G4VPVDivisionFactory::~G4VPVDivisionFactory
virtual ~G4VPVDivisionFactory()
Definition:
G4VPVDivisionFactory.cc:59
G4LogicalVolume
Definition:
G4LogicalVolume.hh:190
G4VPVDivisionFactory::CreatePVDivision
virtual G4VPhysicalVolume * CreatePVDivision(const G4String &pName, G4LogicalVolume *pLogical, G4LogicalVolume *pMother, const EAxis pAxis, const G4int nReplicas, const G4double width, const G4double offset)=0
G4VPVDivisionFactory
Definition:
G4VPVDivisionFactory.hh:48
G4VPVParameterisation
Definition:
G4VPVParameterisation.hh:72
EAxis
EAxis
Definition:
geomdefs.hh:54
G4double
double G4double
Definition:
G4Types.hh:76
G4String
Definition:
G4String.hh:45
source
geant4.10.03.p03
source
geometry
management
include
G4VPVDivisionFactory.hh
Generated on Tue Nov 28 2017 21:43:56 for Geant4 by
1.8.5