#include <G4WeightWindowStore.hh>
Definition at line 58 of file G4WeightWindowStore.hh.
◆ G4WeightWindowStore() [1/2]
G4WeightWindowStore::G4WeightWindowStore |
( |
| ) |
|
|
explicitprotected |
Definition at line 49 of file G4WeightWindowStore.cc.
const G4VPhysicalVolume * fWorldVolume
std::set< G4double, std::less< G4double > > fGeneralUpperEnergyBounds
virtual const G4VPhysicalVolume & GetWorldVolume() const
G4GeometryCellWeight::const_iterator fCurrentIterator
static G4TransportationManager * GetTransportationManager()
G4GeometryCellWeight fCellToUpEnBoundLoWePairsMap
◆ G4WeightWindowStore() [2/2]
G4WeightWindowStore::G4WeightWindowStore |
( |
const G4String & |
ParallelWorldName | ) |
|
|
explicitprotected |
Definition at line 57 of file G4WeightWindowStore.cc.
const G4VPhysicalVolume * fWorldVolume
std::set< G4double, std::less< G4double > > fGeneralUpperEnergyBounds
G4GeometryCellWeight::const_iterator fCurrentIterator
static G4TransportationManager * GetTransportationManager()
G4GeometryCellWeight fCellToUpEnBoundLoWePairsMap
◆ ~G4WeightWindowStore()
G4WeightWindowStore::~G4WeightWindowStore |
( |
| ) |
|
|
protected |
◆ AddLowerWeights()
void G4WeightWindowStore::AddLowerWeights |
( |
const G4GeometryCell & |
gCell, |
|
|
const std::vector< G4double > & |
lowerWeights |
|
) |
| |
Definition at line 161 of file G4WeightWindowStore.cc.
165 Error(
"AddLowerWeights() - No general upper energy limits set!");
168 Error(
"AddLowerWeights() - Cell already in the store.");
171 std::ostringstream err_mess;
172 err_mess <<
"AddLowerWeights() - Mismatch between " 173 <<
"number of lower weights (" << lowerWeights.size()
176 Error(err_mess.str());
180 for (std::set<
G4double, std::less<G4double> >::iterator it =
184 map[*it] = lowerWeights[i];
std::set< G4double, std::less< G4double > > fGeneralUpperEnergyBounds
void Error(const G4String &m) const
std::map< G4double, G4double, std::less< G4double > > G4UpperEnergyToLowerWeightMap
G4GeometryCellWeight fCellToUpEnBoundLoWePairsMap
virtual G4bool IsKnown(const G4GeometryCell &gCell) const
◆ AddUpperEboundLowerWeightPairs()
Definition at line 192 of file G4WeightWindowStore.cc.
196 Error(
"AddUpperEboundLowerWeightPairs() - Cell already in the store.");
199 Error(
"AddUpperEboundLowerWeightPairs() - Cell already in the store.");
void Error(const G4String &m) const
G4GeometryCellWeight fCellToUpEnBoundLoWePairsMap
virtual G4bool IsKnown(const G4GeometryCell &gCell) const
◆ Clear()
void G4WeightWindowStore::Clear |
( |
| ) |
|
◆ Error()
void G4WeightWindowStore::Error |
( |
const G4String & |
m | ) |
const |
|
private |
Definition at line 217 of file G4WeightWindowStore.cc.
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
◆ GetInstance() [1/2]
◆ GetInstance() [2/2]
Definition at line 243 of file G4WeightWindowStore.cc.
247 G4cout <<
"G4IStore:: Creating new Parallel IStore " << ParallelWorldName <<
G4endl;
G4GLOB_DLL std::ostream G4cout
static G4ThreadLocal G4WeightWindowStore * fInstance
◆ GetLowerWeight()
Implements G4VWeightWindowStore.
Definition at line 68 of file G4WeightWindowStore.cc.
74 Error(
"GetLowerWitgh() - Cell does not exist!");
81 for (G4UpperEnergyToLowerWeightMap::iterator it =
82 upEnLoWeiPairs.begin(); it != upEnLoWeiPairs.end(); it++) {
83 if (partEnergy < it->first) {
84 lowerWeight = it->second;
90 std::ostringstream err_mess;
91 err_mess <<
"GetLowerWitgh() - Couldn't find lower weight bound." <<
G4endl 92 <<
"Energy: " << partEnergy <<
".";
93 Error(err_mess.str());
void Error(const G4String &m) const
G4GeometryCellWeight::const_iterator fCurrentIterator
std::map< G4double, G4double, std::less< G4double > > G4UpperEnergyToLowerWeightMap
G4GeometryCellWeight fCellToUpEnBoundLoWePairsMap
void SetInternalIterator(const G4GeometryCell &gCell) const
◆ GetParallelWorldVolumePointer()
const G4VPhysicalVolume * G4WeightWindowStore::GetParallelWorldVolumePointer |
( |
| ) |
const |
|
virtual |
◆ GetWorldVolume()
◆ IsInWorld()
Definition at line 107 of file G4WeightWindowStore.cc.
const G4VPhysicalVolume * fWorldVolume
G4bool IsAncestor(const G4VPhysicalVolume *p) const
G4LogicalVolume * GetLogicalVolume() const
◆ IsKnown()
Implements G4VWeightWindowStore.
Definition at line 117 of file G4WeightWindowStore.cc.
121 if ( inWorldKnown ) {
G4bool IsInWorld(const G4VPhysicalVolume &) const
G4GeometryCellWeight::const_iterator fCurrentIterator
G4GeometryCellWeight fCellToUpEnBoundLoWePairsMap
void SetInternalIterator(const G4GeometryCell &gCell) const
const G4VPhysicalVolume & GetPhysicalVolume() const
◆ SetGeneralUpperEnergyBounds()
void G4WeightWindowStore::SetGeneralUpperEnergyBounds |
( |
const std::set< G4double, std::less< G4double > > & |
enBounds | ) |
|
Definition at line 207 of file G4WeightWindowStore.cc.
211 Error(
"SetGeneralUpperEnergyBounds() - Energy bounds already set.");
std::set< G4double, std::less< G4double > > fGeneralUpperEnergyBounds
void Error(const G4String &m) const
◆ SetInternalIterator()
void G4WeightWindowStore::SetInternalIterator |
( |
const G4GeometryCell & |
gCell | ) |
const |
|
private |
Definition at line 101 of file G4WeightWindowStore.cc.
G4GeometryCellWeight::const_iterator fCurrentIterator
G4GeometryCellWeight fCellToUpEnBoundLoWePairsMap
◆ SetParallelWorldVolume()
void G4WeightWindowStore::SetParallelWorldVolume |
( |
G4String |
paraName | ) |
|
Definition at line 141 of file G4WeightWindowStore.cc.
const G4VPhysicalVolume * fWorldVolume
static G4TransportationManager * GetTransportationManager()
G4VPhysicalVolume * GetParallelWorld(const G4String &worldName)
◆ SetWorldVolume()
void G4WeightWindowStore::SetWorldVolume |
( |
| ) |
|
Definition at line 133 of file G4WeightWindowStore.cc.
const G4VPhysicalVolume * fWorldVolume
G4GLOB_DLL std::ostream G4cout
G4Navigator * GetNavigatorForTracking() const
static G4TransportationManager * GetTransportationManager()
const G4String & GetName() const
G4VPhysicalVolume * GetWorldVolume() const
◆ fCellToUpEnBoundLoWePairsMap
◆ fCurrentIterator
G4GeometryCellWeight::const_iterator G4WeightWindowStore::fCurrentIterator |
|
mutableprivate |
◆ fGeneralUpperEnergyBounds
std::set<G4double, std::less<G4double> > G4WeightWindowStore::fGeneralUpperEnergyBounds |
|
private |
◆ fInstance
◆ fWorldVolume
The documentation for this class was generated from the following files: