Import Geant4 2.0.0 source tree
This commit is contained in:
@@ -5,23 +5,35 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4ParticleChangeForTransport.icc,v 1.2 1999/12/15 14:53:55 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// $Id: G4ParticleChangeForTransport.icc,v 1.5 2000/05/16 00:34:27 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
|
||||
inline
|
||||
void G4ParticleChangeForTransport::SetTouchableChange(G4VTouchable* fTouchable)
|
||||
void G4ParticleChangeForTransport::SetTouchableChange(const G4VTouchable* fTouchable)
|
||||
{
|
||||
theTouchableChange = fTouchable;
|
||||
}
|
||||
|
||||
inline
|
||||
G4VTouchable* G4ParticleChangeForTransport::GetTouchableChange() const
|
||||
const G4VTouchable* G4ParticleChangeForTransport::GetTouchableChange() const
|
||||
{
|
||||
return theTouchableChange;
|
||||
}
|
||||
|
||||
inline
|
||||
void G4ParticleChangeForTransport::SetMaterialChange(G4Material* fMaterial)
|
||||
{
|
||||
theMaterialChange = fMaterial;
|
||||
}
|
||||
|
||||
inline
|
||||
G4Material* G4ParticleChangeForTransport::GetMaterialChange() const
|
||||
{
|
||||
return theMaterialChange;
|
||||
}
|
||||
|
||||
inline
|
||||
G4bool G4ParticleChangeForTransport::GetMomentumChanged() const
|
||||
{
|
||||
@@ -48,10 +60,10 @@ inline void G4ParticleChangeForTransport::Initialize(const G4Track& track)
|
||||
// InitializeSecondaries(track);
|
||||
|
||||
// set Energy/Momentum etc. equal to those of the parent particle
|
||||
// const G4DynamicParticle* pParticle = track.GetDynamicParticle();
|
||||
const G4DynamicParticle* pParticle = track.GetDynamicParticle();
|
||||
// theEnergyChange = pParticle->GetKineticEnergy();
|
||||
// theMomentumChange = pParticle->GetMomentumDirection();
|
||||
// thePolarizationChange = pParticle->GetPolarization();
|
||||
thePolarizationChange = pParticle->GetPolarization();
|
||||
// theProperTimeChange = pParticle->GetProperTime();
|
||||
|
||||
// set Position/Time etc. equal to those of the parent track
|
||||
|
||||
Reference in New Issue
Block a user