54 fGeneralUpperEnergyBounds(),
55 fCellToUpEnBoundLoWePairsMap(),
56 fCurrentIterator(fCellToUpEnBoundLoWePairsMap.end())
62 fGeneralUpperEnergyBounds(),
63 fCellToUpEnBoundLoWePairsMap(),
64 fCurrentIterator(fCellToUpEnBoundLoWePairsMap.end())
77 Error(
"GetLowerWitgh() - Cell does not exist!");
84 for (G4UpperEnergyToLowerWeightMap::iterator it =
85 upEnLoWeiPairs.begin(); it != upEnLoWeiPairs.end(); it++) {
86 if (partEnergy < it->first) {
87 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());
124 if ( inWorldKnown ) {
165 const std::vector<G4double> &lowerWeights)
168 Error(
"AddLowerWeights() - No general upper energy limits set!");
171 Error(
"AddLowerWeights() - Cell already in the store.");
174 std::ostringstream err_mess;
175 err_mess <<
"AddLowerWeights() - Mismatch between "
176 <<
"number of lower weights (" << lowerWeights.size()
179 Error(err_mess.str());
183 for (std::set<
G4double, std::less<G4double> >::iterator it =
187 map[*it] = lowerWeights[i];
199 Error(
"AddUpperEboundLowerWeightPairs() - Cell already in the store.");
202 Error(
"AddUpperEboundLowerWeightPairs() - Cell already in the store.");
211 std::less<G4double> > &enBounds)
214 Error(
"SetGeneralUpperEnergyBounds() - Energy bounds already set.");
250 G4cout <<
"G4IStore:: Creating new Parallel IStore " << ParallelWorldName <<
G4endl;
const G4VPhysicalVolume * fWorldVolume
std::set< G4double, std::less< G4double > > fGeneralUpperEnergyBounds
static G4WeightWindowStore * fInstance
virtual ~G4WeightWindowStore()
G4bool IsAncestor(const G4VPhysicalVolume *p) const
void AddLowerWeights(const G4GeometryCell &gCell, const std::vector< G4double > &lowerWeights)
G4Navigator * GetNavigatorForTracking() const
virtual const G4VPhysicalVolume * GetParallelWorldVolumePointer() const
void Error(const G4String &m) const
G4bool IsInWorld(const G4VPhysicalVolume &) const
G4GeometryCellWeight::const_iterator fCurrentIterator
G4GLOB_DLL std::ostream G4cout
virtual G4bool IsKnown(const G4GeometryCell &gCell) const
const G4String & GetName() const
void SetInternalIterator(const G4GeometryCell &gCell) const
void AddUpperEboundLowerWeightPairs(const G4GeometryCell &gCell, const G4UpperEnergyToLowerWeightMap &enWeMap)
void SetParallelWorldVolume(G4String paraName)
virtual const G4VPhysicalVolume & GetWorldVolume() const
static G4WeightWindowStore * GetInstance()
std::map< G4double, G4double, std::less< G4double > > G4UpperEnergyToLowerWeightMap
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
static G4TransportationManager * GetTransportationManager()
const G4VPhysicalVolume & GetPhysicalVolume() const
G4VPhysicalVolume * GetParallelWorld(const G4String &worldName)
G4LogicalVolume * GetLogicalVolume() const
virtual G4double GetLowerWeight(const G4GeometryCell &gCell, G4double partEnergy) const
G4GeometryCellWeight fCellToUpEnBoundLoWePairsMap
void SetGeneralUpperEnergyBounds(const std::set< G4double, std::less< G4double > > &enBounds)
G4VPhysicalVolume * GetWorldVolume() const