#include <G4WeightWindowStore.hh>
Definition at line 58 of file G4WeightWindowStore.hh.
 
  
  
      
        
          | G4WeightWindowStore::G4WeightWindowStore  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
explicitprotected   | 
  
 
Definition at line 49 of file G4WeightWindowStore.cc.
   51   fGeneralUpperEnergyBounds(),
 
   52   fCellToUpEnBoundLoWePairsMap(),
 
   53   fCurrentIterator(fCellToUpEnBoundLoWePairsMap.end())
 
virtual const G4VPhysicalVolume & GetWorldVolume() const 
 
static G4TransportationManager * GetTransportationManager()
 
 
 
 
  
  
      
        
          | G4WeightWindowStore::G4WeightWindowStore  | 
          ( | 
          const G4String &  | 
          ParallelWorldName | ) | 
           | 
         
       
   | 
  
explicitprotected   | 
  
 
Definition at line 57 of file G4WeightWindowStore.cc.
   59   fGeneralUpperEnergyBounds(),
 
   60   fCellToUpEnBoundLoWePairsMap(),
 
   61   fCurrentIterator(fCellToUpEnBoundLoWePairsMap.end())
 
static G4TransportationManager * GetTransportationManager()
 
 
 
 
  
  
      
        
          | G4WeightWindowStore::~G4WeightWindowStore  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
Definition at line 161 of file G4WeightWindowStore.cc.
  164   if (fGeneralUpperEnergyBounds.empty()) {
 
  165     Error(
"AddLowerWeights() - No general upper energy limits set!");
 
  168     Error(
"AddLowerWeights() - Cell already in the store.");
 
  170   if (lowerWeights.size() != fGeneralUpperEnergyBounds.size()) {
 
  171     std::ostringstream err_mess;
 
  172     err_mess << 
"AddLowerWeights() - Mismatch between " 
  173              << 
"number of lower weights (" << lowerWeights.size()
 
  174              << 
") and energy bounds (" << fGeneralUpperEnergyBounds.size()
 
  176     Error(err_mess.str());
 
  180   for (std::set<
G4double, std::less<G4double> >::iterator it = 
 
  181      fGeneralUpperEnergyBounds.begin(); 
 
  182        it != fGeneralUpperEnergyBounds.end();
 
  184     map[*it] = lowerWeights[i];
 
  187   fCellToUpEnBoundLoWePairsMap[gCell] = map;
 
virtual G4bool IsKnown(const G4GeometryCell &gCell) const 
 
std::map< G4double, G4double, std::less< G4double > > G4UpperEnergyToLowerWeightMap
 
 
 
 
Definition at line 192 of file G4WeightWindowStore.cc.
  196     Error(
"AddUpperEboundLowerWeightPairs() - Cell already in the store.");
 
  199     Error(
"AddUpperEboundLowerWeightPairs() - Cell already in the store.");
 
  201   fCellToUpEnBoundLoWePairsMap[gCell] = enWeMap;
 
virtual G4bool IsKnown(const G4GeometryCell &gCell) const 
 
 
 
 
      
        
          | void G4WeightWindowStore::Clear  | 
          ( | 
           | ) | 
           | 
        
      
 
 
Implements G4VWeightWindowStore.
Definition at line 68 of file G4WeightWindowStore.cc.
   71   SetInternalIterator(gCell);
 
   72   G4GeometryCellWeight::const_iterator gCellIterator = fCurrentIterator;
 
   73   if (gCellIterator ==  fCellToUpEnBoundLoWePairsMap.end()) {
 
   74     Error(
"GetLowerWitgh() - Cell does not exist!");
 
   78     fCurrentIterator->second;
 
   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());
 
std::map< G4double, G4double, std::less< G4double > > G4UpperEnergyToLowerWeightMap
 
 
 
 
  
  
      
        
          | const G4VPhysicalVolume * G4WeightWindowStore::GetParallelWorldVolumePointer  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
virtual   | 
  
 
 
Implements G4VWeightWindowStore.
Definition at line 117 of file G4WeightWindowStore.cc.
  121   if ( inWorldKnown ) {
 
  122     SetInternalIterator(gCell);
 
  123     inWorldKnown = (fCurrentIterator!=fCellToUpEnBoundLoWePairsMap.end());
 
const G4VPhysicalVolume & GetPhysicalVolume() const 
 
 
 
 
      
        
          | void G4WeightWindowStore::SetGeneralUpperEnergyBounds  | 
          ( | 
          const std::set< G4double, std::less< G4double > > &  | 
          enBounds | ) | 
           | 
        
      
 
Definition at line 207 of file G4WeightWindowStore.cc.
  210   if (!fGeneralUpperEnergyBounds.empty()) {
 
  211     Error(
"SetGeneralUpperEnergyBounds() - Energy bounds already set.");
 
  213   fGeneralUpperEnergyBounds = enBounds;
 
 
 
 
      
        
          | void G4WeightWindowStore::SetParallelWorldVolume  | 
          ( | 
          G4String  | 
          paraName | ) | 
           | 
        
      
 
Definition at line 141 of file G4WeightWindowStore.cc.
static G4TransportationManager * GetTransportationManager()
 
G4VPhysicalVolume * GetParallelWorld(const G4String &worldName)
 
 
 
 
      
        
          | void G4WeightWindowStore::SetWorldVolume  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 133 of file G4WeightWindowStore.cc.
G4Navigator * GetNavigatorForTracking() const 
 
G4GLOB_DLL std::ostream G4cout
 
const G4String & GetName() const 
 
static G4TransportationManager * GetTransportationManager()
 
G4VPhysicalVolume * GetWorldVolume() const 
 
 
 
 
The documentation for this class was generated from the following files: