Import Geant4 10.7.0 source tree
This commit is contained in:
+336
-181
@@ -23,12 +23,11 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// G4Track inline methods implementation
|
||||
//
|
||||
//
|
||||
//-----------------------------------------------------------------
|
||||
// Definitions of inline functions
|
||||
//-----------------------------------------------------------------
|
||||
// change GetMaterial 16 Feb. 2000 H.Kurashige
|
||||
// Author: Katsuya Amako, KEK - 1996
|
||||
// Revisions: Hisaya Kurashige, 1998-2011
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
extern G4TRACK_DLL G4Allocator<G4Track>*& aTrackAllocator();
|
||||
|
||||
@@ -39,281 +38,437 @@ extern G4TRACK_DLL G4Allocator<G4Track>*& aTrackAllocator();
|
||||
//-------------------------------------------------------------
|
||||
#include "G4Step.hh"
|
||||
|
||||
// Operators
|
||||
inline void* G4Track::operator new(std::size_t)
|
||||
{
|
||||
if(aTrackAllocator() == nullptr)
|
||||
{
|
||||
aTrackAllocator() = new G4Allocator<G4Track>;
|
||||
}
|
||||
return (void*) aTrackAllocator()->MallocSingle();
|
||||
}
|
||||
|
||||
inline void* G4Track::operator new(size_t)
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
||||
inline void G4Track::operator delete(void *aTrack)
|
||||
{ aTrackAllocator()->FreeSingle((G4Track *) aTrack); }
|
||||
// Override "delete" for "G4Allocator".
|
||||
inline G4bool G4Track::operator==(const G4Track& trk)
|
||||
{
|
||||
return (this == &trk);
|
||||
}
|
||||
|
||||
inline G4bool G4Track::operator==( const G4Track& trk)
|
||||
{ return (this==&trk); }
|
||||
// Define "==" operator because "G4TrackVector" uses
|
||||
// "RWPtrOrderdVector" which requires this.
|
||||
inline G4bool G4Track::operator!=(const G4Track& trk)
|
||||
{
|
||||
return (this != &trk);
|
||||
}
|
||||
|
||||
// Get/Set functions
|
||||
// dynamic particle
|
||||
inline const G4DynamicParticle* G4Track::GetDynamicParticle() const
|
||||
{ return fpDynamicParticle; }
|
||||
inline const G4DynamicParticle* G4Track::GetDynamicParticle() const
|
||||
{
|
||||
return fpDynamicParticle;
|
||||
}
|
||||
|
||||
// particle definition
|
||||
inline G4ParticleDefinition* G4Track::GetDefinition() const
|
||||
{ return fpDynamicParticle->GetDefinition(); }
|
||||
inline G4ParticleDefinition* G4Track::GetDefinition() const
|
||||
{
|
||||
return fpDynamicParticle->GetDefinition();
|
||||
}
|
||||
|
||||
// particle definition
|
||||
inline const G4ParticleDefinition* G4Track::GetParticleDefinition() const
|
||||
{ return fpDynamicParticle->GetParticleDefinition(); }
|
||||
inline const G4ParticleDefinition* G4Track::GetParticleDefinition() const
|
||||
{
|
||||
return fpDynamicParticle->GetParticleDefinition();
|
||||
}
|
||||
|
||||
// parent track ID
|
||||
inline G4int G4Track::GetParentID() const
|
||||
{ return fParentID; }
|
||||
inline G4int G4Track::GetParentID() const
|
||||
{
|
||||
return fParentID;
|
||||
}
|
||||
|
||||
inline void G4Track::SetParentID(const G4int aValue)
|
||||
{ fParentID = aValue; }
|
||||
inline void G4Track::SetParentID(const G4int aValue)
|
||||
{
|
||||
fParentID = aValue;
|
||||
}
|
||||
|
||||
// current track ID
|
||||
inline G4int G4Track::GetTrackID() const
|
||||
{ return fTrackID; }
|
||||
inline G4int G4Track::GetTrackID() const
|
||||
{
|
||||
return fTrackID;
|
||||
}
|
||||
|
||||
inline void G4Track::SetTrackID(const G4int aValue)
|
||||
{ fTrackID = aValue; }
|
||||
inline void G4Track::SetTrackID(const G4int aValue)
|
||||
{
|
||||
fTrackID = aValue;
|
||||
}
|
||||
|
||||
// position
|
||||
inline const G4ThreeVector& G4Track::GetPosition() const
|
||||
{ return fPosition; }
|
||||
inline const G4ThreeVector& G4Track::GetPosition() const
|
||||
{
|
||||
return fPosition;
|
||||
}
|
||||
|
||||
inline void G4Track::SetPosition(const G4ThreeVector& aValue)
|
||||
{ fPosition = aValue; }
|
||||
inline void G4Track::SetPosition(const G4ThreeVector& aValue)
|
||||
{
|
||||
fPosition = aValue;
|
||||
}
|
||||
|
||||
// global time
|
||||
inline G4double G4Track::GetGlobalTime() const
|
||||
{ return fGlobalTime; }
|
||||
inline G4double G4Track::GetGlobalTime() const
|
||||
{
|
||||
return fGlobalTime;
|
||||
}
|
||||
|
||||
inline void G4Track::SetGlobalTime(const G4double aValue)
|
||||
{ fGlobalTime = aValue; }
|
||||
// Time since the event in which the track belongs is created.
|
||||
inline void G4Track::SetGlobalTime(const G4double aValue)
|
||||
{
|
||||
fGlobalTime = aValue;
|
||||
}
|
||||
|
||||
// local time
|
||||
inline G4double G4Track::GetLocalTime() const
|
||||
{ return fLocalTime; }
|
||||
inline G4double G4Track::GetLocalTime() const
|
||||
{
|
||||
return fLocalTime;
|
||||
}
|
||||
|
||||
inline void G4Track::SetLocalTime(const G4double aValue)
|
||||
{ fLocalTime = aValue; }
|
||||
// Time since the current track is created.
|
||||
inline void G4Track::SetLocalTime(const G4double aValue)
|
||||
{
|
||||
fLocalTime = aValue;
|
||||
}
|
||||
|
||||
// proper time
|
||||
inline G4double G4Track::GetProperTime() const
|
||||
{ return fpDynamicParticle->GetProperTime(); }
|
||||
inline G4double G4Track::GetProperTime() const
|
||||
{
|
||||
return fpDynamicParticle->GetProperTime();
|
||||
}
|
||||
|
||||
inline void G4Track::SetProperTime(const G4double aValue)
|
||||
{ fpDynamicParticle->SetProperTime(aValue); }
|
||||
// Proper time of the current track
|
||||
inline void G4Track::SetProperTime(const G4double aValue)
|
||||
{
|
||||
fpDynamicParticle->SetProperTime(aValue);
|
||||
}
|
||||
|
||||
// velocity
|
||||
inline G4double G4Track::GetVelocity() const
|
||||
{ return (useGivenVelocity) ? fVelocity :
|
||||
((!is_OpticalPhoton) ? CLHEP::c_light*fpDynamicParticle->GetBeta() :
|
||||
CalculateVelocityForOpticalPhoton());
|
||||
}
|
||||
inline G4double G4Track::GetVelocity() const
|
||||
{
|
||||
return (useGivenVelocity) ? fVelocity
|
||||
: ((!is_OpticalPhoton)
|
||||
? CLHEP::c_light * fpDynamicParticle->GetBeta()
|
||||
: CalculateVelocityForOpticalPhoton());
|
||||
}
|
||||
|
||||
inline G4double G4Track::CalculateVelocity() const
|
||||
{
|
||||
return GetVelocity();
|
||||
}
|
||||
inline G4double G4Track::CalculateVelocity() const
|
||||
{
|
||||
return GetVelocity();
|
||||
}
|
||||
|
||||
inline void G4Track::SetVelocity(G4double val)
|
||||
{ fVelocity = val; }
|
||||
inline void G4Track::SetVelocity(G4double val)
|
||||
{
|
||||
fVelocity = val;
|
||||
}
|
||||
|
||||
inline G4bool G4Track::UseGivenVelocity() const
|
||||
{ return useGivenVelocity;}
|
||||
inline G4bool G4Track::UseGivenVelocity() const
|
||||
{
|
||||
return useGivenVelocity;
|
||||
}
|
||||
|
||||
inline void G4Track::UseGivenVelocity(G4bool val)
|
||||
{ useGivenVelocity = val;}
|
||||
inline void G4Track::UseGivenVelocity(G4bool val)
|
||||
{
|
||||
useGivenVelocity = val;
|
||||
}
|
||||
|
||||
// volume
|
||||
inline G4VPhysicalVolume* G4Track::GetVolume() const
|
||||
{ return (fpTouchable) ? fpTouchable->GetVolume() : nullptr; }
|
||||
inline G4VPhysicalVolume* G4Track::GetVolume() const
|
||||
{
|
||||
return (fpTouchable) ? fpTouchable->GetVolume() : nullptr;
|
||||
}
|
||||
|
||||
inline G4VPhysicalVolume* G4Track::GetNextVolume() const
|
||||
{ return (fpNextTouchable) ? fpNextTouchable->GetVolume() : nullptr; }
|
||||
inline G4VPhysicalVolume* G4Track::GetNextVolume() const
|
||||
{
|
||||
return (fpNextTouchable) ? fpNextTouchable->GetVolume() : nullptr;
|
||||
}
|
||||
|
||||
// material - assuming that the pointer to G4Step is defined
|
||||
inline const G4MaterialCutsCouple* G4Track::GetMaterialCutsCouple() const
|
||||
{ return fpStep->GetPreStepPoint()->GetMaterialCutsCouple(); }
|
||||
inline const G4MaterialCutsCouple* G4Track::GetMaterialCutsCouple() const
|
||||
{
|
||||
return fpStep->GetPreStepPoint()->GetMaterialCutsCouple();
|
||||
}
|
||||
|
||||
inline const G4MaterialCutsCouple* G4Track::GetNextMaterialCutsCouple() const
|
||||
{ return fpStep->GetPostStepPoint()->GetMaterialCutsCouple(); }
|
||||
inline const G4MaterialCutsCouple* G4Track::GetNextMaterialCutsCouple() const
|
||||
{
|
||||
return fpStep->GetPostStepPoint()->GetMaterialCutsCouple();
|
||||
}
|
||||
|
||||
inline G4Material* G4Track::GetMaterial() const
|
||||
{ return fpStep->GetPreStepPoint()->GetMaterial(); }
|
||||
inline G4Material* G4Track::GetMaterial() const
|
||||
{
|
||||
return fpStep->GetPreStepPoint()->GetMaterial();
|
||||
}
|
||||
|
||||
inline G4Material* G4Track::GetNextMaterial() const
|
||||
{ return fpStep->GetPostStepPoint()->GetMaterial(); }
|
||||
inline G4Material* G4Track::GetNextMaterial() const
|
||||
{
|
||||
return fpStep->GetPostStepPoint()->GetMaterial();
|
||||
}
|
||||
|
||||
// touchable
|
||||
inline const G4VTouchable* G4Track::GetTouchable() const
|
||||
{ return fpTouchable(); }
|
||||
inline const G4VTouchable* G4Track::GetTouchable() const
|
||||
{
|
||||
return fpTouchable();
|
||||
}
|
||||
|
||||
inline const G4TouchableHandle& G4Track::GetTouchableHandle() const
|
||||
{ return fpTouchable; }
|
||||
inline const G4TouchableHandle& G4Track::GetTouchableHandle() const
|
||||
{
|
||||
return fpTouchable;
|
||||
}
|
||||
|
||||
inline void G4Track::SetTouchableHandle( const G4TouchableHandle& apValue)
|
||||
{ fpTouchable = apValue; }
|
||||
inline void G4Track::SetTouchableHandle(const G4TouchableHandle& apValue)
|
||||
{
|
||||
fpTouchable = apValue;
|
||||
}
|
||||
|
||||
inline const G4VTouchable* G4Track::GetNextTouchable() const
|
||||
{ return fpNextTouchable(); }
|
||||
inline const G4VTouchable* G4Track::GetNextTouchable() const
|
||||
{
|
||||
return fpNextTouchable();
|
||||
}
|
||||
|
||||
inline const G4TouchableHandle& G4Track::GetNextTouchableHandle() const
|
||||
{ return fpNextTouchable; }
|
||||
inline const G4TouchableHandle& G4Track::GetNextTouchableHandle() const
|
||||
{
|
||||
return fpNextTouchable;
|
||||
}
|
||||
|
||||
inline void G4Track::SetNextTouchableHandle( const G4TouchableHandle& apValue)
|
||||
{ fpNextTouchable = apValue; }
|
||||
inline void G4Track::SetNextTouchableHandle(const G4TouchableHandle& apValue)
|
||||
{
|
||||
fpNextTouchable = apValue;
|
||||
}
|
||||
|
||||
inline const G4VTouchable* G4Track::GetOriginTouchable() const
|
||||
{ return fpOriginTouchable(); }
|
||||
inline const G4VTouchable* G4Track::GetOriginTouchable() const
|
||||
{
|
||||
return fpOriginTouchable();
|
||||
}
|
||||
|
||||
inline const G4TouchableHandle& G4Track::GetOriginTouchableHandle() const
|
||||
{ return fpOriginTouchable; }
|
||||
inline const G4TouchableHandle& G4Track::GetOriginTouchableHandle() const
|
||||
{
|
||||
return fpOriginTouchable;
|
||||
}
|
||||
|
||||
inline void G4Track::SetOriginTouchableHandle( const G4TouchableHandle& apValue)
|
||||
{ fpOriginTouchable = apValue; }
|
||||
inline void G4Track::SetOriginTouchableHandle(const G4TouchableHandle& apValue)
|
||||
{
|
||||
fpOriginTouchable = apValue;
|
||||
}
|
||||
|
||||
// kinetic energy
|
||||
inline G4double G4Track::GetKineticEnergy() const
|
||||
{ return fpDynamicParticle->GetKineticEnergy(); }
|
||||
inline G4double G4Track::GetKineticEnergy() const
|
||||
{
|
||||
return fpDynamicParticle->GetKineticEnergy();
|
||||
}
|
||||
|
||||
inline void G4Track::SetKineticEnergy(const G4double aValue)
|
||||
{ fpDynamicParticle->SetKineticEnergy(aValue); }
|
||||
inline void G4Track::SetKineticEnergy(const G4double aValue)
|
||||
{
|
||||
fpDynamicParticle->SetKineticEnergy(aValue);
|
||||
}
|
||||
|
||||
// total energy
|
||||
inline G4double G4Track::GetTotalEnergy() const
|
||||
{ return fpDynamicParticle->GetTotalEnergy(); }
|
||||
inline G4double G4Track::GetTotalEnergy() const
|
||||
{
|
||||
return fpDynamicParticle->GetTotalEnergy();
|
||||
}
|
||||
|
||||
// momentum
|
||||
inline G4ThreeVector G4Track::GetMomentum() const
|
||||
{ return fpDynamicParticle->GetMomentum(); }
|
||||
inline G4ThreeVector G4Track::GetMomentum() const
|
||||
{
|
||||
return fpDynamicParticle->GetMomentum();
|
||||
}
|
||||
|
||||
// momentum (direction)
|
||||
inline const G4ThreeVector& G4Track::GetMomentumDirection() const
|
||||
{ return fpDynamicParticle->GetMomentumDirection(); }
|
||||
inline const G4ThreeVector& G4Track::GetMomentumDirection() const
|
||||
{
|
||||
return fpDynamicParticle->GetMomentumDirection();
|
||||
}
|
||||
|
||||
inline void G4Track::SetMomentumDirection(const G4ThreeVector& aValue)
|
||||
{ fpDynamicParticle->SetMomentumDirection(aValue); }
|
||||
inline void G4Track::SetMomentumDirection(const G4ThreeVector& aValue)
|
||||
{
|
||||
fpDynamicParticle->SetMomentumDirection(aValue);
|
||||
}
|
||||
|
||||
// polarization
|
||||
inline const G4ThreeVector& G4Track::GetPolarization() const
|
||||
{ return fpDynamicParticle->GetPolarization(); }
|
||||
inline const G4ThreeVector& G4Track::GetPolarization() const
|
||||
{
|
||||
return fpDynamicParticle->GetPolarization();
|
||||
}
|
||||
|
||||
inline void G4Track::SetPolarization(const G4ThreeVector& aValue)
|
||||
{ fpDynamicParticle->SetPolarization(aValue); }
|
||||
inline void G4Track::SetPolarization(const G4ThreeVector& aValue)
|
||||
{
|
||||
fpDynamicParticle->SetPolarization(aValue);
|
||||
}
|
||||
|
||||
// track status
|
||||
inline G4TrackStatus G4Track::GetTrackStatus() const
|
||||
{ return fTrackStatus; }
|
||||
inline G4TrackStatus G4Track::GetTrackStatus() const
|
||||
{
|
||||
return fTrackStatus;
|
||||
}
|
||||
|
||||
inline void G4Track::SetTrackStatus(const G4TrackStatus aTrackStatus)
|
||||
{ fTrackStatus = aTrackStatus; }
|
||||
inline void G4Track::SetTrackStatus(const G4TrackStatus aTrackStatus)
|
||||
{
|
||||
fTrackStatus = aTrackStatus;
|
||||
}
|
||||
|
||||
// track length
|
||||
inline G4double G4Track::GetTrackLength() const
|
||||
{ return fTrackLength; }
|
||||
inline G4double G4Track::GetTrackLength() const
|
||||
{
|
||||
return fTrackLength;
|
||||
}
|
||||
|
||||
inline void G4Track::AddTrackLength(const G4double aValue)
|
||||
{ fTrackLength += aValue; }
|
||||
// Accumulated track length
|
||||
inline void G4Track::AddTrackLength(const G4double aValue)
|
||||
{
|
||||
fTrackLength += aValue;
|
||||
}
|
||||
// Accumulated track length
|
||||
|
||||
// step number
|
||||
inline G4int G4Track::GetCurrentStepNumber() const
|
||||
{ return fCurrentStepNumber; }
|
||||
// step number
|
||||
inline G4int G4Track::GetCurrentStepNumber() const
|
||||
{
|
||||
return fCurrentStepNumber;
|
||||
}
|
||||
|
||||
inline void G4Track::IncrementCurrentStepNumber()
|
||||
{ ++fCurrentStepNumber; }
|
||||
inline void G4Track::IncrementCurrentStepNumber()
|
||||
{
|
||||
++fCurrentStepNumber;
|
||||
}
|
||||
|
||||
// step length
|
||||
inline G4double G4Track::GetStepLength() const
|
||||
{ return fStepLength; }
|
||||
inline G4double G4Track::GetStepLength() const
|
||||
{
|
||||
return fStepLength;
|
||||
}
|
||||
|
||||
inline void G4Track::SetStepLength(G4double value)
|
||||
{ fStepLength = value; }
|
||||
inline void G4Track::SetStepLength(G4double value)
|
||||
{
|
||||
fStepLength = value;
|
||||
}
|
||||
|
||||
// vertex (where this track was created) information
|
||||
inline const G4ThreeVector& G4Track::GetVertexPosition() const
|
||||
{ return fVtxPosition; }
|
||||
inline const G4ThreeVector& G4Track::GetVertexPosition() const
|
||||
{
|
||||
return fVtxPosition;
|
||||
}
|
||||
|
||||
inline void G4Track::SetVertexPosition(const G4ThreeVector& aValue)
|
||||
{ fVtxPosition = aValue; }
|
||||
inline void G4Track::SetVertexPosition(const G4ThreeVector& aValue)
|
||||
{
|
||||
fVtxPosition = aValue;
|
||||
}
|
||||
|
||||
inline const G4ThreeVector& G4Track::GetVertexMomentumDirection() const
|
||||
{ return fVtxMomentumDirection; }
|
||||
inline void G4Track::SetVertexMomentumDirection(const G4ThreeVector& aValue)
|
||||
{ fVtxMomentumDirection = aValue; }
|
||||
inline const G4ThreeVector& G4Track::GetVertexMomentumDirection() const
|
||||
{
|
||||
return fVtxMomentumDirection;
|
||||
}
|
||||
|
||||
inline G4double G4Track::GetVertexKineticEnergy() const
|
||||
{ return fVtxKineticEnergy; }
|
||||
inline void G4Track::SetVertexMomentumDirection(const G4ThreeVector& aValue)
|
||||
{
|
||||
fVtxMomentumDirection = aValue;
|
||||
}
|
||||
|
||||
inline void G4Track::SetVertexKineticEnergy(const G4double aValue)
|
||||
{ fVtxKineticEnergy = aValue; }
|
||||
inline G4double G4Track::GetVertexKineticEnergy() const
|
||||
{
|
||||
return fVtxKineticEnergy;
|
||||
}
|
||||
|
||||
inline const G4LogicalVolume* G4Track::GetLogicalVolumeAtVertex() const
|
||||
{ return fpLVAtVertex; }
|
||||
inline void G4Track::SetVertexKineticEnergy(const G4double aValue)
|
||||
{
|
||||
fVtxKineticEnergy = aValue;
|
||||
}
|
||||
|
||||
inline void G4Track::SetLogicalVolumeAtVertex(const G4LogicalVolume* aValue)
|
||||
{ fpLVAtVertex = aValue; }
|
||||
inline const G4LogicalVolume* G4Track::GetLogicalVolumeAtVertex() const
|
||||
{
|
||||
return fpLVAtVertex;
|
||||
}
|
||||
|
||||
inline const G4VProcess* G4Track::GetCreatorProcess() const
|
||||
{ return fpCreatorProcess; }
|
||||
// If the pointer is 0, this means the track is created
|
||||
// by the event generator, i.e. the primary track.If it is not
|
||||
// 0, it points to the process which created this track.
|
||||
inline void G4Track::SetLogicalVolumeAtVertex(const G4LogicalVolume* aValue)
|
||||
{
|
||||
fpLVAtVertex = aValue;
|
||||
}
|
||||
|
||||
inline void G4Track::SetCreatorProcess(const G4VProcess* aValue)
|
||||
{ fpCreatorProcess = aValue; }
|
||||
inline const G4VProcess* G4Track::GetCreatorProcess() const
|
||||
{
|
||||
// If the pointer is null, this means the track is created
|
||||
// by the event generator, i.e. the primary track. If it is not
|
||||
// null, it points to the process which created this track.
|
||||
|
||||
inline void G4Track::SetCreatorModelIndex(G4int idx)
|
||||
{ fCreatorModelIndex = idx; }
|
||||
return fpCreatorProcess;
|
||||
}
|
||||
|
||||
inline const G4String & G4Track::GetCreatorModelName() const
|
||||
{ return G4PhysicsModelCatalog::GetModelName(fCreatorModelIndex); }
|
||||
inline void G4Track::SetCreatorProcess(const G4VProcess* aValue)
|
||||
{
|
||||
fpCreatorProcess = aValue;
|
||||
}
|
||||
|
||||
inline G4int G4Track::GetCreatorModelID() const
|
||||
{ return fCreatorModelIndex; }
|
||||
inline void G4Track::SetCreatorModelIndex(G4int idx)
|
||||
{
|
||||
fCreatorModelIndex = idx;
|
||||
}
|
||||
|
||||
inline const G4String& G4Track::GetCreatorModelName() const
|
||||
{
|
||||
return G4PhysicsModelCatalog::GetModelName(fCreatorModelIndex);
|
||||
}
|
||||
|
||||
inline G4int G4Track::GetCreatorModelID() const
|
||||
{
|
||||
return fCreatorModelIndex;
|
||||
}
|
||||
|
||||
// flag for "Below Threshold"
|
||||
inline G4bool G4Track::IsBelowThreshold() const
|
||||
{ return fBelowThreshold; }
|
||||
inline G4bool G4Track::IsBelowThreshold() const
|
||||
{
|
||||
return fBelowThreshold;
|
||||
}
|
||||
|
||||
inline void G4Track::SetBelowThresholdFlag(G4bool value)
|
||||
{ fBelowThreshold = value; }
|
||||
inline void G4Track::SetBelowThresholdFlag(G4bool value)
|
||||
{
|
||||
fBelowThreshold = value;
|
||||
}
|
||||
|
||||
// flag for " Good for Tracking"
|
||||
inline G4bool G4Track::IsGoodForTracking() const
|
||||
{ return fGoodForTracking; }
|
||||
inline G4bool G4Track::IsGoodForTracking() const
|
||||
{
|
||||
return fGoodForTracking;
|
||||
}
|
||||
|
||||
inline void G4Track::SetGoodForTrackingFlag(G4bool value)
|
||||
{ fGoodForTracking = value; }
|
||||
inline void G4Track::SetGoodForTrackingFlag(G4bool value)
|
||||
{
|
||||
fGoodForTracking = value;
|
||||
}
|
||||
|
||||
// track weight
|
||||
inline void G4Track::SetWeight(G4double aValue)
|
||||
{ fWeight = aValue; }
|
||||
inline void G4Track::SetWeight(G4double aValue)
|
||||
{
|
||||
fWeight = aValue;
|
||||
}
|
||||
|
||||
inline G4double G4Track::GetWeight() const
|
||||
{ return fWeight; }
|
||||
inline G4double G4Track::GetWeight() const
|
||||
{
|
||||
return fWeight;
|
||||
}
|
||||
|
||||
// user information
|
||||
inline G4VUserTrackInformation* G4Track::GetUserInformation() const
|
||||
{ return fpUserInformation; }
|
||||
inline G4VUserTrackInformation* G4Track::GetUserInformation() const
|
||||
{
|
||||
return fpUserInformation;
|
||||
}
|
||||
|
||||
inline void G4Track::SetUserInformation(G4VUserTrackInformation* aValue) const
|
||||
{ fpUserInformation = aValue; }
|
||||
inline void G4Track::SetUserInformation(G4VUserTrackInformation* aValue) const
|
||||
{
|
||||
fpUserInformation = aValue;
|
||||
}
|
||||
|
||||
inline const G4Step* G4Track::GetStep() const
|
||||
{ return fpStep; }
|
||||
inline const G4Step* G4Track::GetStep() const
|
||||
{
|
||||
return fpStep;
|
||||
}
|
||||
|
||||
inline void G4Track::SetStep(const G4Step* aValue)
|
||||
{ fpStep = aValue; }
|
||||
inline void G4Track::SetStep(const G4Step* aValue)
|
||||
{
|
||||
fpStep = aValue;
|
||||
}
|
||||
|
||||
inline std::map<G4int, G4VAuxiliaryTrackInformation*>*
|
||||
G4Track::GetAuxiliaryTrackInformationMap() const
|
||||
{
|
||||
return fpAuxiliaryTrackInformationMap;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user