Changeset 1228 for trunk/source/geometry/volumes
- Timestamp:
- Jan 8, 2010, 11:56:51 AM (16 years ago)
- Location:
- trunk/source/geometry/volumes
- Files:
-
- 41 edited
-
History (modified) (2 diffs)
-
include/G4AssemblyTriplet.hh (modified) (1 diff)
-
include/G4AssemblyTriplet.icc (modified) (1 diff)
-
include/G4AssemblyVolume.hh (modified) (1 diff)
-
include/G4AssemblyVolume.icc (modified) (1 diff)
-
include/G4GRSSolid.hh (modified) (1 diff)
-
include/G4GRSSolid.icc (modified) (1 diff)
-
include/G4GRSSolidHandle.hh (modified) (1 diff)
-
include/G4GRSVolume.hh (modified) (1 diff)
-
include/G4GRSVolume.icc (modified) (1 diff)
-
include/G4GRSVolumeHandle.hh (modified) (1 diff)
-
include/G4LogicalBorderSurface.hh (modified) (1 diff)
-
include/G4LogicalBorderSurface.icc (modified) (1 diff)
-
include/G4LogicalSkinSurface.hh (modified) (1 diff)
-
include/G4LogicalSkinSurface.icc (modified) (1 diff)
-
include/G4NavigationHistory.hh (modified) (3 diffs)
-
include/G4NavigationHistory.icc (modified) (2 diffs)
-
include/G4NavigationLevel.hh (modified) (1 diff)
-
include/G4NavigationLevel.icc (modified) (1 diff)
-
include/G4NavigationLevelRep.hh (modified) (1 diff)
-
include/G4NavigationLevelRep.icc (modified) (1 diff)
-
include/G4PVParameterised.hh (modified) (1 diff)
-
include/G4PVPlacement.hh (modified) (1 diff)
-
include/G4PVReplica.hh (modified) (1 diff)
-
include/G4ReflectionFactory.hh (modified) (1 diff)
-
include/G4TouchableHistory.hh (modified) (6 diffs)
-
include/G4TouchableHistory.icc (modified) (5 diffs)
-
include/G4TouchableHistoryHandle.hh (modified) (1 diff)
-
src/G4AssemblyVolume.cc (modified) (2 diffs)
-
src/G4GRSSolid.cc (modified) (1 diff)
-
src/G4GRSVolume.cc (modified) (1 diff)
-
src/G4LogicalBorderSurface.cc (modified) (1 diff)
-
src/G4LogicalSkinSurface.cc (modified) (1 diff)
-
src/G4NavigationHistory.cc (modified) (2 diffs)
-
src/G4NavigationLevel.cc (modified) (3 diffs)
-
src/G4NavigationLevelRep.cc (modified) (1 diff)
-
src/G4PVParameterised.cc (modified) (2 diffs)
-
src/G4PVPlacement.cc (modified) (1 diff)
-
src/G4PVReplica.cc (modified) (1 diff)
-
src/G4ReflectionFactory.cc (modified) (1 diff)
-
src/G4TouchableHistory.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/geometry/volumes/History
r921 r1228 1 $Id: History,v 1.1 55 2008/11/13 09:35:03 gcosmo Exp $1 $Id: History,v 1.163 2009/11/06 11:35:03 gcosmo Exp $ 2 2 ------------------------------------------------------------------- 3 3 … … 17 17 * Reverse chronological order (last date on top), please * 18 18 ---------------------------------------------------------- 19 20 Nov 6th, 2009 G.Cosmo - geomvol-V09-02-04 21 - Moved inline constructors to source for G4TouchableHistory, to avoid problems 22 of memory alignment in allocation. 23 24 Nov 3rd, 2009 G.Cosmo - geomvol-V09-02-03 25 - Use G4Allocator for dynamic allocation of G4TouchableHistory objects. 26 Should reduce the number of direct calls to malloc and memory fragmentation. 27 Measured an average improvement of 3-5% in CPU speed, and same memory 28 footprint. 29 30 Sep 22nd, 2009 G.Cosmo - geomvol-V09-02-02 31 - Added missing implementation for composing G4AssemblyVolume constructor. 32 33 Sep 21st, 2009 G.Cosmo - geomvol-V09-02-01 34 - Fix in G4PVParameterised::CheckOverlaps() to not modify daughter volume 35 transformation matrix for application to points in the daughter's frame. 36 Adopt Inverse() instead of Invert() in call to G4AffineTransform. 37 Addresses problem report #1078. 38 39 Aug 3rd, 2009 G.Cosmo - geomvol-V09-02-00 40 - Get rid of unnecessary call to Reset() in G4NavigationHistory destructor. 41 - Some code formatting... 19 42 20 43 Nov 13th, 2008 G.Cosmo - geomvol-V09-01-03 -
trunk/source/geometry/volumes/include/G4AssemblyTriplet.hh
r1058 r1228 26 26 // 27 27 // $Id: G4AssemblyTriplet.hh,v 1.3 2007/11/16 16:20:25 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // -
trunk/source/geometry/volumes/include/G4AssemblyTriplet.icc
r1058 r1228 26 26 // 27 27 // $Id: G4AssemblyTriplet.icc,v 1.2 2006/06/29 18:56:49 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // -
trunk/source/geometry/volumes/include/G4AssemblyVolume.hh
r1058 r1228 26 26 // 27 27 // $Id: G4AssemblyVolume.hh,v 1.7 2006/06/29 18:56:51 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // -
trunk/source/geometry/volumes/include/G4AssemblyVolume.icc
r1058 r1228 26 26 // 27 27 // $Id: G4AssemblyVolume.icc,v 1.3 2006/06/29 18:56:53 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // -
trunk/source/geometry/volumes/include/G4GRSSolid.hh
r1058 r1228 26 26 // 27 27 // $Id: G4GRSSolid.hh,v 1.8 2006/06/29 18:56:55 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // -
trunk/source/geometry/volumes/include/G4GRSSolid.icc
r1058 r1228 26 26 // 27 27 // $Id: G4GRSSolid.icc,v 1.9 2006/06/29 18:56:57 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // -
trunk/source/geometry/volumes/include/G4GRSSolidHandle.hh
r1058 r1228 26 26 // 27 27 // $Id: G4GRSSolidHandle.hh,v 1.6 2006/06/29 18:56:59 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // Class G4GRSSolidHandle -
trunk/source/geometry/volumes/include/G4GRSVolume.hh
r1058 r1228 26 26 // 27 27 // $Id: G4GRSVolume.hh,v 1.8 2006/06/29 18:57:01 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // -
trunk/source/geometry/volumes/include/G4GRSVolume.icc
r1058 r1228 26 26 // 27 27 // $Id: G4GRSVolume.icc,v 1.10 2006/06/29 18:57:03 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // -
trunk/source/geometry/volumes/include/G4GRSVolumeHandle.hh
r1058 r1228 26 26 // 27 27 // $Id: G4GRSVolumeHandle.hh,v 1.6 2006/06/29 18:57:06 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // Class G4GRSVolumeHandle -
trunk/source/geometry/volumes/include/G4LogicalBorderSurface.hh
r1058 r1228 26 26 // 27 27 // $Id: G4LogicalBorderSurface.hh,v 1.17 2008/08/19 15:31:52 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // class G4LogicalBorderSurface -
trunk/source/geometry/volumes/include/G4LogicalBorderSurface.icc
r1058 r1228 26 26 // 27 27 // $Id: G4LogicalBorderSurface.icc,v 1.9 2006/06/29 18:57:11 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // -
trunk/source/geometry/volumes/include/G4LogicalSkinSurface.hh
r1058 r1228 26 26 // 27 27 // $Id: G4LogicalSkinSurface.hh,v 1.17 2008/08/19 15:31:52 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // class G4LogicalSkinSurface -
trunk/source/geometry/volumes/include/G4LogicalSkinSurface.icc
r1058 r1228 26 26 // 27 27 // $Id: G4LogicalSkinSurface.icc,v 1.9 2006/06/29 18:57:16 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // -
trunk/source/geometry/volumes/include/G4NavigationHistory.hh
r1058 r1228 25 25 // 26 26 // 27 // $Id: G4NavigationHistory.hh,v 1.1 3 2006/06/29 18:57:18 gunterExp $28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$27 // $Id: G4NavigationHistory.hh,v 1.14 2009/11/03 09:15:51 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // class G4NavigationHistory … … 47 47 #include "geomdefs.hh" 48 48 49 //#include "G4Allocator.hh" 49 50 #include "G4AffineTransform.hh" 50 51 #include "G4VPhysicalVolume.hh" … … 141 142 private: 142 143 143 std::vector<G4NavigationLevel> fNavHistory; 144 std::vector<G4NavigationLevel> fNavHistory; 145 //std::vector<G4NavigationLevel, G4Allocator<G4NavigationLevel> > fNavHistory; 144 146 145 147 G4int fStackDepth; -
trunk/source/geometry/volumes/include/G4NavigationHistory.icc
r1058 r1228 25 25 // 26 26 // 27 // $Id: G4NavigationHistory.icc,v 1.1 2 2006/06/29 18:57:20 gunterExp $28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$27 // $Id: G4NavigationHistory.icc,v 1.14 2009/08/04 08:27:20 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // … … 37 37 G4NavigationHistory::operator=(const G4NavigationHistory &h) 38 38 { 39 if (&h == this) return *this;39 if (&h == this) { return *this; } 40 40 41 41 // fNavHistory=h.fNavHistory; // This works, but is very slow. -
trunk/source/geometry/volumes/include/G4NavigationLevel.hh
r1058 r1228 25 25 // 26 26 // 27 // $Id: G4NavigationLevel.hh,v 1.1 6 2006/06/29 18:57:22 gunterExp $28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$27 // $Id: G4NavigationLevel.hh,v 1.18 2009/08/04 08:27:20 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // class G4NavigationLevel -
trunk/source/geometry/volumes/include/G4NavigationLevel.icc
r1058 r1228 25 25 // 26 26 // 27 // $Id: G4NavigationLevel.icc,v 1.2 0 2006/06/29 18:57:25 gunterExp $28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$27 // $Id: G4NavigationLevel.icc,v 1.22 2009/08/04 08:27:20 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // 30.09.97 J.Apostolakis Initial version. -
trunk/source/geometry/volumes/include/G4NavigationLevelRep.hh
r1058 r1228 26 26 // 27 27 // $Id: G4NavigationLevelRep.hh,v 1.9 2006/06/29 18:57:27 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // class G4NavigationLevelRep -
trunk/source/geometry/volumes/include/G4NavigationLevelRep.icc
r1058 r1228 26 26 // 27 27 // $Id: G4NavigationLevelRep.icc,v 1.14 2006/06/29 18:57:29 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // 1 October 1997 J.Apostolakis Initial version. -
trunk/source/geometry/volumes/include/G4PVParameterised.hh
r1058 r1228 26 26 // 27 27 // $Id: G4PVParameterised.hh,v 1.8 2007/04/11 07:56:38 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // -
trunk/source/geometry/volumes/include/G4PVPlacement.hh
r1058 r1228 26 26 // 27 27 // $Id: G4PVPlacement.hh,v 1.8 2007/04/11 07:56:38 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // -
trunk/source/geometry/volumes/include/G4PVReplica.hh
r1058 r1228 26 26 // 27 27 // $Id: G4PVReplica.hh,v 1.5 2006/06/29 18:57:36 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // -
trunk/source/geometry/volumes/include/G4ReflectionFactory.hh
r1058 r1228 26 26 // 27 27 // $Id: G4ReflectionFactory.hh,v 1.4 2008/11/13 09:33:20 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // -
trunk/source/geometry/volumes/include/G4TouchableHistory.hh
r1058 r1228 25 25 // 26 26 // 27 // $Id: G4TouchableHistory.hh,v 1. 8 2006/06/29 18:57:42 gunterExp $28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$27 // $Id: G4TouchableHistory.hh,v 1.11 2009/11/06 11:10:35 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // … … 34 34 // 35 35 // Object representing a touchable detector element, and its history in the 36 // geom trical hierarchy, including its net resultant local->global transform.36 // geometrical hierarchy, including its net resultant local->global transform. 37 37 38 38 // History: … … 45 45 46 46 #include "G4NavigationHistory.hh" 47 #include "G4Allocator.hh" 47 48 #include "G4LogicalVolume.hh" 48 49 #include "G4ThreeVector.hh" … … 60 61 // It is for initialisation only. 61 62 62 virtual~G4TouchableHistory();63 ~G4TouchableHistory(); 63 64 64 65 inline G4VPhysicalVolume* GetVolume( G4int depth=0 ) const; … … 72 73 // Access methods for touchables with history 73 74 74 v irtual void UpdateYourself( G4VPhysicalVolume* pPhysVol,75 const G4NavigationHistory* history=0 );75 void UpdateYourself( G4VPhysicalVolume* pPhysVol, 76 const G4NavigationHistory* history=0 ); 76 77 // Update methods for touchables with history 77 78 … … 81 82 // Should this method be "deprecated" ? 82 83 // it is used now in G4Navigator::LocateGlobalPointAndSetup 84 85 inline void *operator new(size_t); 86 inline void operator delete(void *aTH); 87 // Override "new" and "delete" to use "G4Allocator". 83 88 84 89 private: -
trunk/source/geometry/volumes/include/G4TouchableHistory.icc
r1058 r1228 25 25 // 26 26 // 27 // $Id: G4TouchableHistory.icc,v 1.1 0 2006/12/07 14:26:28 japostExp $28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$27 // $Id: G4TouchableHistory.icc,v 1.13 2009/11/06 11:10:35 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // … … 32 32 // ---------------------------------------------------------------------- 33 33 34 inline 35 G4TouchableHistory::G4TouchableHistory() 36 : frot(G4RotationMatrix()), 37 ftlate(G4ThreeVector(0.,0.,0.)), 38 fhistory() 39 { 40 G4VPhysicalVolume* pPhysVol=0; 41 fhistory.SetFirstEntry(pPhysVol); 42 } 43 44 inline 45 G4TouchableHistory::G4TouchableHistory( const G4NavigationHistory &history ) 46 : fhistory(history) 47 { 48 G4AffineTransform tf(fhistory.GetTopTransform().Inverse()); 49 ftlate = tf.NetTranslation(); 50 frot = tf.NetRotation(); 51 } 34 #if defined G4GEOM_ALLOC_EXPORT 35 extern G4DLLEXPORT G4Allocator<G4TouchableHistory> aTouchableHistoryAllocator; 36 #else 37 extern G4DLLIMPORT G4Allocator<G4TouchableHistory> aTouchableHistoryAllocator; 38 #endif 52 39 53 40 inline … … 103 90 G4int G4TouchableHistory::MoveUpHistory( G4int num_levels ) 104 91 { 105 G4NavigationHistory* nHistory= &fhistory; 106 G4int maxLevelsMove = nHistory->GetDepth(); 92 G4int maxLevelsMove = fhistory.GetDepth(); 107 93 G4int minLevelsMove = 0; // Cannot redescend today! 108 94 // Soon it will be possible … … 117 103 num_levels = minLevelsMove; 118 104 } 119 nHistory->BackLevel( num_levels );105 fhistory.BackLevel( num_levels ); 120 106 121 107 return num_levels; … … 127 113 return &fhistory; 128 114 } 115 116 // There is no provision in case this class is subclassed. 117 // If it is subclassed, this will fail and may not give errors! 118 // 119 inline 120 void* G4TouchableHistory::operator new(size_t) 121 { 122 return (void *) aTouchableHistoryAllocator.MallocSingle(); 123 } 124 125 inline 126 void G4TouchableHistory::operator delete(void *aTH) 127 { 128 aTouchableHistoryAllocator.FreeSingle((G4TouchableHistory *) aTH); 129 } 130 -
trunk/source/geometry/volumes/include/G4TouchableHistoryHandle.hh
r1058 r1228 26 26 // 27 27 // $Id: G4TouchableHistoryHandle.hh,v 1.6 2006/06/29 18:57:48 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // Class G4TouchableHistoryHandle -
trunk/source/geometry/volumes/src/G4AssemblyVolume.cc
r1058 r1228 25 25 // 26 26 // 27 // $Id: G4AssemblyVolume.cc,v 1.1 1 2008/02/03 09:12:50 ivanaExp $28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$27 // $Id: G4AssemblyVolume.cc,v 1.12 2009/09/22 13:58:48 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // … … 48 48 // 49 49 G4AssemblyVolume::G4AssemblyVolume() 50 : fAssemblyID( 0 )50 : fAssemblyID( 0 ) 51 51 { 52 52 InstanceCountPlus(); 53 53 SetAssemblyID( GetInstanceCount() ); 54 54 SetImprintsCount( 0 ); 55 } 56 57 // Composing constructor 58 // 59 G4AssemblyVolume::G4AssemblyVolume( G4LogicalVolume* volume, 60 G4ThreeVector& translation, 61 G4RotationMatrix* rotation ) 62 : fAssemblyID( 0 ) 63 { 64 InstanceCountPlus(); 65 SetAssemblyID( GetInstanceCount() ); 66 SetImprintsCount( 0 ); 67 AddPlacedVolume(volume, translation, rotation); 55 68 } 56 69 -
trunk/source/geometry/volumes/src/G4GRSSolid.cc
r1058 r1228 26 26 // 27 27 // $Id: G4GRSSolid.cc,v 1.8 2006/06/29 18:57:53 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // -
trunk/source/geometry/volumes/src/G4GRSVolume.cc
r1058 r1228 26 26 // 27 27 // $Id: G4GRSVolume.cc,v 1.8 2006/06/29 18:57:55 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // -
trunk/source/geometry/volumes/src/G4LogicalBorderSurface.cc
r1058 r1228 26 26 // 27 27 // $Id: G4LogicalBorderSurface.cc,v 1.17 2008/08/19 15:31:52 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // -------------------------------------------------------------------- -
trunk/source/geometry/volumes/src/G4LogicalSkinSurface.cc
r1058 r1228 26 26 // 27 27 // $Id: G4LogicalSkinSurface.cc,v 1.16 2008/08/19 15:31:52 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // -------------------------------------------------------------------- -
trunk/source/geometry/volumes/src/G4NavigationHistory.cc
r1058 r1228 25 25 // 26 26 // 27 // $Id: G4NavigationHistory.cc,v 1.1 0 2006/06/29 18:58:02 gunterExp $28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$27 // $Id: G4NavigationHistory.cc,v 1.11 2009/08/03 16:27:37 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // … … 51 51 G4NavigationHistory::~G4NavigationHistory() 52 52 { 53 Reset(); // To delete all but one current entries!54 53 } 55 54 -
trunk/source/geometry/volumes/src/G4NavigationLevel.cc
r1058 r1228 25 25 // 26 26 // 27 // $Id: G4NavigationLevel.cc,v 1. 4 2006/06/29 18:58:04 gunterExp $28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$27 // $Id: G4NavigationLevel.cc,v 1.5 2009/08/03 16:13:19 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // 30.09.97 J.Apostolakis Initial version. … … 70 70 G4NavigationLevel::~G4NavigationLevel() 71 71 { 72 if( fLevelRep->RemoveAReference() ) 73 delete fLevelRep; 72 if( fLevelRep->RemoveAReference() ) { delete fLevelRep; } 74 73 } 75 74 … … 79 78 { 80 79 right.fLevelRep->AddAReference(); 81 if( fLevelRep->RemoveAReference() ) 82 delete fLevelRep; 80 if( fLevelRep->RemoveAReference() ) { delete fLevelRep; } 83 81 fLevelRep = right.fLevelRep; 84 82 } -
trunk/source/geometry/volumes/src/G4NavigationLevelRep.cc
r1058 r1228 26 26 // 27 27 // $Id: G4NavigationLevelRep.cc,v 1.2 2006/06/29 18:58:06 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // 1 October 1997 J.Apostolakis Initial version. -
trunk/source/geometry/volumes/src/G4PVParameterised.cc
r1058 r1228 25 25 // 26 26 // 27 // $Id: G4PVParameterised.cc,v 1.1 0 2007/04/11 07:56:38gcosmo Exp $28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$27 // $Id: G4PVParameterised.cc,v 1.11 2009/09/21 10:27:05 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // … … 226 226 // Transform each point according to daughter's frame 227 227 // 228 G4ThreeVector md = Td.Inver t().TransformPoint(*pos);228 G4ThreeVector md = Td.Inverse().TransformPoint(*pos); 229 229 230 230 if (solidB->Inside(md)==kInside) -
trunk/source/geometry/volumes/src/G4PVPlacement.cc
r1058 r1228 26 26 // 27 27 // $Id: G4PVPlacement.cc,v 1.16 2007/04/11 07:56:38 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // -
trunk/source/geometry/volumes/src/G4PVReplica.cc
r1058 r1228 26 26 // 27 27 // $Id: G4PVReplica.cc,v 1.7 2006/06/29 18:58:14 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // -
trunk/source/geometry/volumes/src/G4ReflectionFactory.cc
r1058 r1228 26 26 // 27 27 // $Id: G4ReflectionFactory.cc,v 1.9 2008/11/13 09:33:20 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // -
trunk/source/geometry/volumes/src/G4TouchableHistory.cc
r1058 r1228 25 25 // 26 26 // 27 // $Id: G4TouchableHistory.cc,v 1.1 2 2006/06/29 18:58:20 gunterExp $28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$27 // $Id: G4TouchableHistory.cc,v 1.15 2009/11/06 11:10:35 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-03 $ 29 29 // 30 30 // … … 34 34 35 35 #include "G4TouchableHistory.hh" 36 37 G4Allocator<G4TouchableHistory> aTouchableHistoryAllocator; 38 39 G4TouchableHistory::G4TouchableHistory() 40 : frot(G4RotationMatrix()), 41 ftlate(G4ThreeVector(0.,0.,0.)), 42 fhistory() 43 { 44 G4VPhysicalVolume* pPhysVol=0; 45 fhistory.SetFirstEntry(pPhysVol); 46 } 47 48 G4TouchableHistory::G4TouchableHistory( const G4NavigationHistory &history ) 49 : fhistory(history) 50 { 51 G4AffineTransform tf(fhistory.GetTopTransform().Inverse()); 52 ftlate = tf.NetTranslation(); 53 frot = tf.NetRotation(); 54 } 36 55 37 56 G4TouchableHistory::~G4TouchableHistory()
Note:
See TracChangeset
for help on using the changeset viewer.
