|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
G4WeightWindowStore is an concrete implementation of a weight window store according to the G4VWeightWindowStore interface. More...
#include <G4WeightWindowStore.hh>
Public Member Functions | |
| G4double | GetLowerWeight (const G4GeometryCell &gCell, G4double partEnergy) 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 | AddLowerWeights (const G4GeometryCell &gCell, const std::vector< G4double > &lowerWeights) |
| void | AddUpperEboundLowerWeightPairs (const G4GeometryCell &gCell, const G4UpperEnergyToLowerWeightMap &enWeMap) |
| void | SetGeneralUpperEnergyBounds (const std::set< G4double, std::less< G4double > > &enBounds) |
| Public Member Functions inherited from G4VWeightWindowStore | |
| G4VWeightWindowStore ()=default | |
| virtual | ~G4VWeightWindowStore ()=default |
Static Public Member Functions | |
| static G4WeightWindowStore * | GetInstance () |
| static G4WeightWindowStore * | GetInstance (const G4String &ParallelWorldName) |
G4WeightWindowStore is an concrete implementation of a weight window store according to the G4VWeightWindowStore interface.
Definition at line 50 of file G4WeightWindowStore.hh.
| void G4WeightWindowStore::AddLowerWeights | ( | const G4GeometryCell & | gCell, |
| const std::vector< G4double > & | lowerWeights ) |
Adds lower weights. Only if general upper energy bounds have been set.
Definition at line 154 of file G4WeightWindowStore.cc.
| void G4WeightWindowStore::AddUpperEboundLowerWeightPairs | ( | const G4GeometryCell & | gCell, |
| const G4UpperEnergyToLowerWeightMap & | enWeMap ) |
Sets upper energy - lower weight pairs for a cell.
Definition at line 185 of file G4WeightWindowStore.cc.
| void G4WeightWindowStore::Clear | ( | ) |
Clears the cells weights map.
Definition at line 122 of file G4WeightWindowStore.cc.
|
static |
Returns a pointer to the singleton instance of the class.
Definition at line 223 of file G4WeightWindowStore.cc.
Referenced by G4WeightWindowBiasing::ConstructProcess().
|
static |
Returns a pointer to the singleton instance of the class, given the name of the parallel world of reference.
Definition at line 237 of file G4WeightWindowStore.cc.
|
overridevirtual |
Derives a lower weight bound value of a "cell" addressed by a G4GeometryCell and the corresponding energy from the store.
Implements G4VWeightWindowStore.
Definition at line 59 of file G4WeightWindowStore.cc.
| const G4VPhysicalVolume * G4WeightWindowStore::GetParallelWorldVolumePointer | ( | ) | const |
Returns a pointer to the world volume of the "weightwindow" geometry.
Definition at line 148 of file G4WeightWindowStore.cc.
|
overridevirtual |
Returns a reference to the world volume of the "weightwindow" geometry.
Implements G4VWeightWindowStore.
Definition at line 143 of file G4WeightWindowStore.cc.
|
overridevirtual |
Returns true if 'gCell' is in the store, else false.
| [in] | gCell | The cell of reference. |
Implements G4VWeightWindowStore.
Definition at line 109 of file G4WeightWindowStore.cc.
Referenced by AddLowerWeights(), and AddUpperEboundLowerWeightPairs().
| void G4WeightWindowStore::SetGeneralUpperEnergyBounds | ( | const std::set< G4double, std::less< G4double > > & | enBounds | ) |
Sets the energy bounds.
Definition at line 201 of file G4WeightWindowStore.cc.
| void G4WeightWindowStore::SetParallelWorldVolume | ( | const G4String & | paraName | ) |
Sets a reference to parallel world volume of the "weightwindow" geometry.
Definition at line 136 of file G4WeightWindowStore.cc.
| void G4WeightWindowStore::SetWorldVolume | ( | ) |
Sets a reference to world volume of the "weightwindow" geometry.
Definition at line 127 of file G4WeightWindowStore.cc.