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
geometry
biasing
include
G4IStore.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$
28
//
29
// ----------------------------------------------------------------------
30
// Class G4IStore
31
//
32
// Class description:
33
//
34
// An implementation of a "importance store" with the interface
35
// G4VIStore. See description in G4VIStore.
36
// This implementation uses G4GeometryCellImportance as the container
37
// to store the "cells" together with the importance values.
38
// Giving a cell the importance 0 is allowed as
39
// a flagging that no biasing should happen between this
40
// cell and it's neighbors
41
// If a cell is not known by the importance store no biasing
42
// should be applied between this cell and it's nighbors.
43
44
// Author: Michael Dressel (Michael.Dressel@cern.ch)
45
// ----------------------------------------------------------------------
46
#ifndef G4IStore_hh
47
#define G4IStore_hh G4IStore_hh
48
49
#include "
G4VIStore.hh
"
50
#include "
G4GeometryCellImportance.hh
"
51
52
class
G4IStore
:
public
G4VIStore
53
{
54
55
public
:
// with description
56
57
explicit
G4IStore
(
const
G4VPhysicalVolume
&worldvolume);
58
// initialise the importance store for the given geometry
59
60
virtual
~G4IStore
();
61
// destruct
62
63
virtual
G4double
GetImportance
(
const
G4GeometryCell
&gCell)
const
;
64
// derive a importance value of a "cell" addresed by a G4GeometryCell
65
// from the store.
66
67
virtual
G4bool
IsKnown
(
const
G4GeometryCell
&gCell)
const
;
68
// returns true if the gCell is in the store, else false
69
70
71
virtual
const
G4VPhysicalVolume
&
GetWorldVolume
()
const
;
72
// return a reference to the wolrd volume of the
73
// "importance" geometry
74
75
void
AddImportanceGeometryCell
(
G4double
importance,
76
const
G4GeometryCell
&gCell);
77
void
AddImportanceGeometryCell
(
G4double
importance,
78
const
G4VPhysicalVolume
&,
79
G4int
aRepNum = 0);
80
// Add a "cell" together with a importance value to the store.
81
82
void
ChangeImportance
(
G4double
importance,
83
const
G4GeometryCell
&gCell);
84
void
ChangeImportance
(
G4double
importance,
85
const
G4VPhysicalVolume
&,
86
G4int
aRepNum = 0);
87
// Change a importance value of a "cell".
88
89
G4double
GetImportance
(
const
G4VPhysicalVolume
&,
90
G4int
aRepNum = 0)
const
;
91
92
private
:
93
94
G4bool
IsInWorld(
const
G4VPhysicalVolume
&)
const
;
95
void
SetInternalIterator(
const
G4GeometryCell
&gCell)
const
;
96
void
Error(
const
G4String
&
m
)
const
;
97
98
private
:
99
100
const
G4VPhysicalVolume
&fWorldVolume;
101
G4GeometryCellImportance
fGeometryCelli;
102
103
mutable
G4GeometryCellImportance::const_iterator fCurrentIterator;
104
};
105
106
#endif
Generated on Sat May 25 2013 14:33:09 for Geant4 by
1.8.4