51 fGeneralUpperEnergyBounds(),
52 fCellToUpEnBoundLoWePairsMap(),
53 fCurrentIterator(fCellToUpEnBoundLoWePairsMap.end())
59 fGeneralUpperEnergyBounds(),
60 fCellToUpEnBoundLoWePairsMap(),
61 fCurrentIterator(fCellToUpEnBoundLoWePairsMap.end())
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());
121 if ( inWorldKnown ) {
162 const std::vector<G4double> &lowerWeights)
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];
196 Error(
"AddUpperEboundLowerWeightPairs() - Cell already in the store.");
199 Error(
"AddUpperEboundLowerWeightPairs() - Cell already in the store.");
208 std::less<G4double> > &enBounds)
211 Error(
"SetGeneralUpperEnergyBounds() - Energy bounds already set.");
247 G4cout <<
"G4IStore:: Creating new Parallel IStore " << ParallelWorldName <<
G4endl;
const G4VPhysicalVolume * fWorldVolume
std::set< G4double, std::less< G4double > > fGeneralUpperEnergyBounds
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
static G4ThreadLocal G4WeightWindowStore * fInstance