46 ->GetNavigatorForTracking()->GetWorldVolume()),
47 fGeneralUpperEnergyBounds(),
48 fCellToUpEnBoundLoWePairsMap(),
49 fCurrentIterator(fCellToUpEnBoundLoWePairsMap.cend())
56 ->GetParallelWorld(ParallelWorldName)),
57 fGeneralUpperEnergyBounds(),
58 fCellToUpEnBoundLoWePairsMap(),
59 fCurrentIterator(fCellToUpEnBoundLoWePairsMap.cend())
76 Error(
"GetLowerWitgh() - Cell does not exist!");
82 for (
auto it = upEnLoWeiPairs.cbegin(); it != upEnLoWeiPairs.cend(); ++it)
84 if (partEnergy < it->first)
86 lowerWeight = it->second;
93 std::ostringstream err_mess;
94 err_mess <<
"GetLowerWitgh() - Couldn't find lower weight bound." <<
G4endl
95 <<
"Energy: " << partEnergy <<
".";
96 Error(err_mess.str());
165 const std::vector<G4double>& lowerWeights)
169 Error(
"AddLowerWeights() - No general upper energy limits set!");
173 Error(
"AddLowerWeights() - Cell already in the store.");
177 std::ostringstream err_mess;
178 err_mess <<
"AddLowerWeights() - Mismatch between "
179 <<
"number of lower weights (" << lowerWeights.size()
182 Error(err_mess.str());
189 map[*it] = lowerWeights[i];
201 Error(
"AddUpperEboundLowerWeightPairs() - Cell already in the store.");
205 Error(
"AddUpperEboundLowerWeightPairs() - Cell already in the store.");
213 std::less<G4double> >& enBounds)
217 Error(
"SetGeneralUpperEnergyBounds() - Energy bounds already set.");
253 G4cout <<
"G4IStore:: Creating new Parallel IStore "
254 << ParallelWorldName <<
G4endl;
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::map< G4double, G4double, std::less< G4double > > G4UpperEnergyToLowerWeightMap
G4GLOB_DLL std::ostream G4cout
const G4VPhysicalVolume & GetPhysicalVolume() const
G4bool IsAncestor(const G4VPhysicalVolume *p) const
G4VPhysicalVolume * GetWorldVolume() const
G4VPhysicalVolume * GetParallelWorld(const G4String &worldName)
static G4TransportationManager * GetTransportationManager()
G4Navigator * GetNavigatorForTracking() const
G4LogicalVolume * GetLogicalVolume() const
const G4String & GetName() const
void SetInternalIterator(const G4GeometryCell &gCell) const
void Error(const G4String &m) const
G4GeometryCellWeight fCellToUpEnBoundLoWePairsMap
void AddLowerWeights(const G4GeometryCell &gCell, const std::vector< G4double > &lowerWeights)
void SetParallelWorldVolume(const G4String ¶Name)
std::set< G4double, std::less< G4double > > fGeneralUpperEnergyBounds
virtual const G4VPhysicalVolume * GetParallelWorldVolumePointer() const
void SetGeneralUpperEnergyBounds(const std::set< G4double, std::less< G4double > > &enBounds)
virtual const G4VPhysicalVolume & GetWorldVolume() const
G4GeometryCellWeight::const_iterator fCurrentIterator
static G4ThreadLocal G4WeightWindowStore * fInstance
static G4WeightWindowStore * GetInstance()
const G4VPhysicalVolume * fWorldVolume
virtual G4bool IsKnown(const G4GeometryCell &gCell) const
virtual G4double GetLowerWeight(const G4GeometryCell &gCell, G4double partEnergy) const
void AddUpperEboundLowerWeightPairs(const G4GeometryCell &gCell, const G4UpperEnergyToLowerWeightMap &enWeMap)
G4bool IsInWorld(const G4VPhysicalVolume &) const