Import Geant4 2.0.0 source tree
This commit is contained in:
@@ -5,13 +5,14 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4Track.icc,v 1.1 1999/10/06 01:21:50 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// $Id: G4Track.icc,v 1.5 2000/06/02 10:16:38 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//-----------------------------------------------------------------
|
||||
// Definitions of inline functions
|
||||
//-----------------------------------------------------------------
|
||||
|
||||
// change GetMaterial 16 Feb. 2000 H.Kurashige
|
||||
|
||||
// Operators
|
||||
extern G4Allocator<G4Track> aTrackAllocator;
|
||||
inline void* G4Track::operator new(size_t)
|
||||
@@ -93,22 +94,23 @@
|
||||
|
||||
// material
|
||||
inline G4Material* G4Track::GetMaterial() const
|
||||
{ return fpTouchable->GetVolume()->GetLogicalVolume()->GetMaterial(); }
|
||||
{ return fpStep->GetPreStepPoint()->GetMaterial(); }
|
||||
|
||||
inline G4Material* G4Track::GetNextMaterial() const
|
||||
{ return fpNextTouchable->GetVolume()->GetLogicalVolume()->GetMaterial(); }
|
||||
{ return fpStep->GetPostStepPoint()->GetMaterial(); }
|
||||
|
||||
|
||||
// touchable
|
||||
inline G4VTouchable* G4Track::GetTouchable() const
|
||||
inline const G4VTouchable* G4Track::GetTouchable() const
|
||||
{ return fpTouchable; }
|
||||
|
||||
inline void G4Track::SetTouchable(G4VTouchable* apValue)
|
||||
inline void G4Track::SetTouchable(const G4VTouchable* apValue)
|
||||
{ fpTouchable = apValue; }
|
||||
|
||||
inline G4VTouchable* G4Track::GetNextTouchable() const
|
||||
inline const G4VTouchable* G4Track::GetNextTouchable() const
|
||||
{ return fpNextTouchable; }
|
||||
|
||||
inline void G4Track::SetNextTouchable(G4VTouchable* apValue)
|
||||
inline void G4Track::SetNextTouchable(const G4VTouchable* apValue)
|
||||
{ fpNextTouchable = apValue; }
|
||||
|
||||
// kinetic energy
|
||||
@@ -225,7 +227,11 @@
|
||||
inline G4double G4Track::GetWeight() const
|
||||
{ return fWeight; }
|
||||
|
||||
|
||||
// user information
|
||||
inline G4VUserTrackInformation* G4Track::GetUserInformation() const
|
||||
{ return fpUserInformation; }
|
||||
inline void G4Track::SetUserInformation(G4VUserTrackInformation* aValue)
|
||||
{ fpUserInformation = aValue; }
|
||||
|
||||
|
||||
|
||||
@@ -236,11 +242,11 @@
|
||||
//-------------------------------------------------------------
|
||||
#include "G4Step.hh"
|
||||
|
||||
inline G4Step* G4Track::GetStep() const
|
||||
inline const G4Step* G4Track::GetStep() const
|
||||
{ return fpStep; }
|
||||
|
||||
inline void G4Track::SetStep(G4Step* aValue)
|
||||
{ fpStep = aValue; }
|
||||
inline void G4Track::SetStep(const G4Step* aValue)
|
||||
{ fpStep = (aValue); }
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user