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
G4GeometryCellWeight fCellToUpEnBoundLoWePairsMap
G4LogicalVolume * GetLogicalVolume() const
std::map< G4double, G4double, std::less< G4double > > G4UpperEnergyToLowerWeightMap
void SetInternalIterator(const G4GeometryCell &gCell) const
G4Navigator * GetNavigatorForTracking() const
G4VPhysicalVolume * GetParallelWorld(const G4String &worldName)
static G4WeightWindowStore * GetInstance()
static G4ThreadLocal G4WeightWindowStore * fInstance
virtual G4bool IsKnown(const G4GeometryCell &gCell) const
void AddUpperEboundLowerWeightPairs(const G4GeometryCell &gCell, const G4UpperEnergyToLowerWeightMap &enWeMap)
const G4VPhysicalVolume & GetPhysicalVolume() const
virtual const G4VPhysicalVolume * GetParallelWorldVolumePointer() const
std::set< G4double, std::less< G4double > > fGeneralUpperEnergyBounds
G4bool IsAncestor(const G4VPhysicalVolume *p) const
static G4TransportationManager * GetTransportationManager()
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
void SetParallelWorldVolume(G4String paraName)
void Error(const G4String &m) const
G4GLOB_DLL std::ostream G4cout
void AddLowerWeights(const G4GeometryCell &gCell, const std::vector< G4double > &lowerWeights)
void SetGeneralUpperEnergyBounds(const std::set< G4double, std::less< G4double > > &enBounds)
G4VPhysicalVolume * GetWorldVolume() const
virtual const G4VPhysicalVolume & GetWorldVolume() const
const G4String & GetName() const
virtual G4double GetLowerWeight(const G4GeometryCell &gCell, G4double partEnergy) const
G4GeometryCellWeight::const_iterator fCurrentIterator
G4bool IsInWorld(const G4VPhysicalVolume &) const