Ignore:
Timestamp:
Jun 18, 2010, 11:42:07 AM (15 years ago)
Author:
garnier
Message:

update geant4-09-04-beta-cand-01 interfaces-V09-03-09 vis-V09-03-08

Location:
trunk/source/geometry/volumes
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/geometry/volumes/History

    r1228 r1315  
    1 $Id: History,v 1.163 2009/11/06 11:35:03 gcosmo Exp $
     1$Id: History,v 1.170 2010/04/23 10:27:49 gcosmo Exp $
    22-------------------------------------------------------------------
    33
     
    1717     * Reverse chronological order (last date on top), please *
    1818     ----------------------------------------------------------
     19
     20Apr 23rd, 2010      G.Cosmo - geomvol-V09-03-06
     21- Corrected initialisation of dummy copy-ctor in G4EnhancedVecAllocator,
     22  fixing compilation problem on WIN32-VC.
     23
     24Apr 22nd, 2010      G.Cosmo - geomvol-V09-03-05
     25- Make use of specialized allocator for handling internal vector in
     26  G4NavigatorHistory, globally controlling the memory pool.
     27  Measured ~2% average run-time speed-up.
     28
     29Apr 15th, 2010      G.Cosmo - geomvol-V09-03-04
     30- Combine use of G4Allocator for vectors in G4NavigationHistory with use
     31  of assign().
     32
     33Apr 13th, 2010      G.Cosmo - geomvol-V09-03-03
     34- Added Reset() method to G4ReflectionFactory for clearing maps of
     35  constituent and reflected volumes.
     36
     37Apr 9th, 2010       G.Cosmo - geomvol-V09-03-02
     38- Use more elegant solution in G4NavigationHistory copy-ctor. Adopt assign().
     39
     40Mar 31th, 2010      G.Cosmo - geomvol-V09-03-01
     41- Restore original vector allocation, but adopt simple loop copy within
     42  copy-constructor. Should provide slight performance improvement and keep
     43  locality.
     44
     45Dec 11th, 2009      G.Cosmo - geomvol-V09-03-00
     46- Use G4Allocator for vectors in G4NavigationHistory, to optimise memory
     47  management and reduce fragmentation.
    1948
    2049Nov 6th, 2009       G.Cosmo - geomvol-V09-02-04
  • trunk/source/geometry/volumes/include/G4NavigationHistory.hh

    r1228 r1315  
    2525//
    2626//
    27 // $Id: G4NavigationHistory.hh,v 1.14 2009/11/03 09:15:51 gcosmo Exp $
    28 // GEANT4 tag $Name: geant4-09-03 $
     27// $Id: G4NavigationHistory.hh,v 1.18 2010/04/22 09:06:50 gcosmo Exp $
     28// GEANT4 tag $Name: geant4-09-04-beta-cand-01 $
    2929//
    3030// class G4NavigationHistory
     
    4747#include "geomdefs.hh"
    4848
    49 //#include "G4Allocator.hh"
    5049#include "G4AffineTransform.hh"
    5150#include "G4VPhysicalVolume.hh"
    5251#include "G4NavigationLevel.hh"
     52#include "G4EnhancedVecAllocator.hh"
    5353
    5454#include <vector>
     
    142142 private:
    143143
    144   std::vector<G4NavigationLevel> fNavHistory;
    145   //std::vector<G4NavigationLevel, G4Allocator<G4NavigationLevel> > fNavHistory;
     144  std::vector<G4NavigationLevel,
     145              G4EnhancedVecAllocator<G4NavigationLevel> > fNavHistory;
     146    // The geometrical tree; uses specialized allocator to optimize
     147    // memory handling and reduce possible fragmentation
    146148
    147149  G4int fStackDepth;
  • trunk/source/geometry/volumes/include/G4ReflectionFactory.hh

    r1228 r1315  
    2525//
    2626//
    27 // $Id: G4ReflectionFactory.hh,v 1.4 2008/11/13 09:33:20 gcosmo Exp $
    28 // GEANT4 tag $Name: geant4-09-03 $
     27// $Id: G4ReflectionFactory.hh,v 1.5 2010/04/13 07:19:01 gcosmo Exp $
     28// GEANT4 tag $Name: geant4-09-04-beta-cand-01 $
    2929//
    3030//
     
    181181      // been reflected, after that placement or replication is performed.
    182182
     183    void Reset(); 
     184      // Resets maps of constituent and reflected volumes.
     185      // To be used exclusively when volumes are removed from the stores.
     186
    183187  protected: 
    184188
  • trunk/source/geometry/volumes/src/G4NavigationHistory.cc

    r1228 r1315  
    2525//
    2626//
    27 // $Id: G4NavigationHistory.cc,v 1.11 2009/08/03 16:27:37 gcosmo Exp $
    28 // GEANT4 tag $Name: geant4-09-03 $
     27// $Id: G4NavigationHistory.cc,v 1.15 2010/04/22 09:06:50 gcosmo Exp $
     28// GEANT4 tag $Name: geant4-09-04-beta-cand-01 $
    2929//
    3030//
     
    3838#include "G4ios.hh"
    3939
     40// Initialise static data for the specialized memory pool
     41// for the internal STL vector of histories  ...
     42//
     43G4ChunkIndexType* G4AllocStats::allocStat = 0;
     44G4int             G4AllocStats::totSpace = 0;
     45G4int             G4AllocStats::numCat = 0;
     46
    4047G4NavigationHistory::G4NavigationHistory()
    4148  : fNavHistory(kHistoryMax), fStackDepth(0)
     
    4552
    4653G4NavigationHistory::G4NavigationHistory(const G4NavigationHistory &h)
    47   : fNavHistory(h.fNavHistory), fStackDepth(h.fStackDepth)
     54  : fStackDepth(h.fStackDepth)
    4855{
     56  fNavHistory.assign(h.fNavHistory.begin(),h.fNavHistory.end());
    4957}
    5058
  • trunk/source/geometry/volumes/src/G4ReflectionFactory.cc

    r1228 r1315  
    2525//
    2626//
    27 // $Id: G4ReflectionFactory.cc,v 1.9 2008/11/13 09:33:20 gcosmo Exp $
    28 // GEANT4 tag $Name: geant4-09-03 $
     27// $Id: G4ReflectionFactory.cc,v 1.10 2010/04/13 07:19:01 gcosmo Exp $
     28// GEANT4 tag $Name: geant4-09-04-beta-cand-01 $
    2929//
    3030//
     
    761761//_____________________________________________________________________________
    762762
     763void
     764G4ReflectionFactory::Reset()
     765{
     766  fConstituentLVMap.~map();
     767  fReflectedLVMap.~map();
     768}
     769
     770//_____________________________________________________________________________
     771
    763772void G4ReflectionFactory::PrintConstituentLVMap()
    764773{
Note: See TracChangeset for help on using the changeset viewer.