Changeset 1228 for trunk/source/geometry/volumes/src
- Timestamp:
- Jan 8, 2010, 11:56:51 AM (16 years ago)
- Location:
- trunk/source/geometry/volumes/src
- Files:
-
- 13 edited
-
G4AssemblyVolume.cc (modified) (2 diffs)
-
G4GRSSolid.cc (modified) (1 diff)
-
G4GRSVolume.cc (modified) (1 diff)
-
G4LogicalBorderSurface.cc (modified) (1 diff)
-
G4LogicalSkinSurface.cc (modified) (1 diff)
-
G4NavigationHistory.cc (modified) (2 diffs)
-
G4NavigationLevel.cc (modified) (3 diffs)
-
G4NavigationLevelRep.cc (modified) (1 diff)
-
G4PVParameterised.cc (modified) (2 diffs)
-
G4PVPlacement.cc (modified) (1 diff)
-
G4PVReplica.cc (modified) (1 diff)
-
G4ReflectionFactory.cc (modified) (1 diff)
-
G4TouchableHistory.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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.
