Import Geant4 10.5.0.beta source tree
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4Track.hh 94983 2016-01-13 11:02:33Z gcosmo $
|
||||
// $Id: G4Track.hh 110263 2018-05-17 14:28:14Z gcosmo $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
@@ -321,7 +321,7 @@ public: // With description
|
||||
mutable G4double prev_momentum;
|
||||
|
||||
G4bool is_OpticalPhoton;
|
||||
static G4ThreadLocal G4VelocityTable* velTable;
|
||||
static G4VelocityTable*& velTable();
|
||||
|
||||
G4bool useGivenVelocity;
|
||||
// do not calclulate velocity and just use current fVelocity
|
||||
|
||||
@@ -24,14 +24,14 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4Track.icc 94983 2016-01-13 11:02:33Z gcosmo $
|
||||
// $Id: G4Track.icc 110263 2018-05-17 14:28:14Z gcosmo $
|
||||
//
|
||||
//-----------------------------------------------------------------
|
||||
// Definitions of inline functions
|
||||
//-----------------------------------------------------------------
|
||||
// change GetMaterial 16 Feb. 2000 H.Kurashige
|
||||
|
||||
extern G4TRACK_DLL G4ThreadLocal G4Allocator<G4Track> *aTrackAllocator;
|
||||
extern G4TRACK_DLL G4Allocator<G4Track>*& aTrackAllocator();
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// To implement bi-directional association between G4Step and
|
||||
@@ -44,13 +44,13 @@ extern G4TRACK_DLL G4ThreadLocal G4Allocator<G4Track> *aTrackAllocator;
|
||||
|
||||
inline void* G4Track::operator new(size_t)
|
||||
{
|
||||
if (!aTrackAllocator) aTrackAllocator = new G4Allocator<G4Track>;
|
||||
return (void *) aTrackAllocator->MallocSingle();
|
||||
if (!aTrackAllocator()) aTrackAllocator() = new G4Allocator<G4Track>;
|
||||
return (void *) aTrackAllocator()->MallocSingle();
|
||||
}
|
||||
// Override "new" for "G4Allocator".
|
||||
|
||||
inline void G4Track::operator delete(void *aTrack)
|
||||
{ aTrackAllocator->FreeSingle((G4Track *) aTrack); }
|
||||
{ aTrackAllocator()->FreeSingle((G4Track *) aTrack); }
|
||||
// Override "delete" for "G4Allocator".
|
||||
|
||||
inline G4bool G4Track::operator==( const G4Track& trk)
|
||||
|
||||
Reference in New Issue
Block a user