|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
G4IStore is a concrete implementation of an "importance store", as derived from G4VIStore. It is a singleton, using G4GeometryCellImportance as the container to store the "cells" together with the importance values. Giving a cell, the importance 0 is allowed as a flagging that no biasing should happen between this cell and its neighbors. If a cell is not known by the importance store no biasing should be applied between this cell and its nighbors. More...
#include <G4IStore.hh>
Public Member Functions | |
| G4double | GetImportance (const G4GeometryCell &gCell) const override |
| G4bool | IsKnown (const G4GeometryCell &gCell) const override |
| void | Clear () |
| void | SetWorldVolume () |
| void | SetParallelWorldVolume (const G4String ¶Name) |
| const G4VPhysicalVolume & | GetWorldVolume () const override |
| const G4VPhysicalVolume * | GetParallelWorldVolumePointer () const |
| void | AddImportanceGeometryCell (G4double importance, const G4GeometryCell &gCell) |
| void | AddImportanceGeometryCell (G4double importance, const G4VPhysicalVolume &, G4int aRepNum=0) |
| void | ChangeImportance (G4double importance, const G4GeometryCell &gCell) |
| void | ChangeImportance (G4double importance, const G4VPhysicalVolume &, G4int aRepNum=0) |
| G4double | GetImportance (const G4VPhysicalVolume &vol, G4int rpNum=0) const |
| Public Member Functions inherited from G4VIStore | |
| G4VIStore ()=default | |
| virtual | ~G4VIStore ()=default |
Static Public Member Functions | |
| static G4IStore * | GetInstance () |
| static G4IStore * | GetInstance (const G4String &ParallelWorldName) |
G4IStore is a concrete implementation of an "importance store", as derived from G4VIStore. It is a singleton, using G4GeometryCellImportance as the container to store the "cells" together with the importance values. Giving a cell, the importance 0 is allowed as a flagging that no biasing should happen between this cell and its neighbors. If a cell is not known by the importance store no biasing should be applied between this cell and its nighbors.
Definition at line 59 of file G4IStore.hh.
| void G4IStore::AddImportanceGeometryCell | ( | G4double | importance, |
| const G4GeometryCell & | gCell ) |
Methods to add a "cell" together with an importance value to the store.
Definition at line 107 of file G4IStore.cc.
Referenced by AddImportanceGeometryCell().
| void G4IStore::AddImportanceGeometryCell | ( | G4double | importance, |
| const G4VPhysicalVolume & | aVolume, | ||
| G4int | aRepNum = 0 ) |
Definition at line 126 of file G4IStore.cc.
| void G4IStore::ChangeImportance | ( | G4double | importance, |
| const G4GeometryCell & | gCell ) |
Methods to change an importance value of a "cell".
Definition at line 133 of file G4IStore.cc.
Referenced by ChangeImportance().
| void G4IStore::ChangeImportance | ( | G4double | importance, |
| const G4VPhysicalVolume & | aVolume, | ||
| G4int | aRepNum = 0 ) |
Definition at line 153 of file G4IStore.cc.
| void G4IStore::Clear | ( | ) |
Clears the cells importance store.
Definition at line 69 of file G4IStore.cc.
|
overridevirtual |
Returns the importance value of a "cell" from the store addressed by 'gCell'.
| [in] | gCell | The cell of reference. |
Implements G4VIStore.
Definition at line 177 of file G4IStore.cc.
| G4double G4IStore::GetImportance | ( | const G4VPhysicalVolume & | vol, |
| G4int | rpNum = 0 ) const |
Returns the importance weight, given the volume and replica number.
Definition at line 160 of file G4IStore.cc.
|
static |
Returns a pointer to the singleton instance of the class.
Definition at line 232 of file G4IStore.cc.
Referenced by G4ImportanceBiasing::ConstructProcess().
Returns a pointer to the singleton instance of the class, given the name of the parallel world of reference.
Definition at line 249 of file G4IStore.cc.
| const G4VPhysicalVolume * G4IStore::GetParallelWorldVolumePointer | ( | ) | const |
Returns a pointer to the world volume of the "importance" geometry.
Definition at line 97 of file G4IStore.cc.
|
overridevirtual |
Returns a reference to the world volume of the "importance" geometry.
Implements G4VIStore.
Definition at line 92 of file G4IStore.cc.
|
overridevirtual |
Returns true if 'gCell' is in the store, else false.
| [in] | gCell | The cell of reference. |
Implements G4VIStore.
Definition at line 197 of file G4IStore.cc.
| void G4IStore::SetParallelWorldVolume | ( | const G4String & | paraName | ) |
Sets a reference to parallel world volume of the "importance" geometry.
Definition at line 83 of file G4IStore.cc.
| void G4IStore::SetWorldVolume | ( | ) |
Sets a reference to world volume of the "importance" geometry.
Definition at line 74 of file G4IStore.cc.