Ignore:
Timestamp:
Jan 8, 2010, 11:56:51 AM (16 years ago)
Author:
garnier
Message:

update geant4.9.3 tag

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

Legend:

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

    r921 r1228  
    1 $Id: History,v 1.155 2008/11/13 09:35:03 gcosmo Exp $
     1$Id: History,v 1.163 2009/11/06 11:35:03 gcosmo Exp $
    22-------------------------------------------------------------------
    33
     
    1717     * Reverse chronological order (last date on top), please *
    1818     ----------------------------------------------------------
     19
     20Nov 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
     24Nov 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
     30Sep 22nd, 2009      G.Cosmo - geomvol-V09-02-02
     31- Added missing implementation for composing G4AssemblyVolume constructor.
     32
     33Sep 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
     39Aug 3rd, 2009       G.Cosmo - geomvol-V09-02-00
     40- Get rid of unnecessary call to Reset() in G4NavigationHistory destructor.
     41- Some code formatting...
    1942
    2043Nov 13th, 2008      G.Cosmo - geomvol-V09-01-03
  • trunk/source/geometry/volumes/include/G4AssemblyTriplet.hh

    r1058 r1228  
    2626//
    2727// $Id: G4AssemblyTriplet.hh,v 1.3 2007/11/16 16:20:25 gcosmo Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030//
  • trunk/source/geometry/volumes/include/G4AssemblyTriplet.icc

    r1058 r1228  
    2626//
    2727// $Id: G4AssemblyTriplet.icc,v 1.2 2006/06/29 18:56:49 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030//
  • trunk/source/geometry/volumes/include/G4AssemblyVolume.hh

    r1058 r1228  
    2626//
    2727// $Id: G4AssemblyVolume.hh,v 1.7 2006/06/29 18:56:51 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030//
  • trunk/source/geometry/volumes/include/G4AssemblyVolume.icc

    r1058 r1228  
    2626//
    2727// $Id: G4AssemblyVolume.icc,v 1.3 2006/06/29 18:56:53 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030//
  • trunk/source/geometry/volumes/include/G4GRSSolid.hh

    r1058 r1228  
    2626//
    2727// $Id: G4GRSSolid.hh,v 1.8 2006/06/29 18:56:55 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030//
  • trunk/source/geometry/volumes/include/G4GRSSolid.icc

    r1058 r1228  
    2626//
    2727// $Id: G4GRSSolid.icc,v 1.9 2006/06/29 18:56:57 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030//
  • trunk/source/geometry/volumes/include/G4GRSSolidHandle.hh

    r1058 r1228  
    2626//
    2727// $Id: G4GRSSolidHandle.hh,v 1.6 2006/06/29 18:56:59 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030// Class G4GRSSolidHandle
  • trunk/source/geometry/volumes/include/G4GRSVolume.hh

    r1058 r1228  
    2626//
    2727// $Id: G4GRSVolume.hh,v 1.8 2006/06/29 18:57:01 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030//
  • trunk/source/geometry/volumes/include/G4GRSVolume.icc

    r1058 r1228  
    2626//
    2727// $Id: G4GRSVolume.icc,v 1.10 2006/06/29 18:57:03 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030//
  • trunk/source/geometry/volumes/include/G4GRSVolumeHandle.hh

    r1058 r1228  
    2626//
    2727// $Id: G4GRSVolumeHandle.hh,v 1.6 2006/06/29 18:57:06 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030// Class G4GRSVolumeHandle
  • trunk/source/geometry/volumes/include/G4LogicalBorderSurface.hh

    r1058 r1228  
    2626//
    2727// $Id: G4LogicalBorderSurface.hh,v 1.17 2008/08/19 15:31:52 gcosmo Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030// class G4LogicalBorderSurface
  • trunk/source/geometry/volumes/include/G4LogicalBorderSurface.icc

    r1058 r1228  
    2626//
    2727// $Id: G4LogicalBorderSurface.icc,v 1.9 2006/06/29 18:57:11 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030//
  • trunk/source/geometry/volumes/include/G4LogicalSkinSurface.hh

    r1058 r1228  
    2626//
    2727// $Id: G4LogicalSkinSurface.hh,v 1.17 2008/08/19 15:31:52 gcosmo Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030// class G4LogicalSkinSurface
  • trunk/source/geometry/volumes/include/G4LogicalSkinSurface.icc

    r1058 r1228  
    2626//
    2727// $Id: G4LogicalSkinSurface.icc,v 1.9 2006/06/29 18:57:16 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030//
  • trunk/source/geometry/volumes/include/G4NavigationHistory.hh

    r1058 r1228  
    2525//
    2626//
    27 // $Id: G4NavigationHistory.hh,v 1.13 2006/06/29 18:57:18 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     27// $Id: G4NavigationHistory.hh,v 1.14 2009/11/03 09:15:51 gcosmo Exp $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030// class G4NavigationHistory
     
    4747#include "geomdefs.hh"
    4848
     49//#include "G4Allocator.hh"
    4950#include "G4AffineTransform.hh"
    5051#include "G4VPhysicalVolume.hh"
     
    141142 private:
    142143
    143   std::vector<G4NavigationLevel>  fNavHistory;
     144  std::vector<G4NavigationLevel> fNavHistory;
     145  //std::vector<G4NavigationLevel, G4Allocator<G4NavigationLevel> > fNavHistory;
    144146
    145147  G4int fStackDepth;
  • trunk/source/geometry/volumes/include/G4NavigationHistory.icc

    r1058 r1228  
    2525//
    2626//
    27 // $Id: G4NavigationHistory.icc,v 1.12 2006/06/29 18:57:20 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     27// $Id: G4NavigationHistory.icc,v 1.14 2009/08/04 08:27:20 gcosmo Exp $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030//
     
    3737G4NavigationHistory::operator=(const G4NavigationHistory &h)
    3838{
    39   if (&h == this) return *this;
     39  if (&h == this)  { return *this; }
    4040
    4141  // fNavHistory=h.fNavHistory;   // This works, but is very slow.
  • trunk/source/geometry/volumes/include/G4NavigationLevel.hh

    r1058 r1228  
    2525//
    2626//
    27 // $Id: G4NavigationLevel.hh,v 1.16 2006/06/29 18:57:22 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     27// $Id: G4NavigationLevel.hh,v 1.18 2009/08/04 08:27:20 gcosmo Exp $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030// class G4NavigationLevel
  • trunk/source/geometry/volumes/include/G4NavigationLevel.icc

    r1058 r1228  
    2525//
    2626//
    27 // $Id: G4NavigationLevel.icc,v 1.20 2006/06/29 18:57:25 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     27// $Id: G4NavigationLevel.icc,v 1.22 2009/08/04 08:27:20 gcosmo Exp $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030// 30.09.97 J.Apostolakis Initial version.
  • trunk/source/geometry/volumes/include/G4NavigationLevelRep.hh

    r1058 r1228  
    2626//
    2727// $Id: G4NavigationLevelRep.hh,v 1.9 2006/06/29 18:57:27 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030// class G4NavigationLevelRep
  • trunk/source/geometry/volumes/include/G4NavigationLevelRep.icc

    r1058 r1228  
    2626//
    2727// $Id: G4NavigationLevelRep.icc,v 1.14 2006/06/29 18:57:29 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030//  1 October 1997 J.Apostolakis Initial version.
  • trunk/source/geometry/volumes/include/G4PVParameterised.hh

    r1058 r1228  
    2626//
    2727// $Id: G4PVParameterised.hh,v 1.8 2007/04/11 07:56:38 gcosmo Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030//
  • trunk/source/geometry/volumes/include/G4PVPlacement.hh

    r1058 r1228  
    2626//
    2727// $Id: G4PVPlacement.hh,v 1.8 2007/04/11 07:56:38 gcosmo Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030//
  • trunk/source/geometry/volumes/include/G4PVReplica.hh

    r1058 r1228  
    2626//
    2727// $Id: G4PVReplica.hh,v 1.5 2006/06/29 18:57:36 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030//
  • trunk/source/geometry/volumes/include/G4ReflectionFactory.hh

    r1058 r1228  
    2626//
    2727// $Id: G4ReflectionFactory.hh,v 1.4 2008/11/13 09:33:20 gcosmo Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030//
  • trunk/source/geometry/volumes/include/G4TouchableHistory.hh

    r1058 r1228  
    2525//
    2626//
    27 // $Id: G4TouchableHistory.hh,v 1.8 2006/06/29 18:57:42 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     27// $Id: G4TouchableHistory.hh,v 1.11 2009/11/06 11:10:35 gcosmo Exp $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030//
     
    3434//
    3535// Object representing a touchable detector element, and its history in the
    36 // geomtrical hierarchy, including its net resultant local->global transform.
     36// geometrical hierarchy, including its net resultant local->global transform.
    3737
    3838// History:
     
    4545
    4646#include "G4NavigationHistory.hh"
     47#include "G4Allocator.hh"
    4748#include "G4LogicalVolume.hh"
    4849#include "G4ThreeVector.hh"
     
    6061    // It is for initialisation only. 
    6162
    62   virtual ~G4TouchableHistory();
     63 ~G4TouchableHistory();
    6364
    6465  inline G4VPhysicalVolume* GetVolume( G4int depth=0 ) const;
     
    7273    // Access methods for touchables with history
    7374
    74   virtual void  UpdateYourself( G4VPhysicalVolume*   pPhysVol,
    75                           const G4NavigationHistory* history=0 );
     75  void  UpdateYourself( G4VPhysicalVolume*   pPhysVol,
     76                        const G4NavigationHistory* history=0 );
    7677    // Update methods for touchables with history
    7778
     
    8182    // Should this method be "deprecated" ?
    8283    // 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".
    8388
    8489 private:
  • trunk/source/geometry/volumes/include/G4TouchableHistory.icc

    r1058 r1228  
    2525//
    2626//
    27 // $Id: G4TouchableHistory.icc,v 1.10 2006/12/07 14:26:28 japost Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     27// $Id: G4TouchableHistory.icc,v 1.13 2009/11/06 11:10:35 gcosmo Exp $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030//
     
    3232// ----------------------------------------------------------------------
    3333
    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
    5239
    5340inline
     
    10390G4int G4TouchableHistory::MoveUpHistory( G4int num_levels )
    10491{
    105   G4NavigationHistory* nHistory= &fhistory;
    106   G4int maxLevelsMove = nHistory->GetDepth();
     92  G4int maxLevelsMove = fhistory.GetDepth();
    10793  G4int minLevelsMove = 0;              // Cannot redescend today!
    10894                                        // Soon it will be possible
     
    117103    num_levels = minLevelsMove;
    118104  }
    119   nHistory->BackLevel( num_levels );
     105  fhistory.BackLevel( num_levels );
    120106
    121107  return num_levels;
     
    127113  return &fhistory;
    128114}
     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//
     119inline
     120void* G4TouchableHistory::operator new(size_t)
     121{
     122  return (void *) aTouchableHistoryAllocator.MallocSingle();
     123}
     124
     125inline
     126void G4TouchableHistory::operator delete(void *aTH)
     127{
     128  aTouchableHistoryAllocator.FreeSingle((G4TouchableHistory *) aTH);
     129}
     130
  • trunk/source/geometry/volumes/include/G4TouchableHistoryHandle.hh

    r1058 r1228  
    2626//
    2727// $Id: G4TouchableHistoryHandle.hh,v 1.6 2006/06/29 18:57:48 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030// Class G4TouchableHistoryHandle
  • trunk/source/geometry/volumes/src/G4AssemblyVolume.cc

    r1058 r1228  
    2525//
    2626//
    27 // $Id: G4AssemblyVolume.cc,v 1.11 2008/02/03 09:12:50 ivana Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     27// $Id: G4AssemblyVolume.cc,v 1.12 2009/09/22 13:58:48 gcosmo Exp $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030//
     
    4848//
    4949G4AssemblyVolume::G4AssemblyVolume()
    50 : fAssemblyID( 0 )
     50  : fAssemblyID( 0 )
    5151{
    5252  InstanceCountPlus();
    5353  SetAssemblyID( GetInstanceCount() );
    5454  SetImprintsCount( 0 );
     55}
     56
     57// Composing constructor
     58//
     59G4AssemblyVolume::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);
    5568}
    5669
  • trunk/source/geometry/volumes/src/G4GRSSolid.cc

    r1058 r1228  
    2626//
    2727// $Id: G4GRSSolid.cc,v 1.8 2006/06/29 18:57:53 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030//
  • trunk/source/geometry/volumes/src/G4GRSVolume.cc

    r1058 r1228  
    2626//
    2727// $Id: G4GRSVolume.cc,v 1.8 2006/06/29 18:57:55 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030//
  • trunk/source/geometry/volumes/src/G4LogicalBorderSurface.cc

    r1058 r1228  
    2626//
    2727// $Id: G4LogicalBorderSurface.cc,v 1.17 2008/08/19 15:31:52 gcosmo Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030// --------------------------------------------------------------------
  • trunk/source/geometry/volumes/src/G4LogicalSkinSurface.cc

    r1058 r1228  
    2626//
    2727// $Id: G4LogicalSkinSurface.cc,v 1.16 2008/08/19 15:31:52 gcosmo Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030// --------------------------------------------------------------------
  • trunk/source/geometry/volumes/src/G4NavigationHistory.cc

    r1058 r1228  
    2525//
    2626//
    27 // $Id: G4NavigationHistory.cc,v 1.10 2006/06/29 18:58:02 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     27// $Id: G4NavigationHistory.cc,v 1.11 2009/08/03 16:27:37 gcosmo Exp $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030//
     
    5151G4NavigationHistory::~G4NavigationHistory()
    5252{
    53   Reset();  // To delete all but one current entries!
    5453}
    5554
  • trunk/source/geometry/volumes/src/G4NavigationLevel.cc

    r1058 r1228  
    2525//
    2626//
    27 // $Id: G4NavigationLevel.cc,v 1.4 2006/06/29 18:58:04 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     27// $Id: G4NavigationLevel.cc,v 1.5 2009/08/03 16:13:19 gcosmo Exp $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030// 30.09.97 J.Apostolakis Initial version.
     
    7070G4NavigationLevel::~G4NavigationLevel()
    7171{
    72   if( fLevelRep->RemoveAReference() )
    73     delete fLevelRep;
     72  if( fLevelRep->RemoveAReference() )  { delete fLevelRep; }
    7473}
    7574
     
    7978  {
    8079    right.fLevelRep->AddAReference();
    81     if( fLevelRep->RemoveAReference() )
    82       delete fLevelRep;
     80    if( fLevelRep->RemoveAReference() )  { delete fLevelRep; }
    8381    fLevelRep = right.fLevelRep;
    8482  }
  • trunk/source/geometry/volumes/src/G4NavigationLevelRep.cc

    r1058 r1228  
    2626//
    2727// $Id: G4NavigationLevelRep.cc,v 1.2 2006/06/29 18:58:06 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030//  1 October 1997 J.Apostolakis Initial version.
  • trunk/source/geometry/volumes/src/G4PVParameterised.cc

    r1058 r1228  
    2525//
    2626//
    27 // $Id: G4PVParameterised.cc,v 1.10 2007/04/11 07:56:38 gcosmo Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     27// $Id: G4PVParameterised.cc,v 1.11 2009/09/21 10:27:05 gcosmo Exp $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030//
     
    226226        // Transform each point according to daughter's frame
    227227        //
    228         G4ThreeVector md = Td.Invert().TransformPoint(*pos);
     228        G4ThreeVector md = Td.Inverse().TransformPoint(*pos);
    229229
    230230        if (solidB->Inside(md)==kInside)
  • trunk/source/geometry/volumes/src/G4PVPlacement.cc

    r1058 r1228  
    2626//
    2727// $Id: G4PVPlacement.cc,v 1.16 2007/04/11 07:56:38 gcosmo Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030//
  • trunk/source/geometry/volumes/src/G4PVReplica.cc

    r1058 r1228  
    2626//
    2727// $Id: G4PVReplica.cc,v 1.7 2006/06/29 18:58:14 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030//
  • trunk/source/geometry/volumes/src/G4ReflectionFactory.cc

    r1058 r1228  
    2626//
    2727// $Id: G4ReflectionFactory.cc,v 1.9 2008/11/13 09:33:20 gcosmo Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030//
  • trunk/source/geometry/volumes/src/G4TouchableHistory.cc

    r1058 r1228  
    2525//
    2626//
    27 // $Id: G4TouchableHistory.cc,v 1.12 2006/06/29 18:58:20 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     27// $Id: G4TouchableHistory.cc,v 1.15 2009/11/06 11:10:35 gcosmo Exp $
     28// GEANT4 tag $Name: geant4-09-03 $
    2929//
    3030//
     
    3434
    3535#include "G4TouchableHistory.hh"
     36
     37G4Allocator<G4TouchableHistory> aTouchableHistoryAllocator;
     38
     39G4TouchableHistory::G4TouchableHistory()
     40  : frot(G4RotationMatrix()),
     41    ftlate(G4ThreeVector(0.,0.,0.)),
     42    fhistory()
     43{
     44   G4VPhysicalVolume* pPhysVol=0;
     45   fhistory.SetFirstEntry(pPhysVol);
     46}
     47
     48G4TouchableHistory::G4TouchableHistory( const G4NavigationHistory &history )
     49  : fhistory(history)
     50{
     51  G4AffineTransform tf(fhistory.GetTopTransform().Inverse());
     52  ftlate = tf.NetTranslation();
     53  frot = tf.NetRotation();
     54}
    3655
    3756G4TouchableHistory::~G4TouchableHistory()
Note: See TracChangeset for help on using the changeset viewer.