Import Geant4 0.1.0 source tree
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4ParticleChange.icc,v 2.2 1998/12/11 20:52:59 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4ParticleChange.icc,v 1.3 1999/02/18 04:11:59 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
//
|
||||
inline
|
||||
@@ -30,9 +30,9 @@ inline
|
||||
}
|
||||
|
||||
inline
|
||||
const G4ParticleMomentum* G4ParticleChange::GetMomentumChange() const
|
||||
const G4ThreeVector* G4ParticleChange::GetMomentumChange() const
|
||||
{
|
||||
return &theMomentumChange;
|
||||
return &theMomentumDirectionChange;
|
||||
}
|
||||
|
||||
inline
|
||||
@@ -41,15 +41,38 @@ inline
|
||||
G4double Py,
|
||||
G4double Pz )
|
||||
{
|
||||
theMomentumChange.setX(Px);
|
||||
theMomentumChange.setY(Py);
|
||||
theMomentumChange.setZ(Pz);
|
||||
theMomentumDirectionChange.setX(Px);
|
||||
theMomentumDirectionChange.setY(Py);
|
||||
theMomentumDirectionChange.setZ(Pz);
|
||||
}
|
||||
|
||||
inline
|
||||
void G4ParticleChange::SetMomentumChange(const G4ThreeVector& P)
|
||||
{
|
||||
theMomentumChange = P;
|
||||
theMomentumDirectionChange = P;
|
||||
}
|
||||
|
||||
inline
|
||||
const G4ThreeVector* G4ParticleChange::GetMomentumDirectionChange() const
|
||||
{
|
||||
return &theMomentumDirectionChange;
|
||||
}
|
||||
|
||||
inline
|
||||
void G4ParticleChange::SetMomentumDirectionChange(
|
||||
G4double Px,
|
||||
G4double Py,
|
||||
G4double Pz )
|
||||
{
|
||||
theMomentumDirectionChange.setX(Px);
|
||||
theMomentumDirectionChange.setY(Py);
|
||||
theMomentumDirectionChange.setZ(Pz);
|
||||
}
|
||||
|
||||
inline
|
||||
void G4ParticleChange::SetMomentumDirectionChange(const G4ThreeVector& P)
|
||||
{
|
||||
theMomentumDirectionChange = P;
|
||||
}
|
||||
|
||||
inline
|
||||
@@ -148,7 +171,7 @@ inline
|
||||
|
||||
inline
|
||||
G4ThreeVector G4ParticleChange::CalcMomentum(G4double energy,
|
||||
G4ParticleMomentum direction,
|
||||
G4ThreeVector direction,
|
||||
G4double mass
|
||||
) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user